28 lines
514 B
Plaintext
28 lines
514 B
Plaintext
|
// This is your Prisma schema file,
|
||
|
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
||
|
|
||
|
generator client {
|
||
|
provider = "prisma-client-js"
|
||
|
}
|
||
|
|
||
|
datasource db {
|
||
|
provider = "postgresql"
|
||
|
url = env("DATABASE_URL")
|
||
|
}
|
||
|
|
||
|
model Configuration {
|
||
|
uuid String @id @default(uuid()) @db.Uuid
|
||
|
domain Domain
|
||
|
key String
|
||
|
value String
|
||
|
createdAt DateTime @default(now())
|
||
|
updatedAt DateTime @updatedAt
|
||
|
|
||
|
@@unique([domain, key])
|
||
|
@@map("configuration")
|
||
|
}
|
||
|
|
||
|
enum Domain {
|
||
|
USER
|
||
|
}
|