add user profile, profile vibe and trip vibe and social signal

This commit is contained in:
2026-05-08 19:20:27 +07:00
parent 3228ef712f
commit 7f419638b5
39 changed files with 1361 additions and 192 deletions
+4
View File
@@ -1,10 +1,12 @@
import { prisma } from "@/lib/prisma";
import type { Vibe } from "@/app/generated/prisma/enums";
interface UpsertProfileInput {
bio?: string;
city?: string;
instagram?: string;
interests: string[];
vibe?: Vibe;
}
export const profileRepo = {
@@ -21,12 +23,14 @@ export const profileRepo = {
city: data.city,
instagram: data.instagram,
interests: data.interests,
vibe: data.vibe,
},
update: {
bio: data.bio,
city: data.city,
instagram: data.instagram,
interests: data.interests,
vibe: data.vibe,
},
});
},