buhuazhen
2026-03-06 b7eb6e87b4d88e5a419b64e3e3d0e5dc1be0f48f
doc/create_table_product_structure.sql
@@ -4,7 +4,7 @@
(
    id                 bigint auto_increment
        primary key,
    product_id         bigint         not null comment '产品id',
    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 '需求数量',
@@ -12,3 +12,5 @@
    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';