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-09 23:29:47 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c1c634440cdc3f2739d7a3443eb261fa1b0f179f
c1c63444
1 parent
6c16c3c0
create schema.prisma
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
back/prisma/schema.prisma
back/prisma/schema.prisma
0 → 100644
View file @
c1c6344
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "mysql"
url = env("DATABASE_URL")
}
model User {
id Int @default(autoincrement()) @id
createdAt DateTime @default(now())
email String @unique
name String
profile Profile?
}
model Profile {
id Int @default(autoincrement()) @id
bio String
user User @relation(fields: [userId], references: [id])
userId Int
}
\ No newline at end of file
Please
register
or
login
to post a comment