mirror of
https://github.com/SyncrowIOT/data.git
synced 2026-10-23 09:37:55 +00:00
new device log clean for user facing platform
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
select device_id ,
|
||||||
|
product."name" as "device_type",
|
||||||
|
event_time::date as date ,
|
||||||
|
event_time::time as time,
|
||||||
|
code ,
|
||||||
|
value
|
||||||
|
from "device-status-log" dsl
|
||||||
|
join product
|
||||||
|
on dsl.product_id = product.prod_id
|
||||||
|
join device d
|
||||||
|
on d."uuid" = dsl.device_id
|
||||||
|
order by 1,3,4
|
||||||
Reference in New Issue
Block a user