¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | # 设å¤å°è´¦ |
| | | create table `product-inventory-management`.device_repair |
| | | ( |
| | | id bigint auto_increment |
| | | primary key, |
| | | device_ledger_id varchar(255) not null comment '设å¤å°è´¦id', |
| | | repair_time timestamp null comment 'æ¥ä¿®æ¥æ', |
| | | repair_name varchar(255) not null comment 'æ¥ä¿®äºº', |
| | | remark varchar(255) not null comment 'æ
éç°è±¡', |
| | | maintenance_name varchar not null comment '维修人', |
| | | maintenance_time timestamp null comment 'ç»´ä¿®æ¶é´', |
| | | maintenance_result varchar(255) null comment 'ç»´ä¿®ç»æ', |
| | | status int default 0 comment 'ç¶æ', |
| | | create_time datetime null comment 'å½å
¥æ¶é´', |
| | | update_time datetime null comment 'æ´æ°æ¶é´', |
| | | create_user varchar(255) not null comment 'å½å
¥äºº', |
| | | update_user varchar(255) not null comment 'æ´æ°äºº', |
| | | tenant_id bigint not null comment 'ç§æ·id' |
| | | ); |
| | | |
| | | # 设å¤ç»´ä¿® |
| | | create table `product-inventory-management`.device_ledger |
| | | ( |
| | | id bigint auto_increment |
| | | primary key, |
| | | device_name varchar(255) not null comment '设å¤åç§°', |
| | | device_model varchar(255) not null comment 'è§æ ¼åå·', |
| | | supplier_name varchar(255) not null comment 'ä¾åºå', |
| | | unit varchar(255) not null comment 'åä½', |
| | | number decimal not null comment 'æ°é', |
| | | tax_including_price_unit decimal not null comment 'å«ç¨åä»·', |
| | | tax_including_price_total decimal not null comment 'å«ç¨æ»ä»·', |
| | | tax_rate decimal not null comment 'ç¨ç', |
| | | un_tax_including_price_total decimal not null comment 'ä¸å«ç¨æ»ä»·', |
| | | create_time timestamp null comment 'å½å
¥æ¶é´', |
| | | update_time timestamp null comment 'æ´æ°æ¶é´', |
| | | create_user varchar(255) not null comment 'å½å
¥äºº', |
| | | update_user varchar(255) not null comment 'æ´æ°äºº', |
| | | tenant_id bigint not null comment 'ç§æ·id' |
| | | ); |
| | | |
| | | create table `product-inventory-management`.device_maintenance |
| | | ( |
| | | id bigint auto_increment |
| | | primary key, |
| | | device_ledger_id varchar(255) not null comment '设å¤å°è´¦id', |
| | | maintenance__plan_time timestamp null comment '计åä¿å
»æ¥æ', |
| | | maintenance_actually_name varchar(255) not null comment 'å®é
ä¿å
»äºº', |
| | | maintenance_actually_time timestamp null comment 'å®é
ä¿å
»æ¥æ', |
| | | maintenance_result int not null default 0 comment 'ä¿å
»ç»æ 0 ç»´ä¿® 1 å®å¥½', |
| | | status int not null default 0 comment 'ç¶æ 0 å¾
ä¿å
» 1 å®ç»', |
| | | create_time datetime null comment 'å½å
¥æ¶é´', |
| | | update_time datetime null comment 'æ´æ°æ¶é´', |
| | | create_user varchar(255) not null comment 'å½å
¥äºº', |
| | | update_user varchar(255) not null comment 'æ´æ°äºº', |
| | | tenant_id bigint not null comment 'ç§æ·id' |
| | | ); |