Added migration, model, policy, resource, importer, exporter, controller (Get API) with validation and functionality for Testing Line Visualization
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s

This commit is contained in:
dhanabalan
2026-11-03 11:19:07 +05:30
parent 20e64ba356
commit 5c0ed45f74
11 changed files with 1477 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
$sql = <<<'SQL'
CREATE TABLE testing_line_visualizations (
id BIGINT GENERATED always AS IDENTITY PRIMARY KEY,
plant_id BIGINT NOT NULL,
test_bed_group TEXT DEFAULT NULL,
line_no TEXT DEFAULT NULL,
pump_model TEXT DEFAULT NULL,
pump_type TEXT DEFAULT NULL,
motor_details TEXT DEFAULT NULL,
test_type TEXT DEFAULT NULL,
flow TEXT DEFAULT '0',
head TEXT DEFAULT '0',
run_time TEXT DEFAULT '0.0',
live_status TEXT DEFAULT NULL,
observation_remarks TEXT DEFAULT NULL,
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
updated_at TIMESTAMP NOT NULL DEFAULT NOW(),
created_by TEXT DEFAULT NULL,
updated_by TEXT DEFAULT NULL,
deleted_at TIMESTAMP,
-- UNIQUE (plant_id, machine_name),
FOREIGN KEY (plant_id) REFERENCES plants (id)
);
SQL;
DB::statement($sql);
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('testing_line_visualizations');
}
};