feat: refs #6513 create table
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-02-23 15:32:21 +01:00
parent bf85aa1e9d
commit 1a1e7742d3
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
CREATE TABLE IF NOT EXISTS vn.supplierDms(
id int(11) NOT NULL AUTO_INCREMENT,
supplierFk int(11) NOT NULL,
dmsFk int(11) NOT NULL,
editorFk int(10) unsigned DEFAULT NULL,
PRIMARY KEY (id),
CONSTRAINT clientDms_fk_editor FOREIGN KEY (editorFk) REFERENCES account.user(id),
CONSTRAINT dmsFk FOREIGN KEY (dmsFk) REFERENCES dms(id) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT supplierFk FOREIGN KEY (supplierFk) REFERENCES supplier(id) ON UPDATE CASCADE
);