minccino/src/entity/defaults.rs
2022-09-23 22:39:17 -07:00

24 lines
552 B
Rust

//! SeaORM Entity. Generated by sea-orm-codegen 0.9.2
use crate::types::DefaultKey;
use sea_orm::entity::prelude::*;
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
#[sea_orm(table_name = "defaults")]
pub struct Model {
#[sea_orm(primary_key, auto_increment = false)]
pub key: DefaultKey,
pub value: String,
}
#[derive(Copy, Clone, Debug, EnumIter)]
pub enum Relation {}
impl RelationTrait for Relation {
fn def(&self) -> RelationDef {
panic!("No RelationDef")
}
}
impl ActiveModelBehavior for ActiveModel {}