This commit is contained in:
@@ -671,7 +671,7 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
|
||||
|
||||
//PARTASSEMBLYITEM
|
||||
await ExecQueryAsync("CREATE TABLE apartassemblyitem (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, partassemblyid bigint not null REFERENCES apartassembly on delete cascade, " +
|
||||
"partid bigint not null REFERENCES apart, " +
|
||||
"partid bigint not null REFERENCES apart, quantity decimal(19,4) not null default 1, " +
|
||||
"CONSTRAINT UNQ_PartAssemblyPart UNIQUE (partid, partassemblyid) " +//ensure no duplicate parts in the same assembly
|
||||
")");
|
||||
// await ExecQueryAsync("CREATE INDEX idx_apartassemblyitem_partid ON apartassemblyitem(partid)");
|
||||
|
||||
Reference in New Issue
Block a user