migrated all pawprint work
This commit is contained in:
0
station/monitors/databrowse/depot/.depot
Normal file
0
station/monitors/databrowse/depot/.depot
Normal file
13
station/monitors/databrowse/depot/scenarios.json
Normal file
13
station/monitors/databrowse/depot/scenarios.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"scenarios": [
|
||||
{
|
||||
"name": "Example Scenario",
|
||||
"description": "Example test scenario for databrowse",
|
||||
"steps": [
|
||||
"Navigate to users view",
|
||||
"Verify user list is displayed",
|
||||
"Filter by active status"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
27
station/monitors/databrowse/depot/schema.json
Normal file
27
station/monitors/databrowse/depot/schema.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "example",
|
||||
"description": "Example schema for databrowse. Replace with room-specific schema.",
|
||||
"tables": {
|
||||
"users": {
|
||||
"description": "Example users table",
|
||||
"columns": {
|
||||
"id": { "type": "integer", "primary_key": true },
|
||||
"username": { "type": "string" },
|
||||
"email": { "type": "string" },
|
||||
"is_active": { "type": "boolean" },
|
||||
"created_at": { "type": "datetime" }
|
||||
}
|
||||
},
|
||||
"items": {
|
||||
"description": "Example items table",
|
||||
"columns": {
|
||||
"id": { "type": "integer", "primary_key": true },
|
||||
"name": { "type": "string" },
|
||||
"description": { "type": "text" },
|
||||
"user_id": { "type": "integer", "foreign_key": "users.id" },
|
||||
"status": { "type": "string" },
|
||||
"created_at": { "type": "datetime" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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