{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://cityresourcegraph.com/schemas/shared_asset.json", "title": "Shared Asset Entity", "description": "Equipment/Infrastructure at specific sites that can be shared among businesses", "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "description": "Unique shared asset identifier" }, "site_id": { "type": "string", "format": "uuid", "description": "Site where this asset is located" }, "owner_business_id": { "type": "string", "format": "uuid", "description": "Business that owns this asset" }, "type": { "type": "string", "enum": ["infrastructure", "utilities", "equipment", "space"], "description": "Type of shared asset" }, "description": { "type": "string", "maxLength": 1000, "description": "Detailed description of the asset" }, "capacity": { "type": "number", "description": "Asset capacity (kW, m3/h, m2, etc.)" }, "capacity_unit": { "type": "string", "maxLength": 50, "description": "Unit of capacity measurement" }, "utilization_rate": { "type": "number", "minimum": 0, "maximum": 1, "description": "Current usage percentage (0-1)" }, "availability_period": { "type": "string", "maxLength": 255, "description": "When the asset is available for sharing" }, "cost_sharing_model": { "type": "string", "maxLength": 255, "description": "How costs are shared among users" }, "current_users": { "type": "array", "items": { "type": "string", "format": "uuid" }, "description": "Business IDs currently using this asset" }, "maintenance_schedule": { "type": "string", "maxLength": 500, "description": "Scheduled maintenance periods" }, "operational_status": { "type": "string", "enum": ["operational", "maintenance", "out_of_service"], "default": "operational", "description": "Current operational status" }, "created_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" } }, "required": ["id", "site_id", "owner_business_id", "type", "description"], "additionalProperties": false }