v0.1 - макет интерфейса, аутентификация через логин, аккаунт админа, создание партии в 2 этапа, базовые настройки профиля и группы, переключение между группами, статистика

This commit is contained in:
2026-06-16 17:41:06 +03:00
parent 6ab74f01aa
commit 56b5d09a4d
123 changed files with 13572 additions and 21 deletions
@@ -0,0 +1,30 @@
"""Сидинг справочников: дополнения и фракции (идемпотентно).
Revision ID: 0002_seed_reference
Revises: 0001_initial
Create Date: 2026-06-15
"""
from typing import Sequence, Union
from sqlmodel import Session
from alembic import op
from app.seed.reference_data import seed_reference_data
revision: str = "0002_seed_reference"
down_revision: Union[str, None] = "0001_initial"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None:
bind = op.get_bind()
with Session(bind=bind) as session:
seed_reference_data(session)
def downgrade() -> None:
bind = op.get_bind()
op.execute("DELETE FROM factions")
op.execute("DELETE FROM expansions")
_ = bind