chore: add all the code from original repo

This commit is contained in:
Riccardo
2024-05-23 16:55:29 +02:00
parent d8f9a215eb
commit 85d66215a7
66 changed files with 16668 additions and 122 deletions

20
data/initializeUser.ts Normal file
View File

@@ -0,0 +1,20 @@
import prisma from '../prisma/prisma';
export async function initializeUser() {
return await prisma.user.upsert({
where: {
email: process.env.EMAIL!
},
update: {},
create: {
email: process.env.EMAIL!,
password: process.env.EMAIL!,
name: process.env.EMAIL!,
Profiles: {
create: {
name: 'Default profile'
}
}
}
});
}