a / api /src /entity /image_meta.rs
FTA7700
Track api_key_id on cache entries; admin preview uses correct per-key settings
bb0b9d3
Raw History Blame Contribute Delete
636 Bytes
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<String>,
#[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<i32>,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}