liuyun 239dec912c refactor(c0): 业务表去 sys_ 前缀改业务领域命名,字典复用脚手架
- ltc_agency/ltc_staff;svc_national/svc_local/svc_mapping/svc_org;loc_config
- 删 sys_dict_abnormal_type/sys_dict_photo_tier,异常分类/拍照分档改为内置字典(abnormal_type/photo_tier)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-14 14:44:58 +08:00

13 lines
641 B
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 业务表重命名:去 sys_ 前缀,恢复业务领域语义命名
ALTER TABLE `sys_agency` RENAME TO `ltc_agency`;
ALTER TABLE `sys_staff` RENAME TO `ltc_staff`;
ALTER TABLE `sys_svc_national` RENAME TO `svc_national`;
ALTER TABLE `sys_svc_local` RENAME TO `svc_local`;
ALTER TABLE `sys_svc_mapping` RENAME TO `svc_mapping`;
ALTER TABLE `sys_svc_org` RENAME TO `svc_org`;
ALTER TABLE `sys_loc_config` RENAME TO `loc_config`;
-- 业务字典改用脚手架 sys_dict_type / sys_dict_item(异常分类、拍照分档作为内置字典 seed)
DROP TABLE IF EXISTS `sys_dict_abnormal_type`;
DROP TABLE IF EXISTS `sys_dict_photo_tier`;