User
User information.
2024-07-30 -- Not sure that I actually use some of these fields anymore, might be worth looking into streamlining.
User
Bases: VersionedMixin, ModelWithSchema
User information.
2024-07-30 -- Not sure that I actually use some of these fields anymore, might be worth looking into streamlining.
User
Bases: VersionedMixin, ModelWithSchema
__tablename__ = 'users'
class-attribute
instance-attribute
clerk_id = mapped_column(String(32), unique=True, index=True)
class-attribute
instance-attribute
conversations = relationship(back_populates='user', lazy='raise', order_by='desc(ConversationMetadataModel.created_at)')
class-attribute
instance-attribute
credits
instance-attribute
email = mapped_column(String(320), unique=True, index=True)
class-attribute
instance-attribute
first_name = mapped_column(String(64))
class-attribute
instance-attribute
github_api_key = mapped_column(String(100), nullable=True)
class-attribute
instance-attribute
id = mapped_column(primary_key=True)
class-attribute
instance-attribute
last_name = mapped_column(String(64))
class-attribute
instance-attribute
purchases = relationship(back_populates='user', lazy='raise')
class-attribute
instance-attribute
roles = mapped_column(UserRolesType)
class-attribute
instance-attribute
schema_class = UserSchema
class-attribute
__admin_repr__(request)
__repr__()
model_from_schema(schema)
classmethod
to_schema()