Student Registeration CRUD & Listing
This commit is contained in:
BIN
prisma/dev.db
BIN
prisma/dev.db
Binary file not shown.
@@ -22,6 +22,7 @@ model Branch {
|
||||
instructors Instructor[] // Implicit many-to-many
|
||||
classes DanceClass[]
|
||||
lessons Lesson[]
|
||||
students Student[]
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
@@ -79,3 +80,15 @@ model Fee {
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
|
||||
model Student {
|
||||
id String @id @default(uuid())
|
||||
name String
|
||||
email String?
|
||||
phone String
|
||||
birthDate DateTime
|
||||
branchId String?
|
||||
branch Branch? @relation(fields: [branchId], references: [id])
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user