init
This commit is contained in:
22
src/entity/la_article_category.rs
Normal file
22
src/entity/la_article_category.rs
Normal file
@ -0,0 +1,22 @@
|
||||
//! `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 {}
|
Reference in New Issue
Block a user