migrated all pawprint work
This commit is contained in:
38
station/monitors/databrowse/depot/views.json
Normal file
38
station/monitors/databrowse/depot/views.json
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"views": [
|
||||
{
|
||||
"slug": "users",
|
||||
"title": "All Users",
|
||||
"description": "List of all users",
|
||||
"table": "users",
|
||||
"fields": ["id", "username", "email", "is_active", "created_at"],
|
||||
"order_by": "-created_at"
|
||||
},
|
||||
{
|
||||
"slug": "active-users",
|
||||
"title": "Active Users",
|
||||
"description": "Users with active status",
|
||||
"table": "users",
|
||||
"fields": ["id", "username", "email", "created_at"],
|
||||
"where": "is_active = true",
|
||||
"order_by": "username"
|
||||
},
|
||||
{
|
||||
"slug": "items",
|
||||
"title": "All Items",
|
||||
"description": "List of all items",
|
||||
"table": "items",
|
||||
"fields": ["id", "name", "status", "user_id", "created_at"],
|
||||
"order_by": "-created_at"
|
||||
},
|
||||
{
|
||||
"slug": "items-by-status",
|
||||
"title": "Items by Status",
|
||||
"description": "Items grouped by status",
|
||||
"table": "items",
|
||||
"fields": ["id", "name", "user_id", "created_at"],
|
||||
"group_by": "status",
|
||||
"order_by": "-created_at"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user