{
  "generated": "2026-06-28",
  "version": "1.0.0",
  "entities": [
    {
      "id": "mosad",
      "name": "Mosad",
      "hebrew": "מוסד",
      "description": "ישות שורש — מוסד חינוך/קהילה. כל הנתונים בדמו משויכים למוסד אחד מתוך 4 הפרופילים (A–D).",
      "source": "src/lib/mock-data.ts → MosadCore + public.mosadot",
      "fields": [
        {
          "name": "name",
          "type": "string",
          "description": "שם המוסד",
          "example": "מוסדות אור החיים"
        },
        {
          "name": "manager",
          "type": "string",
          "description": "שם המנהל/מנכ\"ל"
        },
        {
          "name": "city",
          "type": "string",
          "description": "עיר"
        },
        {
          "name": "address",
          "type": "string",
          "description": "כתובת מלאה"
        },
        {
          "name": "symbol",
          "type": "string",
          "description": "סמל מוסד (משרד החינוך)",
          "example": "770234"
        },
        {
          "name": "type",
          "type": "string",
          "description": "סוג מוסד",
          "example": "מוכש\"ר — ת\"ת ובית ספר"
        },
        {
          "name": "students",
          "type": "integer",
          "description": "מספר תלמידים"
        },
        {
          "name": "staff",
          "type": "integer",
          "description": "מספר אנשי צוות"
        },
        {
          "name": "ownership",
          "type": "string",
          "description": "בעלות (לרוב ע\"ר/חברה)"
        },
        {
          "name": "readiness",
          "type": "integer (0-100)",
          "description": "ציון מוכנות כללי"
        },
        {
          "name": "photo",
          "type": "string?",
          "description": "URL לדיוקן"
        }
      ],
      "example": {
        "name": "מוסדות אור החיים",
        "manager": "הרב ישראל כהן",
        "city": "ירושלים",
        "address": "רח׳ הרב הרצוג 24",
        "symbol": "770234",
        "type": "מוכש\"ר — ת\"ת ובית ספר",
        "students": 412,
        "staff": 58,
        "ownership": "עמותת אור החיים (ע\"ר 580234567)",
        "readiness": 72
      }
    },
    {
      "id": "contact",
      "name": "Contact",
      "hebrew": "איש קשר",
      "description": "אנשי קשר משויכים למוסד (מנהל, מזכירה, רו\"ח, יועצים).",
      "source": "src/lib/mock-data.ts → Contact",
      "fields": [
        {
          "name": "name",
          "type": "string",
          "description": "שם מלא"
        },
        {
          "name": "role",
          "type": "string",
          "description": "תפקיד"
        },
        {
          "name": "phone",
          "type": "string",
          "description": "טלפון בפורמט ישראלי"
        },
        {
          "name": "email",
          "type": "string (email)",
          "description": "דוא\"ל"
        }
      ],
      "example": {
        "name": "רחל לוי",
        "role": "מזכירה ראשית",
        "phone": "052-7654321",
        "email": "office@orhachaim.org"
      }
    },
    {
      "id": "kpis",
      "name": "Kpis",
      "hebrew": "מדדי מפתח",
      "description": "סיכום מצב המוסד בארבעה צירים: סיכונים, כסף, מסמכים חסרים וקרנות.",
      "source": "src/lib/mock-data.ts → Kpis",
      "fields": [
        {
          "name": "risks.count",
          "type": "integer",
          "description": "מס' סיכונים פעילים"
        },
        {
          "name": "risks.items",
          "type": "string[]",
          "description": "רשימת תיאורי סיכון"
        },
        {
          "name": "money.total",
          "type": "integer (ILS)",
          "description": "תקציב כולל"
        },
        {
          "name": "money.atRisk",
          "type": "integer (ILS)",
          "description": "סכום בסיכון פקיעה/אובדן"
        },
        {
          "name": "missingDocs.count",
          "type": "integer",
          "description": "מס' מסמכים חסרים"
        },
        {
          "name": "missingDocs.items",
          "type": "string[]",
          "description": "רשימת מסמכים חסרים"
        },
        {
          "name": "grants.active",
          "type": "integer",
          "description": "קולות קוראים פעילים"
        },
        {
          "name": "grants.matched",
          "type": "integer",
          "description": "התאמות שנמצאו"
        },
        {
          "name": "grants.potential",
          "type": "integer (ILS)",
          "description": "פוטנציאל מימון"
        },
        {
          "name": "suppliers.open",
          "type": "integer",
          "description": "פניות ספקים פתוחות"
        },
        {
          "name": "community.reports",
          "type": "integer",
          "description": "דיווחי קהילה השבוע"
        }
      ],
      "example": {
        "risks": {
          "count": 4,
          "items": [
            "אישור בטיחות פג בעוד 21 יום",
            "3 ליקויים פתוחים"
          ]
        },
        "money": {
          "total": 2930000,
          "atRisk": 1100000
        },
        "missingDocs": {
          "count": 12,
          "items": [
            "אישור ניהול תקין",
            "אישור נגישות"
          ]
        },
        "grants": {
          "active": 6,
          "matched": 3,
          "potential": 1200000
        },
        "suppliers": {
          "open": 5,
          "list": [
            "יועץ בטיחות",
            "רו\"ח"
          ]
        },
        "community": {
          "reports": 7
        }
      }
    },
    {
      "id": "weekly-task",
      "name": "WeeklyTask",
      "hebrew": "משימת שבוע",
      "description": "פעולה מומלצת לטיפול השבוע, עם דחיפות וצבע סטטוס.",
      "source": "src/lib/mock-data.ts → WeeklyTask",
      "fields": [
        {
          "name": "urgency",
          "type": "enum",
          "description": "רמת דחיפות",
          "enum": [
            "red",
            "orange",
            "yellow"
          ]
        },
        {
          "name": "domain",
          "type": "string",
          "description": "תחום (בטיחות, ביקורת, תב\"ר וכו')"
        },
        {
          "name": "finding",
          "type": "string",
          "description": "תיאור הממצא"
        },
        {
          "name": "action",
          "type": "string",
          "description": "הפעולה הנדרשת"
        },
        {
          "name": "owner",
          "type": "string",
          "description": "אחראי ביצוע"
        },
        {
          "name": "due",
          "type": "string (DD.MM)",
          "description": "תאריך יעד"
        },
        {
          "name": "cta",
          "type": "string",
          "description": "טקסט הכפתור"
        }
      ],
      "example": {
        "urgency": "red",
        "domain": "בטיחות",
        "finding": "אישור בטיחות פג בעוד 21 יום",
        "action": "הזמן יועץ בטיחות",
        "owner": "מזכירות",
        "due": "20.06",
        "cta": "הזמן עכשיו"
      }
    },
    {
      "id": "tabar",
      "name": "TabarRow",
      "hebrew": "תב\"ר",
      "description": "תקציב בלתי רגיל — פרויקט הוני ייעודי מול רשות/משרד.",
      "source": "src/lib/mock-data.ts → TabarRow",
      "fields": [
        {
          "name": "id",
          "type": "string",
          "description": "מס' תב\"ר"
        },
        {
          "name": "name",
          "type": "string",
          "description": "שם הפרויקט"
        },
        {
          "name": "source",
          "type": "string",
          "description": "מקור המימון"
        },
        {
          "name": "approved",
          "type": "integer (ILS)",
          "description": "סכום מאושר"
        },
        {
          "name": "used",
          "type": "integer (ILS)",
          "description": "סכום שנוצל"
        },
        {
          "name": "status",
          "type": "enum",
          "description": "סטטוס",
          "enum": [
            "פעיל",
            "בסיכון",
            "תקוע"
          ]
        },
        {
          "name": "reason",
          "type": "string",
          "description": "הסבר לסטטוס"
        }
      ],
      "example": {
        "id": "1847",
        "name": "שיפוץ מבנה ת\"ת",
        "source": "עירייה + משרד החינוך",
        "approved": 750000,
        "used": 180000,
        "status": "בסיכון",
        "reason": "חסר אומדן ודוח ביצוע"
      }
    },
    {
      "id": "inspection",
      "name": "Inspection",
      "hebrew": "ביקורת",
      "description": "ביקורת של גוף רגולטורי (משרד החינוך, כיבוי, נגישות וכו').",
      "source": "src/lib/mock-data.ts → Inspection",
      "fields": [
        {
          "name": "date",
          "type": "string (DD.MM.YYYY)",
          "description": "תאריך הביקורת"
        },
        {
          "name": "body",
          "type": "string",
          "description": "הגוף המבקר"
        },
        {
          "name": "domain",
          "type": "string",
          "description": "תחום"
        },
        {
          "name": "findings",
          "type": "integer",
          "description": "סך ממצאים"
        },
        {
          "name": "open",
          "type": "integer",
          "description": "ממצאים פתוחים"
        },
        {
          "name": "severity",
          "type": "string",
          "description": "חומרה"
        },
        {
          "name": "status",
          "type": "string",
          "description": "סטטוס נוכחי"
        },
        {
          "name": "treat",
          "type": "string",
          "description": "יעד טיפול"
        }
      ],
      "example": {
        "date": "12.05.2025",
        "body": "משרד החינוך — מחוז ירושלים",
        "domain": "רישוי",
        "findings": 7,
        "open": 3,
        "severity": "גבוהה",
        "status": "פתוחה",
        "treat": "30.06"
      }
    },
    {
      "id": "likui",
      "name": "Likui",
      "hebrew": "ליקוי",
      "description": "ליקוי שהתגלה בביקורת — דורש פעולה ואחראי לסגירה.",
      "source": "src/lib/mock-data.ts → Likui",
      "fields": [
        {
          "name": "item",
          "type": "string",
          "description": "תיאור הליקוי"
        },
        {
          "name": "source",
          "type": "string",
          "description": "מקור הדיווח"
        },
        {
          "name": "severity",
          "type": "enum",
          "description": "חומרה",
          "enum": [
            "נמוכה",
            "בינונית",
            "גבוהה"
          ]
        },
        {
          "name": "action",
          "type": "string",
          "description": "פעולה נדרשת"
        },
        {
          "name": "owner",
          "type": "string",
          "description": "אחראי"
        },
        {
          "name": "status",
          "type": "enum",
          "description": "סטטוס",
          "enum": [
            "פתוח",
            "בטיפול",
            "סגור"
          ]
        }
      ],
      "example": {
        "item": "חסר אישור חשמלאי בודק תקופתי",
        "source": "ביקורת בטיחות 03.04",
        "severity": "גבוהה",
        "action": "הזמן חשמלאי מוסמך",
        "owner": "מנהל תחזוקה",
        "status": "פתוח"
      }
    },
    {
      "id": "document",
      "name": "DocumentRow",
      "hebrew": "מסמך",
      "description": "מסמך רגולטורי במאגר המסמכים של המוסד.",
      "source": "src/lib/mock-data.ts → DocumentRow",
      "fields": [
        {
          "name": "name",
          "type": "string",
          "description": "שם הקובץ"
        },
        {
          "name": "category",
          "type": "string",
          "description": "קטגוריה (בטיחות, רישוי, כספים)"
        },
        {
          "name": "uploaded",
          "type": "string (DD.MM.YYYY)",
          "description": "תאריך העלאה"
        },
        {
          "name": "expiry",
          "type": "string (DD.MM.YYYY)",
          "description": "תוקף"
        },
        {
          "name": "status",
          "type": "enum",
          "description": "סטטוס",
          "enum": [
            "תקף",
            "פג בקרוב",
            "פג תוקף",
            "ממתין"
          ]
        },
        {
          "name": "risk",
          "type": "enum",
          "description": "רמת סיכון",
          "enum": [
            "נמוך",
            "בינוני",
            "גבוה"
          ]
        }
      ],
      "example": {
        "name": "אישור בטיחות 2024.pdf",
        "category": "בטיחות",
        "uploaded": "01.09.2024",
        "expiry": "01.07.2025",
        "status": "פג בקרוב",
        "risk": "גבוה"
      }
    },
    {
      "id": "grant",
      "name": "Grant",
      "hebrew": "קול קורא",
      "description": "קול קורא / קרן מימון שנסרק במנוע ה-Matchmaking.",
      "source": "src/lib/mock-data.ts → Grant",
      "fields": [
        {
          "name": "name",
          "type": "string",
          "description": "שם הקול הקורא"
        },
        {
          "name": "body",
          "type": "string",
          "description": "הגוף המממן"
        },
        {
          "name": "match",
          "type": "integer (0-100)",
          "description": "אחוז התאמה למוסד"
        },
        {
          "name": "amount",
          "type": "string",
          "description": "סכום מקסימלי (טקסט)"
        },
        {
          "name": "deadline",
          "type": "string (DD.MM.YYYY)",
          "description": "מועד אחרון להגשה"
        },
        {
          "name": "missing",
          "type": "string",
          "description": "מה חסר להגשה"
        },
        {
          "name": "status",
          "type": "string",
          "description": "סטטוס בקשה"
        }
      ],
      "example": {
        "name": "קרן לחינוך בפריפריה",
        "body": "משרד החינוך",
        "match": 84,
        "amount": "עד ₪450,000",
        "deadline": "30.07.2025",
        "missing": "אישור ניהול תקין",
        "status": "מתאים — להגיש"
      }
    },
    {
      "id": "supplier",
      "name": "Supplier",
      "hebrew": "ספק",
      "description": "ספק שירות (יועץ בטיחות, רו\"ח, חשמלאי וכו') עם דירוג ביצועים.",
      "source": "src/lib/mock-data.ts → Supplier",
      "fields": [
        {
          "name": "name",
          "type": "string",
          "description": "שם הספק"
        },
        {
          "name": "field",
          "type": "string",
          "description": "תחום מומחיות"
        },
        {
          "name": "rating",
          "type": "number (0-5)",
          "description": "דירוג מערכת"
        },
        {
          "name": "avgDays",
          "type": "integer",
          "description": "זמן תגובה ממוצע (ימים)"
        },
        {
          "name": "institutes",
          "type": "integer",
          "description": "מס' מוסדות עם הסכם פעיל"
        },
        {
          "name": "success",
          "type": "integer (0-100)",
          "description": "אחוז הצלחה"
        },
        {
          "name": "price",
          "type": "string",
          "description": "טווח מחיר"
        }
      ],
      "example": {
        "name": "יועץ בטיחות א.מ.",
        "field": "בטיחות",
        "rating": 4.7,
        "avgDays": 3,
        "institutes": 42,
        "success": 96,
        "price": "₪1,800–₪2,400"
      }
    },
    {
      "id": "cashflow",
      "name": "CashflowRow",
      "hebrew": "תזרים",
      "description": "שורת תזרים חודשי — הכנסות מול הוצאות.",
      "source": "src/lib/mock-data.ts → CashflowRow",
      "fields": [
        {
          "name": "m",
          "type": "string",
          "description": "חודש (קיצור עברי)",
          "example": "אדר"
        },
        {
          "name": "income",
          "type": "integer (ILS)",
          "description": "הכנסות"
        },
        {
          "name": "expense",
          "type": "integer (ILS)",
          "description": "הוצאות"
        }
      ],
      "example": {
        "m": "אדר",
        "income": 380000,
        "expense": 360000
      }
    },
    {
      "id": "foi",
      "name": "FoiRequest",
      "hebrew": "בקשת חופש מידע",
      "description": "בקשת חופש מידע שהוגשה לרשות.",
      "source": "src/lib/mock-data.ts → FoiRequest",
      "fields": [
        {
          "name": "topic",
          "type": "string",
          "description": "נושא הבקשה"
        },
        {
          "name": "authority",
          "type": "string",
          "description": "הרשות הנמענת"
        },
        {
          "name": "date",
          "type": "string (DD.MM.YYYY)",
          "description": "תאריך הגשה"
        },
        {
          "name": "status",
          "type": "string",
          "description": "סטטוס"
        },
        {
          "name": "due",
          "type": "string (DD.MM.YYYY)",
          "description": "מועד תגובה"
        },
        {
          "name": "owner",
          "type": "string",
          "description": "אחראי"
        }
      ],
      "example": {
        "topic": "תקציבי תב\"ר 2024",
        "authority": "עיריית ירושלים",
        "date": "10.03.2025",
        "status": "בהמתנה",
        "due": "10.05.2025",
        "owner": "מנהל"
      }
    },
    {
      "id": "community-post",
      "name": "CommunityPost",
      "hebrew": "פוסט קהילה",
      "description": "פוסט בפיד קהילת המנהלים.",
      "source": "src/lib/mock-data.ts → CommunityPost",
      "fields": [
        {
          "name": "author",
          "type": "string",
          "description": "שם המפרסם"
        },
        {
          "name": "avatar",
          "type": "string",
          "description": "תווית/ראשי תיבות"
        },
        {
          "name": "time",
          "type": "string",
          "description": "זמן יחסי"
        },
        {
          "name": "text",
          "type": "string",
          "description": "תוכן הפוסט"
        },
        {
          "name": "tags",
          "type": "string[]",
          "description": "תגיות"
        },
        {
          "name": "score",
          "type": "integer",
          "description": "ניקוד עזרה מהקהילה"
        },
        {
          "name": "type",
          "type": "enum",
          "description": "סוג פוסט",
          "enum": [
            "alert",
            "success",
            "info",
            "warning"
          ]
        }
      ],
      "example": {
        "author": "מנהל ת\"ת אור התורה",
        "avatar": "אא",
        "time": "לפני 3 שעות",
        "text": "ביקורת רישוי דרשה אישור נגישות חדש — שימו לב.",
        "tags": [
          "רישוי",
          "נגישות"
        ],
        "score": 12,
        "type": "alert"
      }
    },
    {
      "id": "obligation",
      "name": "Obligation",
      "hebrew": "חובה / Incident",
      "description": "אירוע אוטונומי שנפתח ע\"י סוכן Mission Control. נשמר ב-public.obligations.",
      "source": "supabase.public.obligations",
      "fields": [
        {
          "name": "id",
          "type": "uuid",
          "description": "מזהה"
        },
        {
          "name": "mosad_id",
          "type": "uuid",
          "description": "המוסד"
        },
        {
          "name": "agent",
          "type": "enum",
          "description": "הסוכן שיצר",
          "enum": [
            "compliance",
            "budget",
            "root_cause",
            "action_executor"
          ]
        },
        {
          "name": "title",
          "type": "string",
          "description": "כותרת"
        },
        {
          "name": "severity",
          "type": "enum",
          "description": "חומרה",
          "enum": [
            "low",
            "medium",
            "high",
            "critical"
          ]
        },
        {
          "name": "status",
          "type": "enum",
          "description": "סטטוס",
          "enum": [
            "open",
            "in_progress",
            "blocked",
            "resolved",
            "dismissed"
          ]
        },
        {
          "name": "due_at",
          "type": "timestamptz",
          "description": "SLA לסיום"
        },
        {
          "name": "created_at",
          "type": "timestamptz",
          "description": "מועד יצירה"
        }
      ],
      "example": {
        "id": "5b1e…",
        "mosad_id": "a13c…",
        "agent": "compliance",
        "title": "אישור בטיחות פג בעוד 12 יום",
        "severity": "high",
        "status": "open",
        "due_at": "2026-07-10T08:00:00Z",
        "created_at": "2026-06-28T05:00:00Z"
      }
    },
    {
      "id": "letter",
      "name": "Letter",
      "hebrew": "מכתב",
      "description": "טיוטה/מכתב שהופק מתבנית. Workflow: טיוטה → מוכן → מאושר → נשלח.",
      "source": "supabase.public.letters",
      "fields": [
        {
          "name": "id",
          "type": "uuid",
          "description": "מזהה"
        },
        {
          "name": "mosad_id",
          "type": "uuid",
          "description": "המוסד"
        },
        {
          "name": "template_id",
          "type": "uuid",
          "description": "התבנית המקור"
        },
        {
          "name": "obligation_id",
          "type": "uuid?",
          "description": "החובה המקושרת"
        },
        {
          "name": "subject",
          "type": "string",
          "description": "נושא"
        },
        {
          "name": "body",
          "type": "string (rich text)",
          "description": "גוף המכתב בעברית"
        },
        {
          "name": "status",
          "type": "enum",
          "description": "סטטוס Workflow",
          "enum": [
            "draft",
            "ready",
            "approved",
            "sent"
          ]
        },
        {
          "name": "version",
          "type": "integer",
          "description": "מס' גרסה"
        },
        {
          "name": "created_at",
          "type": "timestamptz",
          "description": ""
        },
        {
          "name": "updated_at",
          "type": "timestamptz",
          "description": ""
        }
      ],
      "example": {
        "id": "9f2a…",
        "mosad_id": "a13c…",
        "template_id": "t-safety-renewal",
        "obligation_id": "5b1e…",
        "subject": "בקשת חידוש אישור בטיחות — סמל 770234",
        "body": "<p>לכבוד מחלקת הבטיחות…</p>",
        "status": "draft",
        "version": 1,
        "created_at": "2026-06-28T05:01:00Z",
        "updated_at": "2026-06-28T05:01:00Z"
      }
    }
  ]
}