File manager - Edit - /home/webapp69.cm.in.th/u69319090039/Shop39/database/migrations/20260808_create_shipment_locations.sql
Back
-- Migration: create shipment_locations table CREATE TABLE IF NOT EXISTS shipment_locations ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, shipment_id INT UNSIGNED NOT NULL, latitude DECIMAL(10,7) NOT NULL, longitude DECIMAL(10,7) NOT NULL, accuracy DECIMAL(5,2) NULL, source VARCHAR(100) NULL, recorded_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (shipment_id) REFERENCES shipments(id) ON DELETE CASCADE, INDEX idx_location (shipment_id, recorded_at) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.21 |
proxy
|
phpinfo
|
Settings