congress.db.model_base module

congress.db.model_base module

class congress.db.model_base.CongressBase

Bases: oslo_db.sqlalchemy.models.ModelBase

Base class for Congress Models.

next()
class congress.db.model_base.HasAudit

Bases: object

created_at = Column(None, DateTime(), table=None, nullable=False, default=ColumnDefault(<function _get_date>))
deleted = Column(None, String(length=36), table=None, default=ColumnDefault(''), server_default=DefaultClause('', for_update=False))
deleted_at = Column(None, DateTime(), table=None)
updated_at = Column(None, DateTime(), table=None, onupdate=ColumnDefault(<function _get_date>))
class congress.db.model_base.HasId

Bases: object

id mixin, add to subclasses that have an id.

id = Column(None, String(length=36), table=None, primary_key=True, nullable=False, default=ColumnDefault(<function generate_uuid>))
class congress.db.model_base.HasTenant

Bases: object

Tenant mixin, add to subclasses that have a tenant.

tenant_id = Column(None, String(length=255), table=None)
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.