28 lines
835 B
JSON
28 lines
835 B
JSON
{
|
|
"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" }
|
|
}
|
|
}
|
|
}
|
|
}
|