After Production Quantity and Overall Validation

This commit is contained in:
dhanabalan
2025-03-30 23:04:29 +05:30
parent e46f290fd1
commit 6e44b690f1
16 changed files with 1726 additions and 407 deletions

View File

@@ -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);
}
/**