b59904fdae
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
1 line
7.8 KiB
JSON
1 line
7.8 KiB
JSON
{"nodes": [{"id": "src_lib_server_validation_custom_fields_ts", "label": "custom-fields.ts", "file_type": "code", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L1"}, {"id": "custom_fields_validatorfor", "label": "validatorFor()", "file_type": "code", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L24"}, {"id": "custom_fields_buildcustomfieldsschema", "label": "buildCustomFieldsSchema()", "file_type": "code", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L70"}, {"id": "custom_fields_getcachedcustomfieldsschema", "label": "getCachedCustomFieldsSchema()", "file_type": "code", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L99"}, {"id": "custom_fields_clearcustomfieldscache", "label": "clearCustomFieldsCache()", "file_type": "code", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L111"}], "edges": [{"source": "src_lib_server_validation_custom_fields_ts", "target": "zod", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L1", "weight": 1.0}, {"source": "src_lib_server_validation_custom_fields_ts", "target": "assets", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L2", "weight": 1.0}, {"source": "src_lib_server_validation_custom_fields_ts", "target": "custom_fields_validatorfor", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L24", "weight": 1.0}, {"source": "src_lib_server_validation_custom_fields_ts", "target": "custom_fields_buildcustomfieldsschema", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L70", "weight": 1.0}, {"source": "src_lib_server_validation_custom_fields_ts", "target": "custom_fields_getcachedcustomfieldsschema", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L99", "weight": 1.0}, {"source": "src_lib_server_validation_custom_fields_ts", "target": "custom_fields_clearcustomfieldscache", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L111", "weight": 1.0}, {"source": "custom_fields_buildcustomfieldsschema", "target": "custom_fields_validatorfor", "relation": "calls", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L73", "weight": 1.0}, {"source": "custom_fields_getcachedcustomfieldsschema", "target": "custom_fields_buildcustomfieldsschema", "relation": "calls", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L106", "weight": 1.0}], "raw_calls": [{"caller_nid": "custom_fields_validatorfor", "callee": "max", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L28"}, {"caller_nid": "custom_fields_validatorfor", "callee": "string", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L28"}, {"caller_nid": "custom_fields_validatorfor", "callee": "int", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L30"}, {"caller_nid": "custom_fields_validatorfor", "callee": "number", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L30"}, {"caller_nid": "custom_fields_validatorfor", "callee": "number", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L32"}, {"caller_nid": "custom_fields_validatorfor", "callee": "boolean", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L34"}, {"caller_nid": "custom_fields_validatorfor", "callee": "min", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L36"}, {"caller_nid": "custom_fields_validatorfor", "callee": "string", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L36"}, {"caller_nid": "custom_fields_validatorfor", "callee": "url", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L44"}, {"caller_nid": "custom_fields_validatorfor", "callee": "string", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L44"}, {"caller_nid": "custom_fields_validatorfor", "callee": "email", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L46"}, {"caller_nid": "custom_fields_validatorfor", "callee": "string", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L46"}, {"caller_nid": "custom_fields_validatorfor", "callee": "string", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L49"}, {"caller_nid": "custom_fields_validatorfor", "callee": "enum", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L50"}, {"caller_nid": "custom_fields_validatorfor", "callee": "max", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L54"}, {"caller_nid": "custom_fields_validatorfor", "callee": "array", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L54"}, {"caller_nid": "custom_fields_validatorfor", "callee": "string", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L54"}, {"caller_nid": "custom_fields_validatorfor", "callee": "max", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L55"}, {"caller_nid": "custom_fields_validatorfor", "callee": "array", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L55"}, {"caller_nid": "custom_fields_validatorfor", "callee": "enum", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L55"}, {"caller_nid": "custom_fields_validatorfor", "callee": "uuid", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L58"}, {"caller_nid": "custom_fields_validatorfor", "callee": "string", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L58"}, {"caller_nid": "custom_fields_buildcustomfieldsschema", "callee": "nullable", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L75"}, {"caller_nid": "custom_fields_buildcustomfieldsschema", "callee": "optional", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L75"}, {"caller_nid": "custom_fields_buildcustomfieldsschema", "callee": "map", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L78"}, {"caller_nid": "custom_fields_buildcustomfieldsschema", "callee": "passthrough", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L79"}, {"caller_nid": "custom_fields_buildcustomfieldsschema", "callee": "object", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L79"}, {"caller_nid": "custom_fields_buildcustomfieldsschema", "callee": "transform", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L80"}, {"caller_nid": "custom_fields_getcachedcustomfieldsschema", "callee": "get", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L104"}, {"caller_nid": "custom_fields_getcachedcustomfieldsschema", "callee": "set", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L107"}, {"caller_nid": "custom_fields_clearcustomfieldscache", "callee": "clear", "source_file": "src\\lib\\server\\validation\\custom-fields.ts", "source_location": "L112"}]} |