Initial commit for wedding-planner MVP

This commit is contained in:
2025-06-23 10:20:37 -04:00
commit bbe5eb0ccd
37 changed files with 5650 additions and 0 deletions

14
lib/setup.ts Normal file
View File

@@ -0,0 +1,14 @@
import { prisma } from './prisma';
export async function isFirstSetup() {
const user = await prisma.user.findFirst({
where: {
OR: [
{ role: 'COUPLE' },
{ role: 'PLANNER'},
]
}
});
return !user;
}