Metadata-Version: 2.4
Name: xync-db
Version: 0.0.2.dev2
Summary: Xync DB schema: Tortoise ORM models, enums, pydantic DTOs.
Author-email: Mike Artemiev <mixartemev@gmail.com>
License: LicenseRef-EULA
Requires-Python: >=3.12
Requires-Dist: pillow
Requires-Dist: pydantic-settings>=2.4
Requires-Dist: pypng
Requires-Dist: tortoise-orm[asyncpg]>=1.0
Requires-Dist: xn-auth
Description-Content-Type: text/markdown

# xync-db

Tortoise ORM models, enums, pydantic DTOs, and migrations. Single source of truth for
data shape across the monorepo.

## Migrations (native Tortoise CLI — no aerich)

```bash
cd packages/xync-db
uv run tortoise init              # only once
uv run tortoise makemigrations    # detect changes
uv run tortoise migrate           # apply
uv run tortoise downgrade models 0001_initial   # roll back
uv run tortoise sqlmigrate models 0001_initial  # preview SQL
```

Config lives in this package's `pyproject.toml` under `[tool.tortoise]`.
