noauthd/prisma/schema.prisma

36 lines
663 B
Plaintext
Raw Normal View History

2023-12-01 10:15:15 +00:00
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
2023-12-01 10:15:15 +00:00
pushSubscription String
relays String
2023-12-01 10:15:15 +00:00
}
model NpubData {
id Int @id @default(autoincrement())
2023-12-01 10:15:15 +00:00
timestamp BigInt
npub String @unique
data String
pwh2 String
salt String
2023-12-01 10:15:15 +00:00
}
2024-02-05 10:50:08 +00:00
model Names {
id Int @id @default(autoincrement())
name String @unique
npub String
2024-02-05 10:50:08 +00:00
timestamp BigInt
@@index([npub])
2024-02-05 10:50:08 +00:00
}