Config metadata mixin
ConfigMetadataMixin
Model for storing metadata about a control group.
Note: backrefs made from ControlGroupModelBase (i.e. all ControlGroupModels make a backref to this model)
copied_from_name = mapped_column(String(100), nullable=True)
class-attribute
instance-attribute
copied_from_type
instance-attribute
name = mapped_column(String(100), nullable=True)
class-attribute
instance-attribute
type
instance-attribute
user_id = mapped_column(ForeignKey('users.id'), nullable=True)
class-attribute
instance-attribute
user_id_for_constraint = mapped_column(nullable=False, server_default='-1')
class-attribute
instance-attribute
__admin_repr__(request)
meta_to_schema()
Convert the SQLAlchemy model to the associated pydantic schema.
set_meta_from_schema(model, schema)
classmethod
Create a new model from the given schema.