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
8.8 KiB
JSON
1 line
8.8 KiB
JSON
{"nodes": [{"id": "scripts_diag_user_ts", "label": "diag-user.ts", "file_type": "code", "source_file": "scripts\\diag-user.ts", "source_location": "L1"}, {"id": "diag_user_stripsurroundingquotes", "label": "stripSurroundingQuotes()", "file_type": "code", "source_file": "scripts\\diag-user.ts", "source_location": "L8"}, {"id": "diag_user_readarg", "label": "readArg()", "file_type": "code", "source_file": "scripts\\diag-user.ts", "source_location": "L18"}, {"id": "diag_user_main", "label": "main()", "file_type": "code", "source_file": "scripts\\diag-user.ts", "source_location": "L23"}], "edges": [{"source": "scripts_diag_user_ts", "target": "config", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "scripts\\diag-user.ts", "source_location": "L1", "weight": 1.0}, {"source": "scripts_diag_user_ts", "target": "drizzle_orm", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "scripts\\diag-user.ts", "source_location": "L2", "weight": 1.0}, {"source": "scripts_diag_user_ts", "target": "src_lib_server_db_client", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "scripts\\diag-user.ts", "source_location": "L3", "weight": 1.0}, {"source": "scripts_diag_user_ts", "target": "src_lib_server_db_schema_tenancy", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "scripts\\diag-user.ts", "source_location": "L4", "weight": 1.0}, {"source": "scripts_diag_user_ts", "target": "src_lib_server_auth_password", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "scripts\\diag-user.ts", "source_location": "L5", "weight": 1.0}, {"source": "scripts_diag_user_ts", "target": "src_lib_utils_email", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "scripts\\diag-user.ts", "source_location": "L6", "weight": 1.0}, {"source": "scripts_diag_user_ts", "target": "diag_user_stripsurroundingquotes", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts\\diag-user.ts", "source_location": "L8", "weight": 1.0}, {"source": "scripts_diag_user_ts", "target": "diag_user_readarg", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts\\diag-user.ts", "source_location": "L18", "weight": 1.0}, {"source": "scripts_diag_user_ts", "target": "diag_user_main", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts\\diag-user.ts", "source_location": "L23", "weight": 1.0}, {"source": "diag_user_readarg", "target": "diag_user_stripsurroundingquotes", "relation": "calls", "confidence": "EXTRACTED", "source_file": "scripts\\diag-user.ts", "source_location": "L20", "weight": 1.0}, {"source": "diag_user_main", "target": "diag_user_readarg", "relation": "calls", "confidence": "EXTRACTED", "source_file": "scripts\\diag-user.ts", "source_location": "L24", "weight": 1.0}], "raw_calls": [{"caller_nid": "diag_user_stripsurroundingquotes", "callee": "slice", "source_file": "scripts\\diag-user.ts", "source_location": "L13"}, {"caller_nid": "diag_user_readarg", "callee": "indexOf", "source_file": "scripts\\diag-user.ts", "source_location": "L19"}, {"caller_nid": "diag_user_main", "callee": "error", "source_file": "scripts\\diag-user.ts", "source_location": "L28"}, {"caller_nid": "diag_user_main", "callee": "exit", "source_file": "scripts\\diag-user.ts", "source_location": "L29"}, {"caller_nid": "diag_user_main", "callee": "normalizeEmail", "source_file": "scripts\\diag-user.ts", "source_location": "L32"}, {"caller_nid": "diag_user_main", "callee": "log", "source_file": "scripts\\diag-user.ts", "source_location": "L33"}, {"caller_nid": "diag_user_main", "callee": "log", "source_file": "scripts\\diag-user.ts", "source_location": "L34"}, {"caller_nid": "diag_user_main", "callee": "stringify", "source_file": "scripts\\diag-user.ts", "source_location": "L34"}, {"caller_nid": "diag_user_main", "callee": "log", "source_file": "scripts\\diag-user.ts", "source_location": "L35"}, {"caller_nid": "diag_user_main", "callee": "stringify", "source_file": "scripts\\diag-user.ts", "source_location": "L35"}, {"caller_nid": "diag_user_main", "callee": "limit", "source_file": "scripts\\diag-user.ts", "source_location": "L37"}, {"caller_nid": "diag_user_main", "callee": "where", "source_file": "scripts\\diag-user.ts", "source_location": "L37"}, {"caller_nid": "diag_user_main", "callee": "from", "source_file": "scripts\\diag-user.ts", "source_location": "L37"}, {"caller_nid": "diag_user_main", "callee": "select", "source_file": "scripts\\diag-user.ts", "source_location": "L37"}, {"caller_nid": "diag_user_main", "callee": "eq", "source_file": "scripts\\diag-user.ts", "source_location": "L40"}, {"caller_nid": "diag_user_main", "callee": "log", "source_file": "scripts\\diag-user.ts", "source_location": "L44"}, {"caller_nid": "diag_user_main", "callee": "from", "source_file": "scripts\\diag-user.ts", "source_location": "L45"}, {"caller_nid": "diag_user_main", "callee": "select", "source_file": "scripts\\diag-user.ts", "source_location": "L45"}, {"caller_nid": "diag_user_main", "callee": "log", "source_file": "scripts\\diag-user.ts", "source_location": "L48"}, {"caller_nid": "diag_user_main", "callee": "log", "source_file": "scripts\\diag-user.ts", "source_location": "L49"}, {"caller_nid": "diag_user_main", "callee": "end", "source_file": "scripts\\diag-user.ts", "source_location": "L50"}, {"caller_nid": "diag_user_main", "callee": "log", "source_file": "scripts\\diag-user.ts", "source_location": "L54"}, {"caller_nid": "diag_user_main", "callee": "log", "source_file": "scripts\\diag-user.ts", "source_location": "L55"}, {"caller_nid": "diag_user_main", "callee": "log", "source_file": "scripts\\diag-user.ts", "source_location": "L56"}, {"caller_nid": "diag_user_main", "callee": "log", "source_file": "scripts\\diag-user.ts", "source_location": "L57"}, {"caller_nid": "diag_user_main", "callee": "log", "source_file": "scripts\\diag-user.ts", "source_location": "L58"}, {"caller_nid": "diag_user_main", "callee": "log", "source_file": "scripts\\diag-user.ts", "source_location": "L59"}, {"caller_nid": "diag_user_main", "callee": "log", "source_file": "scripts\\diag-user.ts", "source_location": "L60"}, {"caller_nid": "diag_user_main", "callee": "slice", "source_file": "scripts\\diag-user.ts", "source_location": "L60"}, {"caller_nid": "diag_user_main", "callee": "log", "source_file": "scripts\\diag-user.ts", "source_location": "L61"}, {"caller_nid": "diag_user_main", "callee": "log", "source_file": "scripts\\diag-user.ts", "source_location": "L62"}, {"caller_nid": "diag_user_main", "callee": "log", "source_file": "scripts\\diag-user.ts", "source_location": "L63"}, {"caller_nid": "diag_user_main", "callee": "where", "source_file": "scripts\\diag-user.ts", "source_location": "L65"}, {"caller_nid": "diag_user_main", "callee": "innerJoin", "source_file": "scripts\\diag-user.ts", "source_location": "L65"}, {"caller_nid": "diag_user_main", "callee": "from", "source_file": "scripts\\diag-user.ts", "source_location": "L65"}, {"caller_nid": "diag_user_main", "callee": "select", "source_file": "scripts\\diag-user.ts", "source_location": "L65"}, {"caller_nid": "diag_user_main", "callee": "eq", "source_file": "scripts\\diag-user.ts", "source_location": "L68"}, {"caller_nid": "diag_user_main", "callee": "eq", "source_file": "scripts\\diag-user.ts", "source_location": "L69"}, {"caller_nid": "diag_user_main", "callee": "log", "source_file": "scripts\\diag-user.ts", "source_location": "L71"}, {"caller_nid": "diag_user_main", "callee": "log", "source_file": "scripts\\diag-user.ts", "source_location": "L72"}, {"caller_nid": "diag_user_main", "callee": "log", "source_file": "scripts\\diag-user.ts", "source_location": "L73"}, {"caller_nid": "diag_user_main", "callee": "where", "source_file": "scripts\\diag-user.ts", "source_location": "L75"}, {"caller_nid": "diag_user_main", "callee": "from", "source_file": "scripts\\diag-user.ts", "source_location": "L75"}, {"caller_nid": "diag_user_main", "callee": "select", "source_file": "scripts\\diag-user.ts", "source_location": "L75"}, {"caller_nid": "diag_user_main", "callee": "eq", "source_file": "scripts\\diag-user.ts", "source_location": "L75"}, {"caller_nid": "diag_user_main", "callee": "log", "source_file": "scripts\\diag-user.ts", "source_location": "L76"}, {"caller_nid": "diag_user_main", "callee": "log", "source_file": "scripts\\diag-user.ts", "source_location": "L79"}, {"caller_nid": "diag_user_main", "callee": "log", "source_file": "scripts\\diag-user.ts", "source_location": "L81"}, {"caller_nid": "diag_user_main", "callee": "verifyPassword", "source_file": "scripts\\diag-user.ts", "source_location": "L84"}, {"caller_nid": "diag_user_main", "callee": "log", "source_file": "scripts\\diag-user.ts", "source_location": "L85"}, {"caller_nid": "diag_user_main", "callee": "log", "source_file": "scripts\\diag-user.ts", "source_location": "L87"}, {"caller_nid": "diag_user_main", "callee": "end", "source_file": "scripts\\diag-user.ts", "source_location": "L92"}]} |