The 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 <lambda> at 0x7f257b6167d0>))
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 <lambda> at 0x7f257b616848>))
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 <lambda> at 0x7f257b6166e0>))
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)