fix 修复 test 表租户id没有设置默认值问题
| | |
| | | create table test_demo ( |
| | | id number(20) not null, |
| | | tenant_id varchar2(20) not null, |
| | | tenant_id varchar2(20) default '000000', |
| | | dept_id number(20) default null, |
| | | user_id number(20) default null, |
| | | order_num number(10) default 0, |
| | |
| | | |
| | | create table test_tree ( |
| | | id number(20) not null, |
| | | tenant_id varchar2(20) not null, |
| | | tenant_id varchar2(20) default '000000', |
| | | parent_id number(20) default 0, |
| | | dept_id number(20) default null, |
| | | user_id number(20) default null, |
| | |
| | | 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, |
| | |
| | | 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, |
| | |
| | | CREATE TABLE test_demo |
| | | ( |
| | | id bigint NOT NULL, |
| | | tenant_id nvarchar(20) NOT NULL, |
| | | tenant_id nvarchar(20) DEFAULT ('000000') NULL, |
| | | dept_id bigint NULL, |
| | | user_id bigint NULL, |
| | | order_num int DEFAULT ((0)) NULL, |
| | |
| | | CREATE TABLE test_tree |
| | | ( |
| | | id bigint NOT NULL, |
| | | tenant_id nvarchar(20) NOT NULL, |
| | | tenant_id nvarchar(20) DEFAULT ('000000') NULL, |
| | | parent_id bigint DEFAULT ((0)) NULL, |
| | | dept_id bigint NULL, |
| | | user_id bigint NULL, |
| | |
| | | CREATE TABLE test_demo |
| | | ( |
| | | id bigint(0) NOT NULL COMMENT '主键', |
| | | tenant_id varchar(20) NOT NULL COMMENT '租户编号', |
| | | tenant_id varchar(20) NULL DEFAULT '000000' COMMENT '租户编号', |
| | | dept_id bigint(0) NULL DEFAULT NULL COMMENT '部门id', |
| | | user_id bigint(0) NULL DEFAULT NULL COMMENT '用户id', |
| | | order_num int(0) NULL DEFAULT 0 COMMENT '排序号', |
| | |
| | | CREATE TABLE test_tree |
| | | ( |
| | | id bigint(0) NOT NULL COMMENT '主键', |
| | | tenant_id varchar(20) NOT NULL COMMENT '租户编号', |
| | | tenant_id varchar(20) NULL DEFAULT '000000' COMMENT '租户编号', |
| | | parent_id bigint(0) NULL DEFAULT 0 COMMENT '父id', |
| | | dept_id bigint(0) NULL DEFAULT NULL COMMENT '部门id', |
| | | user_id bigint(0) NULL DEFAULT NULL COMMENT '用户id', |