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 01:53:13 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
42c0d3ba6a1db461853b1a0e62527d571a618672
42c0d3ba
1 parent
0ca64470
update DB schema
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
back/prisma/schema.prisma
back/prisma/schema.prisma
View file @
42c0d3b
...
...
@@ -27,14 +27,15 @@ model User {
model Room {
id Int @default(autoincrement()) @id
participants User[] @relation(references: [id])
categories Category[]
@relation(references: [id])
categories Category[]
Message Message[]
}
model Category {
id Int @default(autoincrement()) @id
name String? @default("")
rooms Room[] @relation(references: [id])
SubRoom Int
room Room @relation(fields: [SubRoom], references: [id])
}
model Message {
...
...
Please
register
or
login
to post a comment