Student Registeration CRUD & Listing

This commit is contained in:
kertenkerem
2026-01-08 01:14:35 +03:00
parent d5de503f86
commit 8fa560cd5e
6 changed files with 236 additions and 0 deletions

Binary file not shown.

View File

@@ -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
}