1
0

feat(views): list, add, stats

This commit is contained in:
2025-07-04 00:13:16 +02:00
parent d43e2651c5
commit 8e324b2a1f
7 changed files with 212 additions and 13 deletions

View File

@@ -3,12 +3,14 @@
create table instances as select
id as rowid
, host as domain
, config->'description' as slogan
, config->'longDescription' as description
, config->>'name' as name
, '' as slogan
, config->>'description' as description
-- won't caputure long description, not used yet
, languages
, CASE WHEN config->'registrationsOpen' = 'true' THEN 1 ELSE 0 END as open
, config->'version' as version
, "connectivityStats"->'country' as location
, config->>'version' as version
, "connectivityStats"->>'country' as location
, 0 as failure
, CAST(extract(epoch from "createdAt") as integer) as "createdAt"
, CAST(extract(epoch from "updatedAt") as integer) as "updatedAt"