Dbmodels

Database models

Dbmodels

class app.shared.dbmodels.Translation

Bases: Model

Database model representing a saved word translation record.

created_at

The date and time when the request was created.

id

A unique ID for the translation record.

user_id

The owner-user unique ID

word

The word that was translated.

class app.shared.dbmodels.User

Bases: Model

Database model representing an application user.

id

A unique ID for the user.

is_admin

Indicates whether the user has administrator privileges.

name

The unique name of the user.

password_hash

The password hash string.

translations