use super::sea_orm_active_enums::*; use sea_orm::entity::prelude::*; #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[sea_orm(table_name = "collection")] pub struct Model { #[sea_orm(primary_key)] pub id: i32, #[sea_orm( column_type = r#"custom("citext")"#, select_as = "text", save_as = "citext" )] pub name: String, pub integers: Vec, pub integers_opt: Option>, pub teas: Vec, pub teas_opt: Option>, pub colors: Vec, pub colors_opt: Option>, pub uuid: Vec, pub uuid_hyphenated: Vec, } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation {} impl ActiveModelBehavior for ActiveModel {}