update expense-claims

This commit is contained in:
Aya
2026-05-03 10:30:03 +03:00
parent 11d14c01d2
commit 345ba195f8
11 changed files with 492 additions and 364 deletions

View File

@@ -302,8 +302,8 @@ model Leave {
employeeId String
employee Employee @relation(fields: [employeeId], references: [id])
leaveType String // ANNUAL, SICK, UNPAID, EMERGENCY, etc.
startDate DateTime @db.Date
endDate DateTime @db.Date
startDate DateTime @db.Timestamp(3)
endDate DateTime @db.Timestamp(3)
days Int
reason String?
status String @default("PENDING") // PENDING, APPROVED, REJECTED
@@ -523,6 +523,7 @@ model ExpenseClaim {
approvedBy String?
approvedAt DateTime?
rejectedReason String?
approvalNote String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt