Buckets:

download
raw
1.16 kB
# SPDX-FileCopyrightText: 2023-present MTS PJSC
# SPDX-License-Identifier: Apache-2.0
from __future__ import annotations
from sqlalchemy import BigInteger, Boolean, String
from sqlalchemy.orm import Mapped, mapped_column
from syncmaster.db.mixins import TimestampMixin
from syncmaster.db.models.base import Base
class User(Base, TimestampMixin):
__tablename__ = "user"
id: Mapped[int] = mapped_column(BigInteger, primary_key=True)
username: Mapped[str] = mapped_column(String(256), nullable=False, unique=True, index=True)
email: Mapped[str | None] = mapped_column(String(256), nullable=True)
first_name: Mapped[str | None] = mapped_column(String(256), nullable=True)
last_name: Mapped[str | None] = mapped_column(String(256), nullable=True)
middle_name: Mapped[str | None] = mapped_column(String(256), nullable=True)
is_superuser: Mapped[bool] = mapped_column(Boolean, default=False, nullable=False)
is_active: Mapped[bool] = mapped_column(Boolean, default=True, nullable=False)
def __repr__(self) -> str:
return f"User(username={self.username}, is_superuser={self.is_superuser}, is_active={self.is_active})"

Xet Storage Details

Size:
1.16 kB
·
Xet hash:
3789c66bc9cc4029dd48f71afebe67105f064fdda4c7b5b5b96bc76962b0cfa5

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.