| ¶Ô±ÈÐÂÎļþ |
| | |
| | | # 产åç»æ |
| | | drop table if exists product_structure; |
| | | create table product_structure |
| | | ( |
| | | id bigint auto_increment |
| | | primary key, |
| | | product_model_id bigint not null comment '产åid', |
| | | process_id bigint not null comment 'å·¥åºid', |
| | | unit_quantity numeric(16, 4) not null comment 'åä½äº§åºéè¦æ°é', |
| | | demanded_quantity numeric(16, 4) not null comment 'éæ±æ°é', |
| | | unit varchar(255) not null comment 'åä½', |
| | | disk_quantity numeric(16, 4) not null comment 'çæ°é', |
| | | tenant_id bigint not null comment 'ç§æ·id' |
| | | ); |
| | | alter table product_structure |
| | | add parent_id bigint null comment 'ç¶id'; |