src.models
index
/var/lib/jenkins/workspace/resmon_auth_doc/src/models.py

 
Classes
       
sqlalchemy.ext.declarative.api.Model(flask_sqlalchemy.model.Model)
UserModel

 
class UserModel(sqlalchemy.ext.declarative.api.Model)
    Base class for SQLAlchemy declarative base model.
 
To define models, subclass :attr:`db.Model <SQLAlchemy.Model>`, not this
class. To customize ``db.Model``, subclass this and pass it as
``model_class`` to :class:`SQLAlchemy`.
 
 
Method resolution order:
UserModel
sqlalchemy.ext.declarative.api.Model
flask_sqlalchemy.model.Model
builtins.object

Methods defined here:
__init__(self, **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.
save_to_db(self)

Class methods defined here:
delete_all() from flask_sqlalchemy.model.DefaultMeta
find_by_username(username) from flask_sqlalchemy.model.DefaultMeta
return_all() from flask_sqlalchemy.model.DefaultMeta

Static methods defined here:
generate_hash(password)
verify_hash(password, hash)

Data descriptors defined here:
id
password
username

Data and other attributes defined here:
__mapper__ = <Mapper at 0x7fc99a46ed68; UserModel>
__table__ = Table('users', MetaData(bind=None), Column('id',...20), table=<users>, nullable=False), schema=None)
__table_args__ = {'extend_existing': True}
__tablename__ = 'users'

Methods inherited from sqlalchemy.ext.declarative.api.Model:
query

Data and other attributes inherited from sqlalchemy.ext.declarative.api.Model:
metadata = MetaData(bind=None)
query_class = <class 'flask_sqlalchemy.BaseQuery'>
SQLAlchemy :class:`~sqlalchemy.orm.query.Query` subclass with convenience methods for querying in a web application.
 
This is the default :attr:`~Model.query` object used for models, and exposed as :attr:`~SQLAlchemy.Query`.
Override the query class for an individual model by subclassing this and setting :attr:`~Model.query_class`.

Methods inherited from flask_sqlalchemy.model.Model:
__repr__(self)
Return repr(self).

Data descriptors inherited from flask_sqlalchemy.model.Model:
__dict__
dictionary for instance variables (if defined)

Data and other attributes inherited from flask_sqlalchemy.model.Model:
__weakref__ = <weakref at 0x7fc99a4764f8; to 'DefaultMeta' at 0x2cfe0b8 (UserModel)>

 
Data
        db = <SQLAlchemy engine=None>