//! `SeaORM` Entity, @generated by sea-orm-codegen 1.1.11 use sea_orm::entity::prelude::*; use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Serialize, Deserialize)] #[sea_orm(table_name = "category")] pub struct Model { #[sea_orm(primary_key)] pub id: i64, pub name: String, pub uid: i64, pub parent_id: i64, pub is_deleted: bool, pub created_at: DateTime, pub updated_at: DateTime, } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation {} impl ActiveModelBehavior for ActiveModel {}