- demo 账号: brand/agency/creator@demo.com - 组织关系 + 项目/Brief + 4种阶段任务 + 规则数据 + 示例消息 - entrypoint.sh (Docker) + init_db.sh (手动) + start-dev.sh 更新 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
16 lines
281 B
Bash
Executable File
16 lines
281 B
Bash
Executable File
#!/bin/bash
|
|
# 数据库初始化脚本
|
|
# 运行 Alembic 迁移 + 填充种子数据
|
|
|
|
set -e
|
|
|
|
echo "=== 数据库初始化 ==="
|
|
|
|
echo "1. 运行 Alembic 迁移..."
|
|
alembic upgrade head
|
|
|
|
echo "2. 填充种子数据..."
|
|
python -m scripts.seed
|
|
|
|
echo "=== 数据库初始化完成 ==="
|