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:
@@ -48,6 +48,25 @@ DESCRIBE audit_logs;
|
||||
- **Tabel**: `audit_logs`
|
||||
- **Rollback**: Tidak ada (tabel ini critical untuk audit, tidak boleh dihapus)
|
||||
|
||||
### 002_create_hourly_summary.sql
|
||||
- **Tanggal**: 2024-12-28
|
||||
- **Deskripsi**: Membuat tabel `hourly_summary` untuk rekap per jam
|
||||
- **Tabel**: `hourly_summary`
|
||||
|
||||
### 003_create_realtime_events.sql
|
||||
- **Tanggal**: 2024-12-28
|
||||
- **Deskripsi**: Membuat tabel `realtime_events` untuk ring buffer SSE events
|
||||
- **Tabel**: `realtime_events`
|
||||
|
||||
### 004_add_camera_to_gates.sql
|
||||
- **Tanggal**: 2025-01-17
|
||||
- **Deskripsi**: Menambahkan field `camera` ke tabel `gates` untuk menyimpan URL atau identifier kamera
|
||||
- **Tabel**: `gates`
|
||||
- **Rollback**:
|
||||
```sql
|
||||
ALTER TABLE gates DROP COLUMN camera;
|
||||
```
|
||||
|
||||
## Catatan Penting
|
||||
|
||||
- **JANGAN** hapus atau modify migration file yang sudah di-apply
|
||||
|
||||
Reference in New Issue
Block a user