Create Residents table (#78)

* add resident table

* update prisma

* toc

* ignore md
This commit is contained in:
Baobeld 2025-02-07 16:30:12 -05:00 committed by GitHub
parent 9f889983dd
commit 0f95f330ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 50 additions and 18 deletions

View file

@ -31,11 +31,24 @@ model User {
@@unique([clerkId, tenantId])
}
model Resident {
id String @id @default(uuid())
tenant Tenant @relation(fields: [tenantId], references: [id])
tenantId String
name String
phoneNumber String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model Tenant {
id String @id @default(uuid())
clerkOrganizationId String @unique
users User[]
residents Resident[]
tenantConfig TenantConfig?
name String