#!/usr/bin/env python3
"""
创建 publish_records 表
"""
import sys
from pathlib import Path

# 添加项目根目录到 Python 路径
project_root = Path(__file__).parent.parent.parent
sys.path.insert(0, str(project_root))

from app.database import engine, Base
from app.models import PublishRecord

print("正在创建 publish_records 表...")
Base.metadata.create_all(bind=engine, tables=[PublishRecord.__table__])
print("✅ publish_records 表创建完成")
