m
This commit is contained in:
@@ -51,7 +51,10 @@ export const AnyNull = runtime.AnyNull
|
||||
|
||||
|
||||
export const ModelName = {
|
||||
User: 'User'
|
||||
User: 'User',
|
||||
Conversation: 'Conversation',
|
||||
ConversationParticipant: 'ConversationParticipant',
|
||||
Message: 'Message'
|
||||
} as const
|
||||
|
||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
||||
@@ -70,12 +73,43 @@ export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof
|
||||
export const UserScalarFieldEnum = {
|
||||
id: 'id',
|
||||
email: 'email',
|
||||
username: 'username'
|
||||
username: 'username',
|
||||
password: 'password',
|
||||
createdAt: 'createdAt'
|
||||
} as const
|
||||
|
||||
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
|
||||
|
||||
|
||||
export const ConversationScalarFieldEnum = {
|
||||
id: 'id',
|
||||
createdAt: 'createdAt'
|
||||
} as const
|
||||
|
||||
export type ConversationScalarFieldEnum = (typeof ConversationScalarFieldEnum)[keyof typeof ConversationScalarFieldEnum]
|
||||
|
||||
|
||||
export const ConversationParticipantScalarFieldEnum = {
|
||||
id: 'id',
|
||||
conversationId: 'conversationId',
|
||||
userId: 'userId',
|
||||
lastReadAt: 'lastReadAt'
|
||||
} as const
|
||||
|
||||
export type ConversationParticipantScalarFieldEnum = (typeof ConversationParticipantScalarFieldEnum)[keyof typeof ConversationParticipantScalarFieldEnum]
|
||||
|
||||
|
||||
export const MessageScalarFieldEnum = {
|
||||
id: 'id',
|
||||
conversationId: 'conversationId',
|
||||
senderId: 'senderId',
|
||||
content: 'content',
|
||||
createdAt: 'createdAt'
|
||||
} as const
|
||||
|
||||
export type MessageScalarFieldEnum = (typeof MessageScalarFieldEnum)[keyof typeof MessageScalarFieldEnum]
|
||||
|
||||
|
||||
export const SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
@@ -83,3 +117,11 @@ export const SortOrder = {
|
||||
|
||||
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
|
||||
|
||||
|
||||
export const NullsOrder = {
|
||||
first: 'first',
|
||||
last: 'last'
|
||||
} as const
|
||||
|
||||
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user