2025-09-21 22:56:46 +08:00
|
|
|
//! `SeaORM` Entity, @generated by sea-orm-codegen 1.1.16
|
2025-06-08 20:42:24 +08:00
|
|
|
|
|
|
|
|
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 {}
|