Erster Docker-Stand
This commit is contained in:
31
prisma/schema.prisma
Normal file
31
prisma/schema.prisma
Normal file
@@ -0,0 +1,31 @@
|
||||
// This is your Prisma schema file,
|
||||
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
||||
|
||||
// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
|
||||
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
|
||||
|
||||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
engineType = "binary"
|
||||
}
|
||||
|
||||
datasource db {
|
||||
provider = "postgresql"
|
||||
}
|
||||
|
||||
model User {
|
||||
id Int @id @default(autoincrement())
|
||||
username String @unique
|
||||
password String
|
||||
}
|
||||
|
||||
model Elements {
|
||||
id Int @id @default(autoincrement())
|
||||
inhalt String
|
||||
bundesland String
|
||||
fach String
|
||||
version String
|
||||
stufe Int
|
||||
|
||||
@@map("Elements") // <--- Das sagt Prisma: "In der DB heißt die Tabelle klein 'elements'"
|
||||
}
|
||||
Reference in New Issue
Block a user