Initial roborto accounting implementation
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
"""Add reusable supplier records."""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
revision = "0006_suppliers"
|
||||
down_revision = "0005_clients"
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
def upgrade() -> None:
|
||||
op.create_table("suppliers",
|
||||
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("tax_identifier", sa.String(length=100)),
|
||||
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("suppliers")
|
||||
Reference in New Issue
Block a user