5.4.2.14. gemini_interface.blueprint.dbmodels

Database models.

Classes

Project(**kwargs)

Project model for project management and ownership tracking.

User(**kwargs)

User model for authentication and profile management.

class gemini_interface.blueprint.dbmodels.Project(**kwargs)[source]

Bases: Model

Project 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 overriding query_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, Model

User 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 overriding query_class.

Warning

The query interface is considered legacy in SQLAlchemy. Prefer using session.execute(select()) instead.

role