Data Model
Overview
- Parsed entities:
24 - Source:
prisma/schema.prisma
AdminSettings
- Kind:
model - Summary: 6 fields
id: Stringkey: StringvalueJson: JsonupdatedByUserId: StringupdatedByUser: UserupdatedAt: DateTime
AuditEntityType
- Kind:
enum - Summary: 9 values
RENEWAL_CASEDOCUMENTJUSTIFICATIONSETTINGSEMPLOYEEUSERSIGNATURENOTIFICATIONEMAIL
AuditLog
- Kind:
model - Summary: 9 fields
id: StringactorUserId: StringactorUser: UserentityType: AuditEntityTypeentityId: Stringaction: Stringbefore: Json?after: Json?createdAt: DateTime
CeoDecision
- Kind:
enum - Summary: 3 values
NONEAPPROVEREJECT
CompensationSource
- Kind:
enum - Summary: 2 values
RENEWAL_APPROVEDMANUAL
Document
- Kind:
model - Summary: 13 fields
id: StringrenewalCaseId: StringrenewalCase: RenewalCasedocType: DocumentTypefileName: StringmimeType: StringfileSize: IntstorageKey: StringuploadedByUserId: StringuploadedByUser: User
DocumentType
- Kind:
enum - Summary: 4 values
OFFER_LETTERSIGNED_OFFERPERFORMANCE_REPORTOTHER
EmailOutbox
- Kind:
model - Summary: 11 fields
id: StringtoEmail: Stringsubject: StringbodyHtml: StringbodyText: Stringstatus: EmailStatusproviderMessageId: String?errorMessage: String?attempts: IntlastAttemptAt: DateTime?
EmailStatus
- Kind:
enum - Summary: 3 values
PENDINGSENTFAILED
Employee
- Kind:
model - Summary: 15 fields
id: StringemployeeCode: String?fullName: Stringemail: String?department: StringroleTitle: Stringgrade: StringmanagerUserId: String?managerUser: User?employmentType: EmploymentType
EmployeeCompensation
- Kind:
model - Summary: 10 fields
id: StringemployeeId: Stringemployee: EmployeeeffectiveDate: DateTimemonthlySalary: Decimalgrade: Stringsource: CompensationSourcerenewalCaseId: String?renewalCase: RenewalCase?createdAt: DateTime
EmployeeStatus
- Kind:
enum - Summary: 2 values
ACTIVEINACTIVE
EmploymentType
- Kind:
enum - Summary: 2 values
PERMANENTCONTRACT
GuestJustificationToken
- Kind:
model - Summary: 12 fields
id: StringrenewalCaseId: StringrenewalCase: RenewalCasetokenHash: StringmanagerName: String?managerEmail: StringcreatedByUserId: StringcreatedByUser: UserexpiresAt: DateTimeusedAt: DateTime?
InAppNotification
- Kind:
model - Summary: 9 fields
id: StringuserId: Stringuser: Usertype: NotificationTypetitle: Stringbody: StringlinkPath: StringisRead: BooleancreatedAt: DateTime
ManagerJustification
- Kind:
model - Summary: 12 fields
id: StringrenewalCaseId: StringrenewalCase: RenewalCasemanagerUserId: String?managerUser: User?recommendation: ManagerRecommendationjustification: Stringconditions: String?submittedAt: DateTime?submittedByName: String?
ManagerRecommendation
- Kind:
enum - Summary: 3 values
RENEWDO_NOT_RENEWRENEW_WITH_CONDITIONS
NotificationType
- Kind:
enum - Summary: 4 values
JUSTIFICATION_REQUESTEDCASE_READY_FOR_CEOCEO_DECIDEDCASE_SIGNED
PerformanceSnapshot
- Kind:
model - Summary: 10 fields
id: StringrenewalCaseId: StringrenewalCase: RenewalCasereviewPeriod: StringoverallScore: Decimal?scoreBreakdown: Json?hrNotes: String?managerComments: String?createdAt: DateTimeupdatedAt: DateTime
RenewalCase
- Kind:
model - Summary: 27 fields
id: StringemployeeId: Stringemployee: EmployeecontractStartDate: DateTimecontractEndDate: DateTimerenewalStartDate: DateTimerenewalEndDate: DateTimecurrentMonthlySalary: DecimalproposedMonthlySalary: Decimalcurrency: String
RenewalStatus
- Kind:
enum - Summary: 6 values
DRAFTPENDING_MANAGERREADY_FOR_CEOAPPROVEDREJECTEDSIGNED
User
- Kind:
model - Summary: 17 fields
id: Stringemail: Stringname: Stringrole: UserRolepasswordHash: StringisActive: BooleancreatedAt: DateTimeupdatedAt: DateTimemanagedEmployees: Employee[]createdRenewalCases: RenewalCase[]
UserRole
- Kind:
enum - Summary: 3 values
CEOHRMANAGER
UserSignature
- Kind:
model - Summary: 9 fields
id: StringuserId: Stringuser: UserfileName: StringmimeType: StringfileSize: IntstorageKey: StringcreatedAt: DateTimeupdatedAt: DateTime