feat: Add prisma to project

This commit is contained in:
Louis Auzuret
2022-06-19 22:11:59 +02:00
parent a599db7fcd
commit 22e08ae1fa
6 changed files with 121 additions and 9 deletions
+7 -3
View File
@@ -1,7 +1,5 @@
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
generator client {
// learn more about it in the docs: https://pris.ly/d/prisma-schema generator client {
provider = "prisma-client-js"
}
@@ -9,3 +7,9 @@ datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model User {
id Int @default(autoincrement()) @id
email String @unique
name String?
}