feat(articlesupplier): implement store methods, schema constraints, and embed in getBySku

This commit is contained in:
seb
2026-09-17 11:41:13 +02:00
parent 1fafeeb5f2
commit 4c196c7209
15 changed files with 812 additions and 6 deletions

View File

@@ -541,7 +541,8 @@ BEGIN
pu FLOAT NOT NULL CONSTRAINT DF_articlesupplier_pu DEFAULT 1,
CONSTRAINT FK_articlesupplier_article FOREIGN KEY (article_id) REFERENCES article(id) ON DELETE CASCADE,
CONSTRAINT FK_articlesupplier_entity FOREIGN KEY (entity_id) REFERENCES entity(id) ON DELETE CASCADE,
CONSTRAINT FK_articlesupplier_price FOREIGN KEY (price_id) REFERENCES price(id) ON DELETE NO ACTION
CONSTRAINT FK_articlesupplier_price FOREIGN KEY (price_id) REFERENCES price(id) ON DELETE SET NULL,
CONSTRAINT UQ_articlesupplier_article_entity UNIQUE (article_id, entity_id)
);
CREATE INDEX IX_articlesupplier_article_entity