BOM start implementing basic CRUD operations for Bill of Materials and Variant Nodes
This commit is contained in:
@@ -69,3 +69,42 @@ CREATE TABLE IF NOT EXISTS media (
|
||||
externalId BIGINT
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS variantNodeContent (
|
||||
id bigint NOT NULL DEFAULT nextval('global_id_seq'::regclass),
|
||||
"valueNodeId" bigint,
|
||||
"productId" bigint,
|
||||
CONSTRAINT "valueNodeContent_pkey" PRIMARY KEY (id)
|
||||
)
|
||||
|
||||
CREATE TABLE IF NOT EXISTS variantNode
|
||||
(
|
||||
id bigint NOT NULL DEFAULT nextval('global_id_seq'::regclass),
|
||||
label text COLLATE pg_catalog."default",
|
||||
description text COLLATE pg_catalog."default",
|
||||
"bomId" bigint,
|
||||
min integer DEFAULT 1,
|
||||
max integer DEFAULT 1,
|
||||
CONSTRAINT "variantNode_pkey" PRIMARY KEY (id)
|
||||
)
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS billOfMaterial
|
||||
(
|
||||
id bigint NOT NULL DEFAULT nextval('global_id_seq'::regclass),
|
||||
"productId" bigint,
|
||||
label text COLLATE pg_catalog."default",
|
||||
description text COLLATE pg_catalog."default",
|
||||
"parentBOMId" bigint,
|
||||
CONSTRAINT "billOfMaterial_pkey" PRIMARY KEY (id)
|
||||
)
|
||||
|
||||
CREATE TABLE IF NOT EXISTS bomContent
|
||||
(
|
||||
id bigint NOT NULL DEFAULT nextval('global_id_seq'::regclass),
|
||||
"bomId" bigint,
|
||||
"productId" bigint,
|
||||
min integer DEFAULT 1,
|
||||
max integer DEFAULT 1,
|
||||
CONSTRAINT "bomContent_pkey" PRIMARY KEY (id)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user