{
  "$schema": "mantara.schema.v1",
  "system_name": "Todo Task Submission System",
  "schema_name": "ai_sch_20260514_025553",
  "description": "A system for submitting and displaying todo tasks with user name and email.",
  "menus": [
    {
      "menu_id": 1,
      "menu_name": "Submission Management",
      "sequence_number": 1,
      "description": "Manage submissions of tasks with user details.",
      "submenus": [
        {
          "submenu_id": 101,
          "submenu_name": "Submission Entry",
          "sequence_number": 1,
          "description": "Form for entering new submissions.",
          "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 ttss.submenu(submenu_id)"
                },
                {
                  "name": "name",
                  "type": "VARCHAR(100)",
                  "constraints": "NOT NULL",
                  "comment": "User's name, max 100 characters."
                },
                {
                  "name": "email",
                  "type": "VARCHAR(255)",
                  "constraints": "NOT NULL",
                  "comment": "User's email, max 255 characters."
                },
                {
                  "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": [
    "Each submission is independent and does not relate to other entities.",
    "Submissions are displayed in reverse chronological order."
  ],
  "open_questions": [
    "Should there be a mechanism to delete or edit submissions?",
    "Is there a need for additional metadata on submissions, such as IP address or user agent?"
  ]
}
