diff --git a/src/app/api/onboarding/route.ts b/src/app/api/onboarding/route.ts index 595d201..2bb8814 100644 --- a/src/app/api/onboarding/route.ts +++ b/src/app/api/onboarding/route.ts @@ -25,8 +25,8 @@ export async function POST(request: Request) { const { familyName, memberName, childName, birthDate, sex } = body; try { - // Check if families table needs tier column - // Try with just basic columns first + // Create family + const familyId = crypto.randomUUID(); await sql.unsafe( `INSERT INTO families (id, name, created_at, updated_at) VALUES ($1, $2, NOW(), NOW())`, [familyId, familyName || "The Family"]