renamed model follow to pleb

This commit is contained in:
Ren Amamiya
2023-04-05 15:38:41 +07:00
parent 5da94e091f
commit 3c63dece46
13 changed files with 85 additions and 53 deletions

View File

@@ -12,27 +12,29 @@ generator client {
model Account {
id Int @id @default(autoincrement())
pubkey String
pubkey String @unique
privkey String @unique
active Boolean @default(false)
metadata String
// related
follows Follow[]
plebs Pleb[]
messages Message[]
notes Note[]
@@index([pubkey])
}
model Follow {
model Pleb {
id Int @id @default(autoincrement())
pubkey String
pubkey String @unique
kind Int
metadata String
Account Account @relation(fields: [accountId], references: [id])
accountId Int
@@index([pubkey])
}
model Note {