From f2892a672a495a78562836561f51a2a274cd16aa Mon Sep 17 00:00:00 2001 From: WangBQ <wangbinglilac@sina.com> Date: 星期一, 29 五月 2023 10:26:10 +0800 Subject: [PATCH] !349 代码生成 从对应数据源加载表结构信息 存储到主数据源 实现存储统一 * 数据库脚本修改,gen_table增加data_name字段,存储对应数据源名称 * 代码生成 从对应数据源加载表结构信息 存储到主数据源 实现存储统一(表结构需要增加对应的数据来源字段) https://gitee.com/… --- script/sql/postgres/postgres_test.sql | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/script/sql/postgres/postgres_test.sql b/script/sql/postgres/postgres_test.sql index 0a7d3ff..179096b 100644 --- a/script/sql/postgres/postgres_test.sql +++ b/script/sql/postgres/postgres_test.sql @@ -2,7 +2,7 @@ create table if not exists test_demo ( id int8, - tenant_id varchar(20) not null, + tenant_id varchar(20) default '000000', dept_id int8, user_id int8, order_num int4 default 0, @@ -37,7 +37,7 @@ create table if not exists test_tree ( id int8, - tenant_id varchar(20) not null, + tenant_id varchar(20) default '000000', parent_id int8 default 0, dept_id int8, user_id int8, -- Gitblit v1.9.3