agent请假推申请单到OA

This commit is contained in:
runny committed 2026-05-15 17:16:54 +08:00
1 parent aeb6b66513
commit 367c20eb09
15 files changed
+1833 -143

No files matched your search

@@ -0,0 +1,26 @@
"""add message_type and payload to chatlog
Revision ID: 1ebc0253f9f6
Revises: 2a4b6c8d0e1f
Create Date: 2026-05-15 14:18:31.665105
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = '1ebc0253f9f6'
down_revision = '2a4b6c8d0e1f'
branch_labels = None
depends_on = None
def upgrade():
with op.batch_alter_table('chat_logs', schema=None) as batch_op:
batch_op.add_column(sa.Column('message_type', sa.String(length=50), nullable=True))
batch_op.add_column(sa.Column('payload', sa.JSON(), nullable=True))
def downgrade():
with op.batch_alter_table('chat_logs', schema=None) as batch_op:
batch_op.drop_column('payload')
batch_op.drop_column('message_type')