Skip to content

user

User ORM Model

Defines the User class, which represents metadata for users within the Eleanor framework.

Classes

User

Bases: Participant

Human user metadata

Attributes

__table_args__ class-attribute instance-attribute
__table_args__ = ({'comment': __doc__})
__tablename__ class-attribute instance-attribute
__tablename__ = 'user'
create_ts class-attribute instance-attribute
create_ts: Mapped[datetime] = mapped_column(
    server_default=now(), comment="Record create timestamp"
)
pkid class-attribute instance-attribute
pkid: Mapped[str] = mapped_column(
    ForeignKey("participant.pkid"),
    primary_key=True,
    comment="Human user identifier",
)
settings class-attribute instance-attribute
settings: Mapped[UserResourceSettings] = mapped_column(
    PydanticType(UserResourceSettings),
    default={},
    nullable=False,
    comment="JSON-encoded resource settings",
)
update_ts class-attribute instance-attribute
update_ts: Mapped[datetime] = mapped_column(
    server_default=now(),
    onupdate=current_timestamp(),
    comment="Record update timestamp",
)