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.6 KiB
JSON
1 line
7.6 KiB
JSON
{"nodes": [{"id": "src_lib_server_services_projects_ts", "label": "projects.ts", "file_type": "code", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L1"}, {"id": "projects_createproject", "label": "createProject()", "file_type": "code", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L16"}, {"id": "projects_listprojects", "label": "listProjects()", "file_type": "code", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L31"}, {"id": "projects_getproject", "label": "getProject()", "file_type": "code", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L39"}, {"id": "projects_updateproject", "label": "updateProject()", "file_type": "code", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L50"}, {"id": "projects_softdeleteproject", "label": "softDeleteProject()", "file_type": "code", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L68"}], "edges": [{"source": "src_lib_server_services_projects_ts", "target": "drizzle_orm", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L1", "weight": 1.0}, {"source": "src_lib_server_services_projects_ts", "target": "client", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L2", "weight": 1.0}, {"source": "src_lib_server_services_projects_ts", "target": "projects", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L3", "weight": 1.0}, {"source": "src_lib_server_services_projects_ts", "target": "projects_createproject", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L16", "weight": 1.0}, {"source": "src_lib_server_services_projects_ts", "target": "projects_listprojects", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L31", "weight": 1.0}, {"source": "src_lib_server_services_projects_ts", "target": "projects_getproject", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L39", "weight": 1.0}, {"source": "src_lib_server_services_projects_ts", "target": "projects_updateproject", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L50", "weight": 1.0}, {"source": "src_lib_server_services_projects_ts", "target": "projects_softdeleteproject", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L68", "weight": 1.0}], "raw_calls": [{"caller_nid": "projects_createproject", "callee": "trim", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L19"}, {"caller_nid": "projects_createproject", "callee": "returning", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L27"}, {"caller_nid": "projects_createproject", "callee": "values", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L27"}, {"caller_nid": "projects_createproject", "callee": "insert", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L27"}, {"caller_nid": "projects_listprojects", "callee": "orderBy", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L32"}, {"caller_nid": "projects_listprojects", "callee": "where", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L32"}, {"caller_nid": "projects_listprojects", "callee": "from", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L32"}, {"caller_nid": "projects_listprojects", "callee": "select", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L32"}, {"caller_nid": "projects_listprojects", "callee": "and", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L35"}, {"caller_nid": "projects_listprojects", "callee": "eq", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L35"}, {"caller_nid": "projects_listprojects", "callee": "isNull", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L35"}, {"caller_nid": "projects_listprojects", "callee": "desc", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L36"}, {"caller_nid": "projects_getproject", "callee": "limit", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L40"}, {"caller_nid": "projects_getproject", "callee": "where", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L40"}, {"caller_nid": "projects_getproject", "callee": "from", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L40"}, {"caller_nid": "projects_getproject", "callee": "select", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L40"}, {"caller_nid": "projects_getproject", "callee": "and", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L44"}, {"caller_nid": "projects_getproject", "callee": "eq", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L44"}, {"caller_nid": "projects_getproject", "callee": "eq", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L44"}, {"caller_nid": "projects_getproject", "callee": "isNull", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L44"}, {"caller_nid": "projects_updateproject", "callee": "where", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L55"}, {"caller_nid": "projects_updateproject", "callee": "set", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L55"}, {"caller_nid": "projects_updateproject", "callee": "update", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L55"}, {"caller_nid": "projects_updateproject", "callee": "trim", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L58"}, {"caller_nid": "projects_updateproject", "callee": "and", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L65"}, {"caller_nid": "projects_updateproject", "callee": "eq", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L65"}, {"caller_nid": "projects_updateproject", "callee": "eq", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L65"}, {"caller_nid": "projects_softdeleteproject", "callee": "where", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L69"}, {"caller_nid": "projects_softdeleteproject", "callee": "set", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L69"}, {"caller_nid": "projects_softdeleteproject", "callee": "update", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L69"}, {"caller_nid": "projects_softdeleteproject", "callee": "sql", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L71"}, {"caller_nid": "projects_softdeleteproject", "callee": "and", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L72"}, {"caller_nid": "projects_softdeleteproject", "callee": "eq", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L72"}, {"caller_nid": "projects_softdeleteproject", "callee": "eq", "source_file": "src\\lib\\server\\services\\projects.ts", "source_location": "L72"}]} |