SQLAlchemy User Model Python Module¶
Example user model for consumers to use.
-
class
pacifica.auth.user_model.
Base
(**kwargs)¶ The most base type
-
__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.
-
metadata
= MetaData()¶
-
registry
= <sqlalchemy.orm.decl_api.registry object>¶
-
-
class
pacifica.auth.user_model.
User
(**kwargs)[source]¶ Example SQLAlchemy User Model.
-
__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.
-
_sa_class_manager
= {'active': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'email': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'name': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'password': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'username': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'uuid': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}¶
-
active
¶
-
email
¶
-
id
¶
-
name
¶
-
password
¶
-
username
¶
-
uuid
¶
-