{
  "title": "reminders",
  "description": "Reminders on tasks and events",
  "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
    },
    "target_type": {
      "type": "string",
      "enum": [
        "task",
        "event"
      ],
      "maxLength": 5
    },
    "target_id": {
      "type": "string",
      "maxLength": 36
    },
    "remind_at": {
      "type": "string",
      "maxLength": 32
    },
    "offset_minutes": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 525600
    },
    "snoozed_until": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 32
    },
    "done": {
      "type": "boolean"
    }
  },
  "required": [
    "id",
    "space_id",
    "created_by",
    "updated_at",
    "target_type",
    "target_id",
    "remind_at",
    "offset_minutes",
    "snoozed_until",
    "done"
  ],
  "indexes": [
    [
      "target_id"
    ]
  ]
}
