completed migrate to prisma-rust-client

This commit is contained in:
Ren Amamiya
2023-04-05 09:20:33 +07:00
parent 3f87d510ab
commit fc8dc8fd0d
25 changed files with 342 additions and 213 deletions

View File

@@ -36,33 +36,33 @@ model Follow {
}
model Note {
id Int @id @default(autoincrement())
eventId String @unique
id Int @id @default(autoincrement())
eventId String @unique
pubkey String
kind Int
tags String
content String
parent_id String
parent_comment_id String
createdAt DateTime @default(now())
createdAt Int
Account Account @relation(fields: [accountId], references: [id])
accountId Int
@@index([eventId])
@@index([eventId, createdAt])
}
model Message {
id Int @id @default(autoincrement())
id Int @id @default(autoincrement())
pubkey String
content String
tags String
createdAt DateTime @default(now())
createdAt Int
Account Account @relation(fields: [accountId], references: [id])
accountId Int
@@index([pubkey])
@@index([pubkey, createdAt])
}
model Relay {