use sea_orm::{
ActiveModelBehavior, DeriveEntityModel, DerivePrimaryKey, DeriveRelation, EntityTrait,
EnumIter, PrimaryKeyTrait,
};
#[derive(Clone, Debug, PartialEq, DeriveEntityModel)]
#[sea_orm(table_name = "playlist_cache")]
pub struct Model {
#[sea_orm(primary_key, auto_increment = false)]
#[sea_orm(column_type = "Text")]
pub namespace: String,
#[sea_orm(primary_key, auto_increment = false)]
#[sea_orm(column_type = "Text")]
pub playlist_id: String,
#[sea_orm(column_type = "Text")]
pub name: Option<String>,
#[sea_orm(column_type = "Integer")]
pub fetched_at: i64,
#[sea_orm(column_type = "Integer")]
pub track_update_time: Option<i64>,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}