23 lines
573 B
Rust
23 lines
573 B
Rust
![]() |
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3
|
||
|
|
||
|
use sea_orm::entity::prelude::*;
|
||
|
|
||
|
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
|
||
|
#[sea_orm(table_name = "la_article_category")]
|
||
|
pub struct Model {
|
||
|
#[sea_orm(primary_key)]
|
||
|
pub id: u32,
|
||
|
pub name: String,
|
||
|
pub sort: u16,
|
||
|
pub is_show: u8,
|
||
|
pub is_delete: u8,
|
||
|
pub create_time: Option<u32>,
|
||
|
pub update_time: Option<u32>,
|
||
|
pub delete_time: Option<u32>,
|
||
|
}
|
||
|
|
||
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||
|
pub enum Relation {}
|
||
|
|
||
|
impl ActiveModelBehavior for ActiveModel {}
|