mirror of
https://github.com/Since-3/Kuma.git
synced 2026-10-12 20:51:18 +00:00
added chaching and serialisation and indexing
This commit is contained in:
parent
e05984c1c3
commit
06d1290921
6 changed files with 177 additions and 252 deletions
|
|
@ -60,6 +60,8 @@ model Employee {
|
|||
trainings UserTraining[]
|
||||
createdAt DateTime? @default(now())
|
||||
updatedAt DateTime? @updatedAt
|
||||
|
||||
@@index([createdBy])
|
||||
}
|
||||
|
||||
model UserTraining {
|
||||
|
|
@ -98,6 +100,8 @@ model Business {
|
|||
manager Manager @relation(fields: [managerId], references: [id])
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@index([managerId])
|
||||
}
|
||||
|
||||
model Course {
|
||||
|
|
@ -121,6 +125,10 @@ model Course {
|
|||
bookings CourseBooking[]
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@index([createdBy])
|
||||
@@index([date])
|
||||
@@index([status])
|
||||
}
|
||||
|
||||
model Room {
|
||||
|
|
@ -129,6 +137,8 @@ model Room {
|
|||
createdBy String // Manager ID who created the room
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@index([createdBy])
|
||||
}
|
||||
|
||||
model CourseBooking {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue