jet/crates/entities/src/auth_permission.rs

20 lines
522 B
Rust
Raw Normal View History

2024-01-23 12:29:19 +01:00
//! `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 {}