image-config.prisma 720 B

123456789101112131415161718192021
  1. enum ImageSource {
  2. PROVIDER
  3. LOCAL_ONLY
  4. S3_ONLY
  5. S3_AND_LOCAL
  6. }
  7. model ImageConfig {
  8. id Int @id @default(autoincrement())
  9. channelId Int? @map("channel_id")
  10. providerDecodeBase String? @map("provider_decode_base")
  11. localBaseUrl String? @map("local_base_url")
  12. s3BaseUrl String? @map("s3_base_url")
  13. preferredSource ImageSource @default(PROVIDER) @map("preferred_source")
  14. status Int @default(1)
  15. createAt BigInt @default(0) @map("create_at")
  16. updateAt BigInt @default(0) @map("update_at")
  17. @@map("image_config")
  18. @@index([channelId], map: "idx_image_config_channel_id")
  19. }