库存添加UNIQUE约束

This commit is contained in:
yinjinlu-pc\尹金路
2023-03-05 13:30:51 +08:00
parent c439d98cef
commit 03de020440
3 changed files with 64 additions and 7 deletions

View File

@@ -201,13 +201,13 @@ drop table if exists dv_repair_line;
create table dv_repair_line (
line_id bigint(20) not null auto_increment comment '行ID',
repair_id bigint(20) not null comment '维修单ID',
subject_id bigint(20) not null comment '项目ID',
subject_code varchar(64) not null comment '项目编码',
subject_id bigint(20) comment '项目ID',
subject_code varchar(64) comment '项目编码',
subject_name varchar(255) comment '项目名称',
subject_type varchar(64) comment '项目类型',
subject_content varchar(500) not null comment '项目内容',
subject_content varchar(500) comment '项目内容',
subject_standard varchar(255) comment '标准',
malfunction varchar(500) comment '故障描述',
malfunction varchar(500) not null comment '故障描述',
malfunction_url varchar(255) comment '故障描述资源',
repair_des varchar(500) comment '维修情况',
remark varchar(500) default '' comment '备注',