Our Personal Data Server from scratch!
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at fix/small-bugs 53 lines 1.6 kB view raw
1{ 2 "db_name": "PostgreSQL", 3 "query": "\n SELECT u.id, u.did, u.backup_enabled, u.deactivated_at, r.repo_root_cid, r.repo_rev\n FROM users u\n JOIN repos r ON r.user_id = u.id\n WHERE u.backup_enabled = true\n AND u.deactivated_at IS NULL\n AND (\n NOT EXISTS (\n SELECT 1 FROM account_backups ab WHERE ab.user_id = u.id\n )\n OR (\n SELECT MAX(ab.created_at) FROM account_backups ab WHERE ab.user_id = u.id\n ) < NOW() - make_interval(secs => $1)\n )\n LIMIT $2\n ", 4 "describe": { 5 "columns": [ 6 { 7 "ordinal": 0, 8 "name": "id", 9 "type_info": "Uuid" 10 }, 11 { 12 "ordinal": 1, 13 "name": "did", 14 "type_info": "Text" 15 }, 16 { 17 "ordinal": 2, 18 "name": "backup_enabled", 19 "type_info": "Bool" 20 }, 21 { 22 "ordinal": 3, 23 "name": "deactivated_at", 24 "type_info": "Timestamptz" 25 }, 26 { 27 "ordinal": 4, 28 "name": "repo_root_cid", 29 "type_info": "Text" 30 }, 31 { 32 "ordinal": 5, 33 "name": "repo_rev", 34 "type_info": "Text" 35 } 36 ], 37 "parameters": { 38 "Left": [ 39 "Float8", 40 "Int8" 41 ] 42 }, 43 "nullable": [ 44 false, 45 false, 46 false, 47 true, 48 false, 49 true 50 ] 51 }, 52 "hash": "07c54d6bcfdc08d821e788c31dc46cc240dc8507c7dd5bdd2ceeb36d2084e8ce" 53}