a
File size: 636 Bytes
bb0b9d3
a38005e
 
0c21886
a38005e
 
 
 
 
5d84fe3
 
a38005e
 
bb0b9d3
 
a38005e
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 {}