base.sql 1.31 KB
alter table base_data_customer modify column mnemonic_code varchar(20) null;

create table if not exists base_data_workshop (
    id varchar(32) primary key comment 'ID',
    code varchar(20) not null comment '厂房编号',
    name varchar(50) not null comment '厂房名称',
    type varchar(20) not null comment '厂房类型',
    description varchar(100) comment '描述',
    create_by_id varchar(32) not null comment '创建人ID',
    create_by varchar(32) not null comment '创建人',
    update_by_id varchar(32) not null comment '更新人ID',
    update_by varchar(32) not null comment '更新人',
    create_time datetime default now() comment '创建时间',
    update_time datetime default now() comment '更新时间'
);

create table if not exists base_data_office (
    id varchar(32) primary key comment 'ID',
    code varchar(20) not null comment '编号',
    name varchar(50) not null comment '名称',
    description varchar(100) comment '描述',
    create_by_id varchar(32) not null comment '创建人ID',
    create_by varchar(32) not null comment '创建人',
    update_by_id varchar(32) not null comment '更新人ID',
    update_by varchar(32) not null comment '更新人',
    create_time datetime default now() comment '创建时间',
    update_time datetime default now() comment '更新时间'
);