"""Initial Public Schema

Revision ID: 92f0bd8ddd69
Revises: 
Create Date: 2024-04-22 16:55:17.831524

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '92f0bd8ddd69'
down_revision = None
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('tenant',
    sa.Column('created_at', sa.DateTime(), server_default=sa.text('now()'), nullable=False),
    sa.Column('updated_at', sa.DateTime(), server_default=sa.text('now()'), nullable=False),
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('name', sa.String(length=80), nullable=False),
    sa.Column('website', sa.String(length=255), nullable=True),
    sa.Column('license_start_date', sa.Date(), nullable=True),
    sa.Column('license_end_date', sa.Date(), nullable=True),
    sa.Column('allowed_monthly_interactions', sa.Integer(), nullable=True),
    sa.PrimaryKeyConstraint('id'),
    sa.UniqueConstraint('name'),
    schema='public'
    )
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_table('tenant', schema='public')
    # ### end Alembic commands ###
