{
  "$schema": "mantara.schema.v1",
  "system_name": "Todo Task Demo Application",
  "schema_name": "ai_sch_20260514_061927",
  "description": "A minimal web application for submitting and displaying user entries without backend infrastructure.",
  "menus": [
    {
      "menu_id": 1,
      "menu_name": "Submission Management",
      "sequence_number": 1,
      "description": "Handles user submissions and displays them in a list.",
      "submenus": [
        {
          "submenu_id": 101,
          "submenu_name": "Submit Entry",
          "sequence_number": 1,
          "description": "Allows users to submit their name and email through a form.",
          "tables": [
            {
              "table_name": "submissions",
              "comment": "Stores user submissions including name, email, and timestamps.",
              "columns": [
                {
                  "name": "id",
                  "type": "UUID",
                  "constraints": "PRIMARY KEY DEFAULT gen_random_uuid()"
                },
                {
                  "name": "submenu_id",
                  "type": "INT",
                  "constraints": "DEFAULT 101 NOT NULL REFERENCES todo_demo.submenu(submenu_id)"
                },
                {
                  "name": "name",
                  "type": "VARCHAR(100)",
                  "constraints": "NOT NULL",
                  "comment": "User's name, required field."
                },
                {
                  "name": "email",
                  "type": "VARCHAR(255)",
                  "constraints": "NOT NULL",
                  "comment": "User's email, required field."
                },
                {
                  "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": [
    "Submissions are stored in-memory and are not persisted beyond the session.",
    "Each submission is independent and does not require relationships with other entities."
  ],
  "open_questions": [
    "Should the application support any form of data persistence beyond the session?",
    "Is there a need for additional fields or metadata in the submission entity?"
  ]
}
