|
|
|
@ -54,6 +54,8 @@ CREATE INDEX IF NOT EXISTS idx_audit_log_id ON audit_log(id); |
|
|
|
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_edge_event_tenant_id_and_created_time ON edge_event(tenant_id, created_time DESC); |
|
|
|
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_edge_event_id ON edge_event(id); |
|
|
|
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_rpc_tenant_id_device_id ON rpc(tenant_id, device_id); |
|
|
|
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_device_external_id ON device(tenant_id, external_id); |
|
|
|
|