noauthd/prisma/schema.prisma

36 lines
663 B
Plaintext

generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "sqlite"
url = env("DATABASE_URL")
}
model PushSubs {
id Int @id @default(autoincrement())
pushId String @unique
timestamp BigInt
npub String
pushSubscription String
relays String
}
model NpubData {
id Int @id @default(autoincrement())
timestamp BigInt
npub String @unique
data String
pwh2 String
salt String
}
model Names {
id Int @id @default(autoincrement())
name String @unique
npub String
timestamp BigInt
@@index([npub])
}