feat: Integrate Data Connect and Implement Staff List View Directory
This commit is contained in:
39
apps/web/dataconnect/schema/activityLog.gql
Normal file
39
apps/web/dataconnect/schema/activityLog.gql
Normal file
@@ -0,0 +1,39 @@
|
||||
enum ActivityIconType {
|
||||
INVOICE
|
||||
CHECK
|
||||
ALERT
|
||||
MESSAGE
|
||||
CALENDAR
|
||||
}
|
||||
|
||||
enum ActivityType {
|
||||
ORDER_CREATED
|
||||
SHIFT_UPDATE
|
||||
COMPLIANCE_ALERT
|
||||
MESSAGE_RECEIVED
|
||||
SYSTEM_UPDATE
|
||||
}
|
||||
|
||||
type ActivityLog @table(name: "activity_logs") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
|
||||
userId: String!
|
||||
|
||||
#app
|
||||
date: Timestamp!
|
||||
hourStart: String
|
||||
hourEnd: String
|
||||
totalhours: String
|
||||
iconType: ActivityIconType
|
||||
iconColor: String
|
||||
|
||||
#web
|
||||
title: String!
|
||||
description: String!
|
||||
isRead: Boolean @default(expr: "false")
|
||||
activityType: ActivityType!
|
||||
|
||||
createdAt: Timestamp @default(expr: "request.time")
|
||||
updatedAt: Timestamp @default(expr: "request.time")
|
||||
createdBy: String
|
||||
}
|
||||
Reference in New Issue
Block a user