feat: Integrate Data Connect and Implement Staff List View Directory

This commit is contained in:
dhinesh-m24
2026-01-31 16:54:59 +05:30
parent 48bb1c457c
commit cb25b33d04
255 changed files with 21425 additions and 109 deletions

View File

@@ -0,0 +1,24 @@
enum RoleType {
SKILLED
BEGINNER
CROSS_TRAINED
}
#this is skills of staff
type StaffRole @table(name: "staff_roles", key: ["staffId", "roleId"]) {
id: UUID! @default(expr: "uuidV4()")
staffId: UUID!
staff: Staff! @ref(fields: "staffId", references: "id")
roleId: UUID!
role: Role! @ref(fields: "roleId", references: "id")
roleType: RoleType
createdAt: Timestamp @default(expr: "request.time")
updatedAt: Timestamp @default(expr: "request.time")
createdBy: String
}