591 B · text History 11b17d3
//! `SeaORM` Entity, @generated by sea-orm-codegen 1.1.2

use sea_orm::entity::prelude::*;

#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
#[sea_orm(table_name = "trait_defaults")]
pub struct Model {
    #[sea_orm(primary_key)]
    pub id: i32,
    pub key: String,
    pub default: bool,
    pub enabled: bool,
    pub is_date: bool,
    pub is_contact: bool,
    pub color: String,
    pub symbol: String,
    pub date_ins: Date,
    pub date_up: Date,
}

#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}

impl ActiveModelBehavior for ActiveModel {}