20 lines
522 B
Rust
20 lines
522 B
Rust
|
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.11
|
||
|
|
||
|
use sea_orm::entity::prelude::*;
|
||
|
use serde::{Deserialize, Serialize};
|
||
|
|
||
|
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Serialize, Deserialize)]
|
||
|
#[sea_orm(table_name = "auth_permission")]
|
||
|
pub struct Model {
|
||
|
#[sea_orm(primary_key)]
|
||
|
pub id: i32,
|
||
|
pub name: String,
|
||
|
pub content_type_id: i32,
|
||
|
pub codename: String,
|
||
|
}
|
||
|
|
||
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||
|
pub enum Relation {}
|
||
|
|
||
|
impl ActiveModelBehavior for ActiveModel {}
|