Buckets:

download
raw
576 Bytes
# SPDX-FileCopyrightText: 2023-present MTS PJSC
# SPDX-License-Identifier: Apache-2.0
from datetime import UTC, datetime
from functools import partial
from sqlalchemy import DateTime, func
from sqlalchemy.orm import Mapped, mapped_column
class TimestampMixin:
created_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), server_default=func.now(), nullable=False)
updated_at: Mapped[datetime] = mapped_column(
DateTime(timezone=True),
server_default=func.now(),
onupdate=partial(datetime.now, tz=UTC),
nullable=False,
)

Xet Storage Details

Size:
576 Bytes
·
Xet hash:
59a85a4453686251641d580d7cc5033b5443c69116d3f3535c91b9eb7d023a9d

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