1
0
forked from poc/pds

Merge pull request 'Added unique constrain for class characteristics migration' (#471) from ranjith-dev into master

Reviewed-on: poc/pds#471
This commit is contained in:
2026-03-11 05:00:35 +00:00

View File

@@ -178,6 +178,7 @@ return new class extends Migration
updated_by TEXT DEFAULT NULL,
deleted_at TIMESTAMP,
UNIQUE (gernr, plant_id),
FOREIGN KEY (plant_id) REFERENCES plants (id),
FOREIGN KEY (machine_id) REFERENCES machines (id),
FOREIGN KEY (item_id) REFERENCES items (id)