{
  "title": "tasks",
  "description": "To-dos, subtasks (parent_id set) and deadlines (is_deadline)",
  "version": 0,
  "primaryKey": "id",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string",
      "maxLength": 36
    },
    "space_id": {
      "type": "string",
      "maxLength": 36
    },
    "created_by": {
      "type": "string",
      "maxLength": 36
    },
    "updated_at": {
      "type": "string",
      "maxLength": 32
    },
    "list_id": {
      "type": "string",
      "maxLength": 36
    },
    "parent_id": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 36
    },
    "title": {
      "type": "string",
      "maxLength": 500
    },
    "notes": {
      "type": "string",
      "maxLength": 20000
    },
    "due_at": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 32
    },
    "all_day": {
      "type": "boolean"
    },
    "priority": {
      "type": "string",
      "enum": [
        "low",
        "normal",
        "high"
      ],
      "maxLength": 6
    },
    "status": {
      "type": "string",
      "enum": [
        "open",
        "done"
      ],
      "maxLength": 4
    },
    "completed_at": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 32
    },
    "rrule": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 500
    },
    "is_deadline": {
      "type": "boolean"
    },
    "module_code": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 32
    },
    "note_id": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 36
    },
    "tags": {
      "type": "array",
      "maxItems": 30,
      "items": {
        "type": "string",
        "maxLength": 60
      }
    },
    "position": {
      "type": "string",
      "maxLength": 64
    }
  },
  "required": [
    "id",
    "space_id",
    "created_by",
    "updated_at",
    "list_id",
    "parent_id",
    "title",
    "notes",
    "due_at",
    "all_day",
    "priority",
    "status",
    "completed_at",
    "rrule",
    "is_deadline",
    "module_code",
    "note_id",
    "tags",
    "position"
  ],
  "indexes": [
    [
      "status"
    ],
    [
      "list_id"
    ]
  ]
}
