29 lines
709 B
Rust
29 lines
709 B
Rust
//! 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)]
|
|
#[serde(rename_all = "camelCase")]
|
|
#[sea_orm(table_name = "bookmark")]
|
|
pub struct Model {
|
|
#[sea_orm(primary_key)]
|
|
#[serde(skip_deserializing)]
|
|
pub id: i32,
|
|
pub bookmark_name: String,
|
|
pub url: String,
|
|
pub active: bool,
|
|
pub bookmark_category_id: Option<i32>,
|
|
}
|
|
|
|
#[derive(Copy, Clone, Debug, EnumIter)]
|
|
pub enum Relation {}
|
|
|
|
impl RelationTrait for Relation {
|
|
fn def(&self) -> RelationDef {
|
|
panic!("No RelationDef")
|
|
}
|
|
}
|
|
|
|
impl ActiveModelBehavior for ActiveModel {}
|