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-28 15:43:10 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b63df512d0e303e7f7bfdac4cdfae8da185582ce
b63df512
1 parent
bb132ffb
make name became unique field
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
back/prisma/schema.prisma
back/prisma/schema.prisma
View file @
b63df51
...
...
@@ -27,7 +27,7 @@ model User {
model Room {
id Int @default(autoincrement()) @id
name String
name String
@unique
participants User[] @relation(references: [id])
categories Category[]
messages Message[]
...
...
@@ -51,4 +51,4 @@ model Message {
createdAt DateTime? @default(now())
category Category? @relation(fields: [categoryId], references: [id])
categoryId Int?
}
\ No newline at end of file
}
...
...
Please
register
or
login
to post a comment