Initial roborto accounting implementation

This commit is contained in:
rob
2026-08-30 07:16:21 +01:00
commit 97a75d0243
145 changed files with 5525 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
"""Add reusable client records."""
from alembic import op
import sqlalchemy as sa
revision = "0005_clients"
down_revision = "0004_audit_events"
branch_labels = None
depends_on = None
def upgrade() -> None:
op.create_table("clients",
sa.Column("id", sa.Integer(), primary_key=True),
sa.Column("name", sa.String(length=200), nullable=False),
sa.Column("billing_address", sa.Text()), sa.Column("email", sa.String(length=320)),
sa.Column("phone", sa.String(length=80)), sa.Column("contact_person", sa.String(length=200)),
sa.Column("tax_identifier", sa.String(length=100)),
sa.Column("default_payment_terms_days", sa.Integer()), sa.Column("notes", sa.Text()),
sa.Column("is_active", sa.Boolean(), nullable=False),
sa.Column("created_at", sa.DateTime(), nullable=False), sa.Column("updated_at", sa.DateTime(), nullable=False))
def downgrade() -> None:
op.drop_table("clients")