feat: Integrate Data Connect and Implement Staff List View Directory
This commit is contained in:
16
apps/web/dataconnect/schema/message.gql
Normal file
16
apps/web/dataconnect/schema/message.gql
Normal file
@@ -0,0 +1,16 @@
|
||||
type Message @table(name: "messages") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
|
||||
conversationId: UUID!
|
||||
|
||||
senderId: String! #userId
|
||||
#senderName: String
|
||||
user: User! @ref(fields: "senderId", references: "id")
|
||||
|
||||
content: String!
|
||||
isSystem: Boolean
|
||||
|
||||
createdAt: Timestamp @default(expr: "request.time")
|
||||
updatedAt: Timestamp @default(expr: "request.time")
|
||||
createdBy: String
|
||||
}
|
||||
Reference in New Issue
Block a user