2022-02-03 21:55:10 +00:00
|
|
|
//! SeaORM Entity. Generated by sea-orm-codegen 0.5.0
|
|
|
|
|
|
|
|
use sea_orm::entity::prelude::*;
|
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
|
|
|
|
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize, Deserialize)]
|
2022-02-05 06:11:24 +00:00
|
|
|
#[serde(rename_all = "camelCase")]
|
2022-02-03 21:55:10 +00:00
|
|
|
#[sea_orm(table_name = "bookmark_category")]
|
|
|
|
pub struct Model {
|
|
|
|
#[sea_orm(primary_key)]
|
2022-02-04 20:28:53 +00:00
|
|
|
#[serde(skip_deserializing)]
|
2022-02-03 21:55:10 +00:00
|
|
|
pub id: i32,
|
|
|
|
pub category_name: String,
|
|
|
|
pub active: bool,
|
|
|
|
pub glyph: Option<String>,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Copy, Clone, Debug, EnumIter)]
|
|
|
|
pub enum Relation {}
|
|
|
|
|
|
|
|
impl RelationTrait for Relation {
|
|
|
|
fn def(&self) -> RelationDef {
|
|
|
|
panic!("No RelationDef")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl ActiveModelBehavior for ActiveModel {}
|