admin/sql
zzh c5fb4c7e58 feat: add employee profile, IDE employee nos, and marketing invite/coupon fixes
Introduce t_employee linked to RBAC users, switch employee numbers to IDE001+, and keep invite bind/newcomer coupon backend changes. Drop retired sql/migrate and seed scripts in favor of db.sql.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-26 23:18:57 +08:00
..
README.md refactor: 仓储表 C_* 改为 c_*,优化专线小包批量模板 2026-07-22 16:18:59 +08:00

sql/

OMS / 共用库的建表脚本已统一到仓库根目录 db.sql。

  • 新环境:直接执行 db.sql(会 DROP 后重建,勿在有生产数据的库上执行)
  • 已有库:用 diff 对比 db.sql 与现库结构后手工 ALTER;本目录下单个表脚本(如 c_parcel_arrival.sql、c_parcel_item_AttributeText.sql、c_parcel_item_ImageUrl.sql)可直接在已有库执行增量建表;若仍为旧名 C_*,先执行 migrate_rename_warehouse_C_to_c.sql
  • 数据权限表(user_org_perm 等)若 RBAC 与 OMS 分库,请只在 RBAC 库执行 db.sql 末尾对应段落