{
    "server_name": "prod-db-server-01",
    "database_name": "sales_db",
    "tables": {
        "users": {
            "display_name": "Users",
            "description": "Table storing user account information",
            "columns": [
                {
                    "name": "id",
                    "type": "uuid",
                    "display_name": "User ID",
                    "description": "Unique identifier for the user",
                    "is_primary_key": true,
                    "is_nullable": false
                },
                {
                    "name": "email",
                    "type": "varchar(255)",
                    "display_name": "Email Address",
                    "description": "User's primary email for login and notifications",
                    "is_unique": true,
                    "is_nullable": false
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "display_name": "Created At",
                    "description": "Timestamp when the user account was created",
                    "is_nullable": false,
                    "default": "now()"
                }
            ]
        },
        "orders": {
            "display_name": "Orders",
            "description": "Table storing customer orders",
            "columns": [
                {
                    "name": "id",
                    "type": "uuid",
                    "display_name": "Order ID",
                    "description": "Unique identifier for the order",
                    "is_primary_key": true,
                    "is_nullable": false
                },
                {
                    "name": "user_id",
                    "type": "uuid",
                    "display_name": "User ID",
                    "description": "Reference to the user who placed the order",
                    "is_nullable": false,
                    "references": {
                        "referenced_table": "users",
                        "referenced_column": "id"
                    }
                },
                {
                    "name": "total_amount",
                    "type": "decimal(10,2)",
                    "display_name": "Total Amount",
                    "description": "Total cost of the order in dollars",
                    "is_nullable": false
                },
                {
                    "name": "created_at",
                    "type": "timestamp",
                    "display_name": "Created At",
                    "description": "Timestamp when the order was placed",
                    "is_nullable": false,
                    "default": "now()"
                }
            ]
        },
        "order_items": {
            "display_name": "Order Items",
            "description": "Table storing individual line items within an order",
            "columns": [
                {
                    "name": "id",
                    "type": "uuid",
                    "display_name": "Item ID",
                    "description": "Unique identifier for the order item",
                    "is_primary_key": true,
                    "is_nullable": false
                },
                {
                    "name": "order_id",
                    "type": "uuid",
                    "display_name": "Order ID",
                    "description": "Reference to the parent order",
                    "is_nullable": false,
                    "references": {
                        "referenced_table": "orders",
                        "referenced_column": "id"
                    }
                },
                {
                    "name": "product_name",
                    "type": "varchar(255)",
                    "display_name": "Product Name",
                    "description": "Name of the product purchased",
                    "is_nullable": false
                },
                {
                    "name": "quantity",
                    "type": "integer",
                    "display_name": "Quantity",
                    "description": "Number of units purchased",
                    "is_nullable": false,
                    "default": "1"
                },
                {
                    "name": "price",
                    "type": "decimal(10,2)",
                    "display_name": "Unit Price",
                    "description": "Price per unit in dollars",
                    "is_nullable": false
                }
            ]
        }
    }
}
