After Production Quantity and Overall Validation
This commit is contained in:
@@ -15,9 +15,8 @@ return new class extends Migration
|
||||
CREATE TABLE quality_validations (
|
||||
id BIGINT GENERATED always AS IDENTITY PRIMARY KEY,
|
||||
|
||||
item_id BIGINT NOT NULL,
|
||||
plant_id BIGINT NOT NULL,
|
||||
stickermaster_id BIGINT NOT NULL,
|
||||
sticker_master_id BIGINT NOT NULL,
|
||||
|
||||
production_order TEXT NOT NULL,
|
||||
|
||||
@@ -48,13 +47,13 @@ return new class extends Migration
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT NOW(),
|
||||
deleted_at TIMESTAMP,
|
||||
|
||||
FOREIGN KEY (item_id) REFERENCES items (id),
|
||||
FOREIGN KEY (plant_id) REFERENCES plants (id),
|
||||
FOREIGN KEY (stickerMaster_id) REFERENCES sticker_masters (id)
|
||||
FOREIGN KEY (sticker_master_id) REFERENCES sticker_masters (id)
|
||||
);
|
||||
SQL;
|
||||
|
||||
DB::statement($sql);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
Reference in New Issue
Block a user