chore: copy lab4 solution (api, nginx, migrations, tests, s3)

This commit is contained in:
2026-11-11 21:31:19 +03:00
parent 276dbdad8a
commit c9dbf7d71e
33 changed files with 1792 additions and 21 deletions
@@ -0,0 +1,30 @@
"""add updated_at to attachments
Revision ID: 133990c80d19
Revises: abc40f94dd51
Create Date: 2026-11-11 21:06:40.354578
"""
from typing import Sequence, Union
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision: str = '133990c80d19'
down_revision: Union[str, None] = 'abc40f94dd51'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('attachments', sa.Column('updated_at', sa.DateTime(timezone=True), server_default=sa.text('now()'), nullable=False))
# ### end Alembic commands ###
def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('attachments', 'updated_at')
# ### end Alembic commands ###