Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-05-20 17:47:13 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6ae64571400c1a43cce040240ea3a9df32ecae00
6ae64571
1 parent
17ac4ee7
update DB schema
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
back/prisma/schema.prisma
back/prisma/schema.prisma
View file @
6ae6457
...
...
@@ -18,18 +18,17 @@ model User {
emailSecret String? @default("")
phoneSecret String? @default("")
bio String? @default("")
room Room @relation(fields: [roomId], references: [id])
roomId Int
rooms Room[] @relation(references: [id])
messages Message[]
sender User
@relation("SenderReceiver", fields: [id]
, references: [id])
receiver User
? @relation("SenderReceiver"
)
sender User
[] @relation("SenderReceiver"
, references: [id])
receiver User
[] @relation("SenderReceiver", references: [id]
)
createdAt DateTime? @default(now())
}
model Room {
id Int @default(autoincrement()) @id
name String
participants User[]
participants User[]
@relation(references: [id])
categories Category[]
messages Message[]
}
...
...
Please
register
or
login
to post a comment