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-04-19 16:10:14 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b76f970fd9bddb9c8699148b8d44cee220a13c94
b76f970f
1 parent
c830bc39
change schema
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
back/prisma/schema.prisma
back/prisma/schema.prisma
View file @
b76f970
generator client {
provider = "prisma-client-js"
binaryTargets = ["native", "debian-openssl-1.1.x"]
}
datasource db {
...
...
@@ -9,14 +10,15 @@ datasource db {
model User {
id Int @default(autoincrement()) @id
avatarUrl String
avatarUrl String
?
email String @unique
password String
name String
loginSecret String
bio String
loginSecret String
?
bio String
?
rooms Room[] @relation(references: [id])
messages Message[]
createdAt DateTime
@default(now())
createdAt DateTime
?
@default(now())
}
model Room {
...
...
@@ -27,13 +29,13 @@ model Room {
model Category {
id Int @default(autoincrement()) @id
name String
name String
? @default("")
rooms Room[] @relation(references: [id])
}
model Message {
id Int @default(autoincrement()) @id
text String
text String
? @default("")
sender User @relation(fields: [senderId], references: [id])
senderId Int
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment