| datasource db { |
| provider = "sqlite" |
| url = env("DATABASE_URL") |
| } |
|
|
| generator client { |
| provider = "prisma-client-js" |
| binaryTargets = ["native", "linux-musl"] |
| } |
|
|
| |
| model Account { |
| id String @id |
| token String @map("token") |
| name String @map("name") |
| |
| status Int @default(1) @map("status") |
| createdAt DateTime @default(now()) @map("created_at") |
| updatedAt DateTime? @default(now()) @updatedAt @map("updated_at") |
|
|
| @@map("accounts") |
| } |
|
|
| |
| model Feed { |
| id String @id |
| mpName String @map("mp_name") |
| mpCover String @map("mp_cover") |
| mpIntro String @map("mp_intro") |
| |
| status Int @default(1) @map("status") |
|
|
| |
| syncTime Int @default(0) @map("sync_time") |
|
|
| |
| updateTime Int @map("update_time") |
|
|
| createdAt DateTime @default(now()) @map("created_at") |
| updatedAt DateTime? @default(now()) @updatedAt @map("updated_at") |
|
|
| @@map("feeds") |
| } |
|
|
| model Article { |
| id String @id |
| mpId String @map("mp_id") |
| title String @map("title") |
| picUrl String @map("pic_url") |
| publishTime Int @map("publish_time") |
|
|
| createdAt DateTime @default(now()) @map("created_at") |
| updatedAt DateTime? @default(now()) @updatedAt @map("updated_at") |
|
|
| @@map("articles") |
| } |
|
|