7 天以前 f93a8f3d091f1e9d1b9c2df246ad39df0e14cfdd
1
2
3
4
5
-- account_subject 增加父级科目字段(树形结构)
ALTER TABLE `account_subject`
ADD COLUMN `parent_id` bigint NULL COMMENT '父科目ID(为空表示根节点)' AFTER `id`;
 
CREATE INDEX `idx_account_subject_parent_id` ON `account_subject` (`parent_id`);