Created
March 18, 2023 12:54
-
-
Save kuc-arc-f/85e31a063affef8763f24ef0d2a7efcf to your computer and use it in GitHub Desktop.
prisma migration file , Mermaid ER Chart app (er_simple1)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is your Prisma schema file, | |
// learn more about it in the docs: https://pris.ly/d/prisma-schema | |
datasource db { | |
provider = "postgresql" | |
url = env("DATABASE_URL") | |
} | |
generator client { | |
provider = "prisma-client-js" | |
} | |
model User { | |
id Int @id @default(autoincrement()) | |
createdAt DateTime @default(now()) | |
updatedAt DateTime @updatedAt | |
password String | |
email String @unique | |
name String? | |
} | |
model Category { | |
id Int @id @default(autoincrement()) | |
createdAt DateTime @default(now()) | |
updatedAt DateTime @updatedAt | |
name String @db.VarChar(255) | |
userId Int? | |
} | |
model Chart { | |
id Int @id @default(autoincrement()) | |
createdAt DateTime @default(now()) | |
updatedAt DateTime @updatedAt | |
title String @db.VarChar(255) | |
content String? @db.Text | |
userId Int? | |
categoryId Int? | |
} | |
model Task { | |
id Int @id @default(autoincrement()) | |
createdAt DateTime @default(now()) | |
updatedAt DateTime @updatedAt | |
title String @db.VarChar(255) | |
content String? @db.Text | |
userId Int? | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment