Files
buildfor_life_ops/graphify-out/cache/657a90bd6f8966aa8ffb6caaed9204c1e6054e2203b8e3fce43d417ab3f4d54a.json
grabowski b59904fdae Phases 1-5 + rooms/floors, accounts, custom types, users, notifications
Data model
- Properties, rooms (+optional floors), assets (typed custom fields + Zod
  runtime validator + move history), documents (polymorphic scope)
- Projects -> work packages -> tasks -> subtasks
- Decision events (scoped to project/property/asset/work_package)
- Checklist templates + instances, maintenance schedules (time + usage) with
  auto-materialized checklists on event recording
- Wiki (global + per-project) with revisions + tsvector FTS
- Property accounts (utility/meter numbers by kind)
- Notifications table + per-user channel prefs

Infra
- RBAC guards (requireCompany / requireAdmin)
- Storage abstraction: LocalDiskStorage (HMAC signed URLs) + S3Storage
  behind the same interface, switchable via STORAGE_BACKEND
- CSV export for assets / maintenance / decisions
- QR labels: /api/qr SVG endpoint + printable /assets/[id]/label
- Notifications: in-app + SMTP (own server via nodemailer) + Matrix
  (Client-Server API, per-company room) with opt-in per user
- Company switcher + auto-select first company on login

UI
- Topbar: bell with unread count, theme toggle, name, Sign Out (flat)
- Sidebar: main nav + dedicated Admin section (Asset types, Users, Company)
- Nested-route tabs on property / project / asset detail pages
- Admin UIs for users (invite, role, reset pw, deactivate) and company
  settings (default currency, Matrix room id)
- Custom asset type creation + field-def editor with immutable key/type
  guard and auto-deprecate when removing a field still referenced

Graph
- graphify-out/ committed: GRAPH_REPORT.md, graph.html, graph.json
2026-04-23 15:18:11 +07:00

1 line
8.2 KiB
JSON

{"nodes": [{"id": "src_lib_server_services_properties_ts", "label": "properties.ts", "file_type": "code", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L1"}, {"id": "properties_createproperty", "label": "createProperty()", "file_type": "code", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L19"}, {"id": "properties_listproperties", "label": "listProperties()", "file_type": "code", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L37"}, {"id": "properties_getproperty", "label": "getProperty()", "file_type": "code", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L45"}, {"id": "properties_updateproperty", "label": "updateProperty()", "file_type": "code", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L60"}, {"id": "properties_softdeleteproperty", "label": "softDeleteProperty()", "file_type": "code", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L83"}], "edges": [{"source": "src_lib_server_services_properties_ts", "target": "drizzle_orm", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L1", "weight": 1.0}, {"source": "src_lib_server_services_properties_ts", "target": "client", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L2", "weight": 1.0}, {"source": "src_lib_server_services_properties_ts", "target": "properties", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L3", "weight": 1.0}, {"source": "src_lib_server_services_properties_ts", "target": "properties_createproperty", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L19", "weight": 1.0}, {"source": "src_lib_server_services_properties_ts", "target": "properties_listproperties", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L37", "weight": 1.0}, {"source": "src_lib_server_services_properties_ts", "target": "properties_getproperty", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L45", "weight": 1.0}, {"source": "src_lib_server_services_properties_ts", "target": "properties_updateproperty", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L60", "weight": 1.0}, {"source": "src_lib_server_services_properties_ts", "target": "properties_softdeleteproperty", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L83", "weight": 1.0}], "raw_calls": [{"caller_nid": "properties_createproperty", "callee": "trim", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L22"}, {"caller_nid": "properties_createproperty", "callee": "toUpperCase", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L29"}, {"caller_nid": "properties_createproperty", "callee": "returning", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L33"}, {"caller_nid": "properties_createproperty", "callee": "values", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L33"}, {"caller_nid": "properties_createproperty", "callee": "insert", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L33"}, {"caller_nid": "properties_listproperties", "callee": "orderBy", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L38"}, {"caller_nid": "properties_listproperties", "callee": "where", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L38"}, {"caller_nid": "properties_listproperties", "callee": "from", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L38"}, {"caller_nid": "properties_listproperties", "callee": "select", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L38"}, {"caller_nid": "properties_listproperties", "callee": "and", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L41"}, {"caller_nid": "properties_listproperties", "callee": "eq", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L41"}, {"caller_nid": "properties_listproperties", "callee": "isNull", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L41"}, {"caller_nid": "properties_listproperties", "callee": "desc", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L42"}, {"caller_nid": "properties_getproperty", "callee": "limit", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L46"}, {"caller_nid": "properties_getproperty", "callee": "where", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L46"}, {"caller_nid": "properties_getproperty", "callee": "from", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L46"}, {"caller_nid": "properties_getproperty", "callee": "select", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L46"}, {"caller_nid": "properties_getproperty", "callee": "and", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L50"}, {"caller_nid": "properties_getproperty", "callee": "eq", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L51"}, {"caller_nid": "properties_getproperty", "callee": "eq", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L52"}, {"caller_nid": "properties_getproperty", "callee": "isNull", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L53"}, {"caller_nid": "properties_updateproperty", "callee": "where", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L65"}, {"caller_nid": "properties_updateproperty", "callee": "set", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L65"}, {"caller_nid": "properties_updateproperty", "callee": "update", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L65"}, {"caller_nid": "properties_updateproperty", "callee": "trim", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L68"}, {"caller_nid": "properties_updateproperty", "callee": "toUpperCase", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L76"}, {"caller_nid": "properties_updateproperty", "callee": "and", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L80"}, {"caller_nid": "properties_updateproperty", "callee": "eq", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L80"}, {"caller_nid": "properties_updateproperty", "callee": "eq", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L80"}, {"caller_nid": "properties_softdeleteproperty", "callee": "where", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L84"}, {"caller_nid": "properties_softdeleteproperty", "callee": "set", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L84"}, {"caller_nid": "properties_softdeleteproperty", "callee": "update", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L84"}, {"caller_nid": "properties_softdeleteproperty", "callee": "sql", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L86"}, {"caller_nid": "properties_softdeleteproperty", "callee": "and", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L87"}, {"caller_nid": "properties_softdeleteproperty", "callee": "eq", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L87"}, {"caller_nid": "properties_softdeleteproperty", "callee": "eq", "source_file": "src\\lib\\server\\services\\properties.ts", "source_location": "L87"}]}