{
  "title": "attachments",
  "description": "Files attached to notes (rows only; files stay on the server)",
  "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
    },
    "note_id": {
      "type": "string",
      "maxLength": 36
    },
    "filename": {
      "type": "string",
      "maxLength": 255
    },
    "mime": {
      "type": "string",
      "maxLength": 120
    },
    "size_bytes": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000000000000
    },
    "sha256": {
      "type": "string",
      "maxLength": 64
    },
    "storage_key": {
      "type": "string",
      "maxLength": 120
    },
    "keep_offline": {
      "type": "boolean"
    }
  },
  "required": [
    "id",
    "space_id",
    "created_by",
    "updated_at",
    "note_id",
    "filename",
    "mime",
    "size_bytes",
    "sha256",
    "storage_key",
    "keep_offline"
  ],
  "indexes": [
    [
      "note_id"
    ]
  ]
}
