8.2.10.4.8.4. Consent¶
- class Consent(**kwargs)[source]¶
Methods
__delattr__Implement delattr(self, name).
__dir__Default dir() implementation.
__eq__Return self==value.
__format__Default object formatter.
__ge__Return self>=value.
__getattribute__Return getattr(self, name).
__getstate__Helper for pickle.
__gt__Return self>value.
__hash__Return hash(self).
A simple constructor that allows initialization from kwargs.
__init_subclass__This method is called when a class is subclassed.
__le__Return self<=value.
__lt__Return self<value.
__ne__Return self!=value.
__new____reduce__Helper for pickle.
__reduce_ex__Helper for pickle.
Return repr(self).
__setattr__Implement setattr(self, name, value).
__sizeof__Size of object in memory, in bytes.
__str__Return str(self).
__subclasshook__Abstract classes can override this to customize issubclass().
- __init__(**kwargs)¶
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
Attributes
__abstract____dict____fsa__Internal reference to the extension object.
__weakref__list of weak references to the object
_sa_registrymetadataregistry- __tablename__ = 'consents'¶
- id¶
- consents¶
- created_at¶
- updated_at¶
- created_by¶
- updated_by¶
- __annotations__ = {'__fsa__': 't.ClassVar[SQLAlchemy]', 'query': 't.ClassVar[Query]', 'query_class': 't.ClassVar[type[Query]]'}¶
- __doc__ = None¶
- __init__(**kwargs)¶
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
- __mapper__ = <Mapper at 0x750f612a99d0; Consent>¶
- __module__ = 'schedula.utils.form.server.gdpr'¶
- __table__ = Table('consents', MetaData(), Column('id', String(length=36), table=<consents>, primary_key=True, nullable=False, default=CallableColumnDefault(<function Consent.<lambda>>)), Column('consents', JSON(), table=<consents>, nullable=False), Column('created_at', DateTime(), table=<consents>, nullable=False, default=CallableColumnDefault(<function datetime.utcnow>)), Column('updated_at', DateTime(), table=<consents>, onupdate=CallableColumnDefault(<function datetime.utcnow>)), Column('created_by', Integer(), ForeignKey('user.id'), table=<consents>, default=CallableColumnDefault(<function Consent.<lambda>>)), Column('updated_by', Integer(), ForeignKey('user.id'), table=<consents>, onupdate=CallableColumnDefault(<function Consent.<lambda>>)), schema=None)¶
- _sa_class_manager = {'consents': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'created_at': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'created_by': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'updated_at': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'updated_by': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}¶
- query: t.ClassVar[Query]¶
A SQLAlchemy query for a model. Equivalent to
db.session.query(Model). Can be customized per-model by overridingquery_class.Warning
The query interface is considered legacy in SQLAlchemy. Prefer using
session.execute(select())instead.