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 0x7fdb9bbd2c08>))
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 0x7fdb9bbd2c80>))
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 0x7fdb9bbd2b18>))
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)