You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kubsu-platform-crud-2023/libs/prisma-clients/auth/prisma/schema.prisma

29 lines
692 B

// 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"
output = "../../../../node_modules/.prisma/auth-client"
}
datasource db {
provider = "postgresql"
url = env("AUTH_SOURCE_URL")
}
model User {
uuid String @id @default(uuid()) @db.Uuid
isBlocked Boolean @default(false)
devices UserDevice[] @relation("userDevice")
}
model UserDevice {
fingerprint Bytes @id @db.ByteA
name String @db.VarChar(100)
userUuid String @db.Uuid
isBlocked Boolean @default(false)
user User @relation("userDevice", fields: [userUuid], references: [uuid])
}