turash/concept/schemas/site.json
Damir Mukimov 4a2fda96cd
Initial commit: Repository setup with .gitignore, golangci-lint v2.6.0, and code quality checks
- Initialize git repository
- Add comprehensive .gitignore for Go projects
- Install golangci-lint v2.6.0 (latest v2) globally
- Configure .golangci.yml with appropriate linters and formatters
- Fix all formatting issues (gofmt)
- Fix all errcheck issues (unchecked errors)
- Adjust complexity threshold for validation functions
- All checks passing: build, test, vet, lint
2025-11-01 07:36:22 +01:00

122 lines
3.1 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://cityresourcegraph.com/schemas/site.json",
"title": "Site Entity",
"description": "Physical location/building representation",
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "Unique site identifier"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255,
"description": "Site name (e.g., 'Main Factory', 'Warehouse A')"
},
"address": {
"type": "string",
"maxLength": 1000,
"description": "Full street address"
},
"latitude": {
"type": "number",
"minimum": -90,
"maximum": 90,
"description": "WGS84 latitude coordinate"
},
"longitude": {
"type": "number",
"minimum": -180,
"maximum": 180,
"description": "WGS84 longitude coordinate"
},
"site_type": {
"type": "string",
"enum": ["industrial", "office", "warehouse", "retail", "mixed"],
"description": "Primary site usage type"
},
"floor_area_m2": {
"type": "number",
"minimum": 1,
"maximum": 1000000,
"description": "Total floor area in square meters"
},
"ownership": {
"type": "string",
"enum": ["owned", "leased", "shared"],
"description": "Ownership status"
},
"owner_business_id": {
"type": "string",
"format": "uuid",
"description": "Business that owns this site"
},
"operating_businesses": {
"type": "array",
"items": {
"type": "string",
"format": "uuid"
},
"description": "Businesses that operate at this site (for multi-tenant buildings)"
},
"available_utilities": {
"type": "array",
"items": {
"type": "string",
"enum": ["electricity", "gas", "water", "wastewater", "heating", "cooling"]
},
"uniqueItems": true,
"description": "Available utility connections"
},
"parking_spaces": {
"type": "integer",
"minimum": 0,
"maximum": 10000,
"description": "Number of parking spaces"
},
"loading_docks": {
"type": "integer",
"minimum": 0,
"maximum": 1000,
"description": "Number of loading docks"
},
"crane_capacity_tonnes": {
"type": "number",
"minimum": 0,
"maximum": 1000,
"description": "Maximum crane capacity in tonnes"
},
"energy_rating": {
"type": "string",
"maxLength": 100,
"description": "Energy certification (LEED, BREEAM, etc.)"
},
"waste_management": {
"type": "array",
"items": {
"type": "string",
"maxLength": 255
},
"description": "Available waste management facilities"
},
"environmental_impact": {
"type": "string",
"maxLength": 2000,
"description": "Environmental impact assessment summary"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
}
},
"required": ["id", "name", "latitude", "longitude"],
"additionalProperties": false
}