use super::sea_orm_active_enums::*; use sea_orm::entity::prelude::*; #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[cfg_attr(feature = "sqlx-postgres", sea_orm(schema_name = "public"))] #[sea_orm(table_name = "active_enum")] pub struct Model { #[sea_orm(primary_key)] pub id: i32, pub categories: Option>, } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation {} impl ActiveModelBehavior for ActiveModel {}