2023-12-01 10:15:15 +00:00
|
|
|
generator client {
|
|
|
|
provider = "prisma-client-js"
|
|
|
|
}
|
|
|
|
|
|
|
|
datasource db {
|
|
|
|
provider = "sqlite"
|
|
|
|
url = env("DATABASE_URL")
|
|
|
|
}
|
|
|
|
|
|
|
|
model PushSubs {
|
2024-02-07 05:43:15 +00:00
|
|
|
id Int @id @default(autoincrement())
|
|
|
|
pushId String @unique
|
|
|
|
timestamp BigInt
|
|
|
|
npub String
|
2023-12-01 10:15:15 +00:00
|
|
|
pushSubscription String
|
2024-02-07 05:43:15 +00:00
|
|
|
relays String
|
2023-12-01 10:15:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
model NpubData {
|
2024-02-07 05:43:15 +00:00
|
|
|
id Int @id @default(autoincrement())
|
2023-12-01 10:15:15 +00:00
|
|
|
timestamp BigInt
|
2024-02-07 05:43:15 +00:00
|
|
|
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 {
|
2024-02-07 05:43:15 +00:00
|
|
|
id Int @id @default(autoincrement())
|
|
|
|
name String @unique
|
|
|
|
npub String
|
2024-02-05 10:50:08 +00:00
|
|
|
timestamp BigInt
|
2024-02-07 05:43:15 +00:00
|
|
|
|
|
|
|
@@index([npub])
|
2024-02-05 10:50:08 +00:00
|
|
|
}
|