tdm_server_rust/sea_entity/
mangatb.rs1use sea_orm::entity::prelude::*;
4use serde::{Deserialize, Serialize};
5
6#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Serialize, Deserialize)]
9#[sea_orm(table_name = "mangatb")]
10pub struct Model {
11 #[sea_orm(column_name = "Id", primary_key)]
13 pub id: i32,
14 #[sea_orm(column_name = "mangaTranName", unique)]
16 pub manga_tran_name: String,
17 #[sea_orm(column_name = "mangaOriName", unique)]
19 pub manga_ori_name: String,
20 pub image: String,
22 pub category: i32,
24 #[sea_orm(column_name = "mangaStatus")]
26 pub manga_status: i32,
27 #[sea_orm(column_name = "setupTime")]
29 pub setup_time: DateTime,
30 #[sea_orm(column_name = "updateTime")]
32 pub update_time: DateTime,
33 pub link: Option<String>,
35 pub introduction: Option<String>,
37}
38
39#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
41pub enum Relation {}
42
43impl ActiveModelBehavior for ActiveModel {}