converted full sql from onboarding flow to prisma

This commit is contained in:
Ren Amamiya
2023-04-03 15:03:07 +07:00
parent 33000979ed
commit 3f87d510ab
14 changed files with 314 additions and 74 deletions

View File

@@ -1,6 +1,6 @@
datasource db {
provider = "sqlite"
url = "file:../lume.db"
url = "file:../../lume.db"
}
generator client {
@@ -37,6 +37,7 @@ model Follow {
model Note {
id Int @id @default(autoincrement())
eventId String @unique
pubkey String
kind Int
tags String
@@ -47,6 +48,8 @@ model Note {
Account Account @relation(fields: [accountId], references: [id])
accountId Int
@@index([eventId])
}
model Message {