feat: secure KYC storage, Google OAuth, terms gating

This commit is contained in:
arifal
2026-04-28 23:10:21 +07:00
parent 58da4608ac
commit 05d0929f7a
41 changed files with 3087 additions and 262 deletions
+7
View File
@@ -27,4 +27,11 @@ export const userRepo = {
async create(data: Prisma.UserCreateInput) {
return prisma.user.create({ data });
},
async markAcceptedTerms(id: string) {
return prisma.user.update({
where: { id },
data: { acceptedTermsAndPrivacy: true, acceptedAt: new Date() },
});
},
};