feat: tambah endpoint frontend dan field camera di gate
- Tambah endpoint GET /tariffs (list tariffs)
- Tambah endpoint GET /locations/{code} (detail location)
- Tambah endpoint GET /gates/{location_code}/{gate_code} (detail gate)
- Tambah endpoint GET /tariffs/{location_code}/{gate_code}/{category} (detail tariff)
- Tambah endpoint GET /audit-logs (audit trail history)
- Tambah endpoint GET /entry-events (raw entry events)
- Tambah endpoint GET /realtime/events (realtime events list)
- Tambah field camera di gates (support HLS, RTSP, HTTP streaming)
- Migration 004: add camera column to gates table
- Update validasi dan service untuk support camera field
This commit is contained in:
15
migrations/004_add_camera_to_gates.sql
Normal file
15
migrations/004_add_camera_to_gates.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
-- Migration: Add camera field to gates table
|
||||
-- Description: Tambah field camera untuk menyimpan URL atau identifier kamera di setiap gate
|
||||
-- Supports: HLS (.m3u8), RTSP, HTTP streaming, camera ID, dll
|
||||
-- Date: 2025-01-17
|
||||
|
||||
-- Add camera column to gates table
|
||||
ALTER TABLE gates
|
||||
ADD COLUMN camera VARCHAR(500) NULL
|
||||
COMMENT 'URL streaming kamera (HLS .m3u8, RTSP, HTTP) atau identifier kamera untuk gate ini'
|
||||
AFTER direction;
|
||||
|
||||
-- Add index untuk performa query jika perlu filter by camera
|
||||
-- (optional, uncomment jika diperlukan)
|
||||
-- CREATE INDEX idx_camera ON gates(camera);
|
||||
|
||||
Reference in New Issue
Block a user