{
  "$schema": "mantara.schema.v1",
  "system_name": "Todo Task - Simple Form Submission Demo",
  "schema_name": "ai_sch_20260514_090835",
  "description": "A minimalist single-page web application for form submission and data display.",
  "menus": [
    {
      "menu_id": 1,
      "menu_name": "Form Management",
      "sequence_number": 1,
      "description": "Handles form submissions and displays them in a list.",
      "submenus": [
        {
          "submenu_id": 101,
          "submenu_name": "Submission Management",
          "sequence_number": 1,
          "description": "Manages the creation and display of form submissions.",
          "tables": [
            {
              "table_name": "submissions",
              "comment": "Stores form submissions with user-provided name and email.",
              "columns": [
                {
                  "name": "id",
                  "type": "UUID",
                  "constraints": "PRIMARY KEY DEFAULT gen_random_uuid()"
                },
                {
                  "name": "submenu_id",
                  "type": "INT",
                  "constraints": "DEFAULT 101 NOT NULL REFERENCES todo_task.submenu(submenu_id)"
                },
                {
                  "name": "name",
                  "type": "VARCHAR(100)",
                  "constraints": "NOT NULL CHECK (LENGTH(name) >= 2)",
                  "comment": "User's name, must be at least 2 characters."
                },
                {
                  "name": "email",
                  "type": "VARCHAR(255)",
                  "constraints": "NOT NULL",
                  "comment": "User's email address."
                },
                {
                  "name": "created_at",
                  "type": "TIMESTAMP",
                  "constraints": "NOT NULL DEFAULT CURRENT_TIMESTAMP",
                  "comment": "Timestamp when the submission was created."
                },
                {
                  "name": "updated_at",
                  "type": "TIMESTAMP",
                  "constraints": "NOT NULL DEFAULT CURRENT_TIMESTAMP",
                  "comment": "Timestamp when the submission was last updated."
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "assumptions": [
    "The application is purely client-side with no server-side interactions.",
    "Submissions are stored temporarily in client-side memory and are lost upon session end."
  ],
  "open_questions": [
    "Should there be any client-side persistence mechanism beyond session storage?",
    "Is there a need for additional validation rules beyond basic email format checks?"
  ],
  "run_id": "20260514_090835"
}
