"""add cookie_manager table Revision ID: 9ae98ba6025b Revises: a47a5d2a3f1b Create Date: 2026-09-08 15:23:56.125419 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '9ae98ba6025b' down_revision = 'a47a5d2a3f1b' branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### op.create_table('admin_cookie_manager', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False, comment='主键ID'), sa.Column('website_id', sa.Integer(), nullable=False, comment='网站ID'), sa.Column('website_name', sa.String(length=100), nullable=True, comment='网站名称'), sa.Column('website_url', sa.String(length=255), nullable=True, comment='网站URL'), sa.Column('name', sa.String(length=100), nullable=False, comment='Cookie名称'), sa.Column('value', sa.Text(), nullable=False, comment='Cookie值'), sa.Column('domain', sa.String(length=255), nullable=True, comment='Cookie域名'), sa.Column('path', sa.String(length=255), nullable=True, comment='Cookie路径'), sa.Column('expiry', sa.DateTime(), nullable=True, comment='过期时间'), sa.Column('secure', sa.Integer(), nullable=True, comment='是否安全'), sa.Column('http_only', sa.Integer(), nullable=True, comment='是否HTTPOnly'), sa.Column('enable', sa.Integer(), nullable=True, comment='状态(1启用,0禁用)'), sa.Column('create_by', sa.String(length=50), nullable=True, comment='创建者'), sa.Column('create_at', sa.DateTime(), nullable=True, comment='创建时间'), sa.Column('update_at', sa.DateTime(), nullable=True, comment='更新时间'), sa.PrimaryKeyConstraint('id') ) # ### end Alembic commands ### def downgrade(): # ### commands auto generated by Alembic - please adjust! ### op.drop_table('admin_cookie_manager') # ### end Alembic commands ###