added create channel to sql and browse channels page

This commit is contained in:
Ren Amamiya
2023-04-10 11:29:06 +07:00
parent 549cc991a9
commit 213d7514d2
7 changed files with 95 additions and 6 deletions

View File

@@ -66,6 +66,14 @@ model Message {
@@index([pubkey, createdAt])
}
model Channel {
id Int @id @default(autoincrement())
eventId String @unique
content String
@@index([eventId])
}
model Relay {
id Int @id @default(autoincrement())
url String