use sea_orm::entity::prelude::*; #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[sea_orm(table_name = "image_meta")] pub struct Model { #[sea_orm(primary_key, auto_increment = false, column_type = "Text")] pub cache_key: String, #[sea_orm(column_type = "Text", nullable)] pub release_date: Option, #[sea_orm(column_type = "Text")] pub image_type: String, pub created_at: i64, pub updated_at: i64, #[sea_orm(nullable)] pub api_key_id: Option, } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation {} impl ActiveModelBehavior for ActiveModel {}