1
0
forked from poc/pds

Updated duration column type from decimal to numeric(4,2)

This commit is contained in:
dhanabalan
2025-04-06 17:29:13 +05:30
parent 5628824754
commit fe94a00854

View File

@@ -19,7 +19,7 @@ return new class extends Migration
name TEXT NOT NULL, name TEXT NOT NULL,
start_time TIME NOT NULL, start_time TIME NOT NULL,
duration DECIMAL NOT NULL, duration NUMERIC(4, 2) NOT NULL,
end_time TIME NOT NULL, --GENERATED ALWAYS AS (start_time + (duration * INTERVAL '1 hour')) STORED, end_time TIME NOT NULL, --GENERATED ALWAYS AS (start_time + (duration * INTERVAL '1 hour')) STORED,
created_at TIMESTAMP NOT NULL DEFAULT NOW(), created_at TIMESTAMP NOT NULL DEFAULT NOW(),