Import Fun Completed and Sticker Master
This commit is contained in:
@@ -14,8 +14,6 @@ return new class extends Migration
|
||||
CREATE TABLE lines (
|
||||
id BIGINT GENERATED always AS IDENTITY PRIMARY KEY,
|
||||
|
||||
shift_id BIGINT NOT NULL,
|
||||
block_id BIGINT NOT NULL,
|
||||
plant_id BIGINT NOT NULL,
|
||||
|
||||
name TEXT NOT NULL,
|
||||
@@ -25,9 +23,7 @@ return new class extends Migration
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT NOW(),
|
||||
deleted_at TIMESTAMP,
|
||||
|
||||
UNIQUE (name, shift_id, block_id, plant_id),
|
||||
FOREIGN KEY (shift_id) REFERENCES shifts (id),
|
||||
FOREIGN KEY (block_id) REFERENCES blocks (id),
|
||||
UNIQUE (name, plant_id),
|
||||
FOREIGN KEY (plant_id) REFERENCES plants (id)
|
||||
);
|
||||
SQL;
|
||||
|
||||
Reference in New Issue
Block a user