pub mod derive_attr { use bae::FromAttributes; /// Attributes for Models and ActiveModels #[derive(Default, FromAttributes)] pub struct SeaOrm { pub column: Option, pub entity: Option, pub model: Option, pub primary_key: Option, pub relation: Option, pub schema_name: Option, pub table_name: Option, pub comment: Option, pub table_iden: Option<()>, } } pub mod field_attr { use bae::FromAttributes; /// Operations for Models and ActiveModels #[derive(Default, FromAttributes)] pub struct SeaOrm { pub belongs_to: Option, pub has_one: Option, pub has_many: Option, pub on_update: Option, pub on_delete: Option, pub on_condition: Option, pub from: Option, pub to: Option, pub fk_name: Option, pub condition_type: Option, } } pub mod related_attr { use bae::FromAttributes; /// Operations for RelatedEntity enumeration #[derive(Default, FromAttributes)] pub struct SeaOrm { /// /// Allows to modify target entity /// /// Required on enumeration variants /// /// If used on enumeration attributes /// it allows to specify different /// Entity ident pub entity: Option, /// /// Allows to specify RelationDef /// /// Optional /// /// If not supplied the generated code /// will utilize `impl Related` trait pub def: Option, } }