5.4.2.14. gemini_interface.blueprint.dbmodels
Database models.
Classes
|
Project model for project management and ownership tracking. |
|
User model for authentication and profile management. |
- class gemini_interface.blueprint.dbmodels.Project(**kwargs)[source]
Bases:
ModelProject model for project management and ownership tracking.
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.
- group
- id
- name
- 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.
- user
- class gemini_interface.blueprint.dbmodels.User(**kwargs)[source]
Bases:
UserMixin,ModelUser model for authentication and profile management.
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
- group
- id
- name
- password
- 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.
- role