Type
This module contains a basic Type Model
- class loglan_core.type.BaseType(type_, type_x, group, parentable, description=None)[source]
Bases:
BaseModelBaseType model
- created: Mapped[datetime]
A class attribute mapped to a column in the database table. It represents the timestamp when a row is created. The default value is the current timestamp, and it can’t be null.
- Type:
datetime
- description: Mapped[str_255 | None]
- group: Mapped[str_016]
- id: Mapped[int]
A class attribute mapped to a column in the database table. It serves as the primary key for the table.
- Type:
int
- parentable: Mapped[bool]
- type_: Mapped[str_016]
- type_x: Mapped[str_016]
- updated: Mapped[datetime | None]
A class attribute mapped to a column in the database table. It represents the timestamp when a row is last updated. Whenever the row is updated, this timestamp is automatically set to the current time. It can be
nullif the row has never been updated.- Type:
datetime
- words: Mapped[list[BaseWord]]