mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-09 20:12:10 +10:00
37 lines
697 B
Plaintext
37 lines
697 B
Plaintext
// 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"
|
|
}
|
|
|
|
datasource db {
|
|
provider = "postgresql"
|
|
url = env("DATABASE_URL")
|
|
}
|
|
|
|
model User {
|
|
id String @id @default(uuid())
|
|
username String @unique
|
|
|
|
authMecs LinkedAuthMec[]
|
|
}
|
|
|
|
enum AuthMec {
|
|
Simple
|
|
}
|
|
|
|
model LinkedAuthMec {
|
|
userId String
|
|
mec AuthMec
|
|
|
|
credentials Json
|
|
|
|
user User @relation(fields: [userId], references: [id])
|
|
|
|
@@id([userId, mec])
|
|
}
|