tendril.auth.db.model module

Docstring for model.py

class tendril.auth.db.model.UserRoles(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base, tendril.utils.db.BaseMixin

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.

user_id
role_id
_sa_class_manager = <ClassManager of <class 'tendril.auth.db.model.UserRoles'> at 7f6cbe6f92a0>
id
class tendril.auth.db.model.User(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base, tendril.utils.db.BaseMixin, flask_user.UserMixin

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.

email
confirmed_at
active
full_name
user_auth
roles
_sa_class_manager = <ClassManager of <class 'tendril.auth.db.model.User'> at 7f6cbe6f9740>
id
class tendril.auth.db.model.UserAuth(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base, tendril.utils.db.BaseMixin, flask_user.UserMixin

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.

user_id
username
password
reset_password_token
active
user
_sa_class_manager = <ClassManager of <class 'tendril.auth.db.model.UserAuth'> at 7f6cbe6f9ab8>
id
class tendril.auth.db.model.Role(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base, tendril.utils.db.BaseMixin

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.

name
description
_sa_class_manager = <ClassManager of <class 'tendril.auth.db.model.Role'> at 7f6cbe6f9d08>
id