{
  "format": "gewerksuit-backup-1",
  "synthetic_database_only": true,
  "tables": {
    "ai_quote_details": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "job_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "quote_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "template_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "edited_data",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "offer_templates",
          "from": "template_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "quotes",
          "from": "quote_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 2,
          "seq": 0,
          "table": "business_ai_jobs",
          "from": "job_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "ai_speech_jobs": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "source_sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "content",
          "type": "BLOB",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "model",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "month",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "ai_speech_results": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "job_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "status",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "result",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "ai_speech_jobs",
          "from": "job_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "article_bundles": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "name",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "items",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "vat",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "article_bundles",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "articles": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "sku",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "label",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "unit",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "price_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "vat",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "favorite",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "version",
          "type": "INTEGER",
          "notnull": 1,
          "default": "1",
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "assignments": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "project_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "employee",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "projects",
          "from": "project_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "audit": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "action",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "object_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "bank_batches": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "matches",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "payment_ids",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "bank_matches": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "row_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "invoice_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "payment_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "payments",
          "from": "payment_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "invoices",
          "from": "invoice_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 2,
          "seq": 0,
          "table": "bank_rows",
          "from": "row_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "bank_rows": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "identity",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "amount_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "reference",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "business_ai_jobs": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "program",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "task",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "object_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "source",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "source_sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "model",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "month",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 10,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "business_ai_results": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "job_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "status",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "result",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "business_ai_jobs",
          "from": "job_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "business_ai_reviews": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "job_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "decision",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "business_ai_jobs",
          "from": "job_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "business_ai_uses": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "job_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "target",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "target_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "business_ai_jobs",
          "from": "job_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "calendar_entries": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "label",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "starts",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "ends",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "timezone",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "start_utc",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "end_utc",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "assigned_to",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "project_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 10,
          "name": "kind",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 11,
          "name": "scope",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 12,
          "name": "status",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 13,
          "name": "note",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 14,
          "name": "location",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 15,
          "name": "owner",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 16,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 17,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "projects",
          "from": "project_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "calendar_entries",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "calendar_events": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "project_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "label",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "starts",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "ends",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "assignee",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "note",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "projects",
          "from": "project_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "cancellations": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "invoice_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "number",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "reason",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "snapshot",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "original_html",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "invoices",
          "from": "invoice_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "cash_entries": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "direction",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "amount_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "reference",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "label",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "cash_links": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "kind",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "record_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "cash_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "cash_entries",
          "from": "cash_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "company_logos": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "mime",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "content",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "label",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "contact_details": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "kind",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "object_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "data",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "credit_uses": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "cancellation_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "invoice_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "payment_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "amount_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "payments",
          "from": "payment_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "invoices",
          "from": "invoice_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 2,
          "seq": 0,
          "table": "cancellations",
          "from": "cancellation_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "customer_addresses": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "customer_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "kind",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "address",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "customers",
          "from": "customer_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "customer_contacts": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "customer_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "name",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "email",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "phone",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "customers",
          "from": "customer_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "customer_edits": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "customer_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "before_data",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "after_data",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "customers",
          "from": "customer_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "customers": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "name",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "address",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "email",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "datev_exports": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "profile_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "starts",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "ends",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "snapshot",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "content",
          "type": "BLOB",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "request",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 10,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "datev_profiles",
          "from": "profile_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "datev_profiles": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "data",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "datev_profiles",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "document_pdfs": {
      "columns": [
        {
          "cid": 0,
          "name": "kind",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "object_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 2
        },
        {
          "cid": 2,
          "name": "content",
          "type": "BLOB",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "renderer_version",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "draft_voids": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "invoice_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "reason",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "invoices",
          "from": "invoice_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "dunning_batches": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "request",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "letters",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "dunning_contacts": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "letter_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "reminder_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "channel",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "invoice_reminders",
          "from": "reminder_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "dunning_letters",
          "from": "letter_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "dunning_holds": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "invoice_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "held",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "reason",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "invoices",
          "from": "invoice_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "dunning_letters": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "invoice_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "stage",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "deadline",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "open_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "snapshot",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "content",
          "type": "BLOB",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "request",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 10,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 11,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "invoices",
          "from": "invoice_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "einvoice_exports": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "kind",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "object_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "xml",
          "type": "BLOB",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "xml_sha",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "snapshot_sha",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "report",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "einvoice_parties": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "kind",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "customer_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "data",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "einvoice_parties",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "customers",
          "from": "customer_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "employee_absence_events": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "absence_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "status",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "employee_absences",
          "from": "absence_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "employee_absences": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "employee",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "start_day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "end_day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "kind",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "note",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "employee_access_versions": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "program",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "member_id",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "rights",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "employee_attendance_r75": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "member_id",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "session_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "minutes",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "break_minutes",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "started",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "ended",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "project_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "projects",
          "from": "project_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "employee_attendance_reviews_r75": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "attendance_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "employee_attendance_r75",
          "from": "attendance_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "employee_clock_events_r75": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "member_id",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "command",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "snapshot",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "result",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "employee_clock_state_r75": {
      "columns": [
        {
          "cid": 0,
          "name": "member_id",
          "type": "TEXT",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "data",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "version",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "employee_general_access_versions": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "program",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "rights",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "employee_sickness_reports": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "employee",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "start_day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "end_day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "employee_task_events": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "task_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "status",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "employee_task_events",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "employee_tasks",
          "from": "task_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "employee_task_revocations": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "task_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "employee_tasks",
          "from": "task_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "employee_tasks": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "assignment_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "project_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "employee",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "label",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "due",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "instructions",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "projects",
          "from": "project_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "employee_time_receipts": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "employee",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "snapshot",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "time_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "time_entries",
          "from": "time_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "fach_calculations091": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "program",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "title",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "document",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "request_hash",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "flow_contract_acceptances": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "contract_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "flow_contracts",
          "from": "contract_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "flow_contracts": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "order_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "deposit_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "gross_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "snapshot",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "content",
          "type": "BLOB",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "request",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 10,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 11,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "flow_contracts",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "orders",
          "from": "order_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "flow_deposit_refunds": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "deposit_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "amount_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "cash_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "request",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "cash_entries",
          "from": "cash_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "flow_deposits",
          "from": "deposit_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "flow_deposit_uses": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "deposit_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "invoice_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "payment_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "amount_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "request",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "payments",
          "from": "payment_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "invoices",
          "from": "invoice_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 2,
          "seq": 0,
          "table": "flow_deposits",
          "from": "deposit_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "flow_deposits": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "contract_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "amount_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "method",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "cash_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "request",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "cash_entries",
          "from": "cash_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "flow_contracts",
          "from": "contract_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "flow_receipts": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "request_hash",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "record_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "flow_records",
          "from": "record_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "flow_records": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "kind",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "project_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "member_id",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "document",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "flow_records",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "projects",
          "from": "project_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_acceptances": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "report_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "service_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "customer_name",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "services",
          "from": "service_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "glass_reports",
          "from": "report_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_claim_closures": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "claim_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "replacement_receipt_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "glass_receipts",
          "from": "replacement_receipt_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "glass_claims",
          "from": "claim_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_claims": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "receipt_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "quantity",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "reason",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "reference",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "glass_receipts",
          "from": "receipt_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_closures": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "report_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "glass_reports",
          "from": "report_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_confirmations": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "purchase_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "delivery_day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "reference",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "glass_purchases",
          "from": "purchase_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_decisions": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "share_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "decision",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "glass_shares",
          "from": "share_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_insurance_estimates": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "quote_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "snapshot",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "quotes",
          "from": "quote_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_jobs": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "order_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "label",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "price_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "orders",
          "from": "order_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_material_issues": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "version_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "event_ids",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "glass_versions",
          "from": "version_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_material_links": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "material_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "reservation_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "stock_reservations",
          "from": "reservation_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "glass_materials",
          "from": "material_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_materials": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "version_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "article_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "quantity",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "kind",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "glass_materials",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "articles",
          "from": "article_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 2,
          "seq": 0,
          "table": "glass_versions",
          "from": "version_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_object_links": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "job_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "object_version_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "room",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "glass_object_versions",
          "from": "object_version_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "glass_jobs",
          "from": "job_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_object_versions": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "object_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "address",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "contact",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "access",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "note",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "glass_object_versions",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "glass_objects",
          "from": "object_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_objects": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "project_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "name",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "projects",
          "from": "project_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_plans": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "version_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "employee",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "note",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "glass_versions",
          "from": "version_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_pricebooks": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "name",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "kind",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "insurer",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "reference",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "valid_from",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "valid_until",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "glass_type",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "vat",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 10,
          "name": "items",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 11,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 12,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 13,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "glass_pricebooks",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_purchases": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "version_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "supplier",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "price_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "snapshot",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "glass_versions",
          "from": "version_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_receipts": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "purchase_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "good",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "damaged",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "reference",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "glass_purchases",
          "from": "purchase_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_report_times": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "report_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "time_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "time_entries",
          "from": "time_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "glass_reports",
          "from": "report_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_reports": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "plan_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "minutes",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "work",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "rest",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "glass_plans",
          "from": "plan_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_reviews": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "version_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "kind",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "glass_versions",
          "from": "version_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_shares": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "version_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "customer_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "files",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "note",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "customers",
          "from": "customer_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "glass_versions",
          "from": "version_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_shower_assemblies": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "quote_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "snapshot",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "quotes",
          "from": "quote_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "glass_shower_assemblies",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_stock_links": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "receipt_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "move_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "quantity",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "stock_moves",
          "from": "move_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "glass_receipts",
          "from": "receipt_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_supplier_checks": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "record_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "confirmation_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "glass_confirmations",
          "from": "confirmation_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "glass_supplier_records",
          "from": "record_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_supplier_records": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "purchase_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "width_mm",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "height_mm",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "quantity",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "glass_type",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "price_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "delivery_day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "reference",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 10,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 11,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "glass_supplier_records",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "glass_purchases",
          "from": "purchase_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "glass_versions": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "job_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "width_mm",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "height_mm",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "quantity",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "glass_type",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "location",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "reason",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "glass_versions",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "glass_jobs",
          "from": "job_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "import_batches": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "filename",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "payload",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "report",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "import_confirmations": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "batch_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "mapping",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "customer_count",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "import_batches",
          "from": "batch_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "incoming_documents": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "supplier",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "number",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "due",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "net_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "tax_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "reference",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "incoming_payments": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "document_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "amount_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "reference",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "incoming_documents",
          "from": "document_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "invoice_lines": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "invoice_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "service_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "quantity",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "net_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "services",
          "from": "service_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "invoices",
          "from": "invoice_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "invoice_orders": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "invoice_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "order_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "orders",
          "from": "order_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "invoices",
          "from": "invoice_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "invoice_reminders": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "invoice_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "stage",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "open_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "invoices",
          "from": "invoice_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "invoice_shares": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "invoice_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "enabled",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "invoices",
          "from": "invoice_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "invoices": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "order_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "status",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "vat",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "service_date",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "due_date",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "net_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "tax_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "number",
          "type": "TEXT",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 10,
          "name": "issued_at",
          "type": "TEXT",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 11,
          "name": "snapshot",
          "type": "TEXT",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 12,
          "name": "original_html",
          "type": "TEXT",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 13,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 0,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "orders",
          "from": "order_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "labor_rates": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "member_id",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "effective_day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "hourly_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "labor_rates",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "mail_attempts": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "message_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "outgoing_messages",
          "from": "message_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "mail_results": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "attempt_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "status",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "mail_attempts",
          "from": "attempt_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "measurement_pdf_exports": {
      "columns": [
        {
          "cid": 0,
          "name": "record_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "content",
          "type": "BLOB",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "trade_records",
          "from": "record_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "mobil_buyers": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "customer_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "data",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "mobil_buyers",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "customers",
          "from": "customer_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "mobil_contract_papers": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "name",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "content",
          "type": "BLOB",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "mapping",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "digest",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "mobil_contract_papers",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "mobil_customer_receipts": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "digest",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "customer_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "customers",
          "from": "customer_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "mobil_handover_acceptances": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "record_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "document_sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "name",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "mobil_records",
          "from": "record_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "mobil_margin_deliveries": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "sale_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "mobil_margin_sales",
          "from": "sale_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "mobil_margin_sales": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "vehicle_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "customer_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "order_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "service_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "price_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "gross_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "purchase_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "tax_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "profile_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 10,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 11,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 12,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "services",
          "from": "service_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "orders",
          "from": "order_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 2,
          "seq": 0,
          "table": "customers",
          "from": "customer_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 3,
          "seq": 0,
          "table": "vehicles",
          "from": "vehicle_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "mobil_margin_trade_settlements": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "purchase_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "sale_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "invoice_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "payment_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "amount_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "payments",
          "from": "payment_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "invoices",
          "from": "invoice_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 2,
          "seq": 0,
          "table": "mobil_margin_sales",
          "from": "sale_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 3,
          "seq": 0,
          "table": "vehicle_purchases",
          "from": "purchase_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "mobil_platform_attempts": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "job_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "operation",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "config_version",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "mode",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "seller_id",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "ad_id",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "mobil_platform_jobs",
          "from": "job_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "mobil_platform_jobs": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "vehicle_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "previous_job_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "draft_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "channel",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "payload",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "source",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 10,
          "name": "request_hash",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 11,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_ad_drafts",
          "from": "draft_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "mobil_platform_jobs",
          "from": "previous_job_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 2,
          "seq": 0,
          "table": "vehicles",
          "from": "vehicle_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "mobil_platform_results": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "attempt_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "status",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "ad_id",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "mobil_platform_attempts",
          "from": "attempt_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "mobil_purchase_contracts": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "customer_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "snapshot",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "content",
          "type": "BLOB",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "digest",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "mobil_purchase_contracts",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "customers",
          "from": "customer_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "mobil_receipts": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "request_hash",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "result",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "mobil_records": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "kind",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "vehicle_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "document",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "mobil_records",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "vehicles",
          "from": "vehicle_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "offer_templates": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "name",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "program",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "items",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "vat",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "note",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "order_closures": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "order_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "invoice_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "prior_ids",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "invoices",
          "from": "invoice_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "orders",
          "from": "order_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "order_completion_reopens": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "completion_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "reason",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "order_completions",
          "from": "completion_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "order_completions": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "order_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "prior_ids",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "snapshot",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "orders",
          "from": "order_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "orders": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "project_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "quote_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "label",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "quotes",
          "from": "quote_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "projects",
          "from": "project_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "outgoing_messages": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "document_kind",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "document_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "recipient",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "sender",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "subject",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "body",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "content",
          "type": "BLOB",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 10,
          "name": "pdf_sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 11,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 12,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "payments": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "invoice_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "amount_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "reference",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "invoices",
          "from": "invoice_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "private_files": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "target",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "target_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "name",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "mime",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "content",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "profiles": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "name",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "address",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "email",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "tax_id",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "bank",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "program_preferences": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "program",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "category",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "data",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "program_preferences",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "project_budgets": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "project_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "revenue_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "material_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "minutes",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "hourly_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "other_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "project_budgets",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "projects",
          "from": "project_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "project_costs": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "project_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "document_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "net_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "note",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "incoming_documents",
          "from": "document_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "projects",
          "from": "project_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "project_tasks": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "project_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "label",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "due",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "done",
          "type": "INTEGER",
          "notnull": 1,
          "default": "0",
          "pk": 0
        },
        {
          "cid": 5,
          "name": "version",
          "type": "INTEGER",
          "notnull": 1,
          "default": "1",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "projects",
          "from": "project_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "projects": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "customer_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "title",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "customers",
          "from": "customer_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "quote_acceptances": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "quote_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "order_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "orders",
          "from": "order_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "quotes",
          "from": "quote_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "quote_documents": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "quote_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "snapshot",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "content",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "quotes",
          "from": "quote_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "quote_preferences": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "quote_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "data",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "quotes",
          "from": "quote_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "quote_services": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "quote_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "order_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "orders",
          "from": "order_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "quotes",
          "from": "quote_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "quotes": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "project_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "items",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "vat",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "reason",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "quotes",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "projects",
          "from": "project_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "recurring_plans": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "project_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "name",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "starts",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "ends",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "months",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "items",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "vat",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "projects",
          "from": "project_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "recurring_runs": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "plan_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "period",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "invoice_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "order_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "orders",
          "from": "order_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "invoices",
          "from": "invoice_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 2,
          "seq": 0,
          "table": "recurring_plans",
          "from": "plan_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "recurring_stops": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "plan_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "recurring_plans",
          "from": "plan_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "refunds": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "cancellation_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "amount_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "reference",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "cancellations",
          "from": "cancellation_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "service_approvals": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "service_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "note",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "services",
          "from": "service_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "service_price_details": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "service_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "data",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "services",
          "from": "service_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "services": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "order_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "time_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "label",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "quantity",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "unit",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "price_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "reason",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 10,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "time_entries",
          "from": "time_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "services",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 2,
          "seq": 0,
          "table": "orders",
          "from": "order_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "setup_checks": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "profile_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "program",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "timezone",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "profiles",
          "from": "profile_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "staff_adjustments": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "member_id",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "kind",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "minutes",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "reference",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "staff_documents": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "member_id",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "period",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "label",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "name",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "content",
          "type": "BLOB",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "staff_profiles": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "member_id",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "data",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "staff_profiles",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "staff_schedules": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "member_id",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "effective_from",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "daily_minutes",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "staff_schedules",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "stock_moves": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "article_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "direction",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "quantity",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "project_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "reference",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "projects",
          "from": "project_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "articles",
          "from": "article_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "stock_reservation_events": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "reservation_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "kind",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "quantity",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "reference",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "stock_reservations",
          "from": "reservation_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "stock_reservations": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "article_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "project_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "quantity",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "reference",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "projects",
          "from": "project_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "articles",
          "from": "article_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "time_entries": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "project_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "employee",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "minutes",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "break_minutes",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "note",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "projects",
          "from": "project_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "time_reviews": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "time_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "note",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "time_entries",
          "from": "time_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "trade_decisions": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "share_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "decision",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "name",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "trade_shares",
          "from": "share_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "trade_links": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "program",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "record_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "action",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "result",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "trade_records",
          "from": "record_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "trade_quote_sources": {
      "columns": [
        {
          "cid": 0,
          "name": "quote_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "record_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 2
        },
        {
          "cid": 2,
          "name": "program",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "trade_records",
          "from": "record_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "quotes",
          "from": "quote_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "trade_receipts": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "program",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "request_hash",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "result",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "trade_records": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "program",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "kind",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "project_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "parent_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "document",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "trade_records",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "trade_records",
          "from": "parent_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 2,
          "seq": 0,
          "table": "projects",
          "from": "project_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "trade_settlements": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "purchase_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "sale_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "invoice_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "payment_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "amount_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "payments",
          "from": "payment_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "invoices",
          "from": "invoice_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 2,
          "seq": 0,
          "table": "vehicle_sales",
          "from": "sale_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 3,
          "seq": 0,
          "table": "vehicle_purchases",
          "from": "purchase_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "trade_shares": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "program",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "record_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "customer_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "user_id",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "content",
          "type": "BLOB",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "customers",
          "from": "customer_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "trade_records",
          "from": "record_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "trade_suppliers": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "program",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "document",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "trade_suppliers",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_ad_approvals": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "draft_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_ad_drafts",
          "from": "draft_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_ad_drafts": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "vehicle_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "facts_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "channel",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "title",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "body",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "price_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_facts",
          "from": "facts_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "vehicles",
          "from": "vehicle_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_ad_events": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "draft_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "status",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "provider_reference",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "detail",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_ad_drafts",
          "from": "draft_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_arrivals": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "vehicle_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicles",
          "from": "vehicle_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_case_closures": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "case_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_cases",
          "from": "case_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_cases": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "vehicle_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "label",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "detail",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicles",
          "from": "vehicle_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_contract_acceptances": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "contract_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_contracts",
          "from": "contract_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_contracts": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "vehicle_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "customer_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "snapshot",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "content",
          "type": "BLOB",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "request",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 10,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_contracts",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "customers",
          "from": "customer_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 2,
          "seq": 0,
          "table": "vehicles",
          "from": "vehicle_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_costs": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "vehicle_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "label",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "planned_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actual_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicles",
          "from": "vehicle_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_deliveries": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "sale_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_sales",
          "from": "sale_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_document_jobs": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "source_sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "content",
          "type": "BLOB",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "mime",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "model",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "month",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "vehicle_document_results": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "job_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "status",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "result",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_document_jobs",
          "from": "job_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_facts": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "vehicle_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "facts",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicles",
          "from": "vehicle_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_history_jobs": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "vehicle_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "vin",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "cost_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "config_version",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicles",
          "from": "vehicle_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_history_results": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "job_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "status",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "report_id",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "notes",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "content",
          "type": "BLOB",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_history_jobs",
          "from": "job_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_inspections": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "vehicle_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "kind",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "intake_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "mileage",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "checks",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "ready",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 10,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 11,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_inspections",
          "from": "intake_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "vehicle_inspections",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 2,
          "seq": 0,
          "table": "vehicles",
          "from": "vehicle_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_lead_events": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "lead_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "customer_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "status",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "follow_up",
          "type": "TEXT",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "note",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "customers",
          "from": "customer_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "vehicle_lead_events",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 2,
          "seq": 0,
          "table": "vehicle_leads",
          "from": "lead_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_lead_reads": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "lead_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_leads",
          "from": "lead_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_leads": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "vehicle_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "name",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "email",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "message",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "reference",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicles",
          "from": "vehicle_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_listing_reviews": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "vehicle_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "reviewed_day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_listing_reviews",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "vehicles",
          "from": "vehicle_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_photo_categories": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "vehicle_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "file_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "category",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "private_files",
          "from": "file_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "vehicles",
          "from": "vehicle_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_photo_jobs": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "vehicle_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "file_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "source_sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "preset",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "model",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "month",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "request",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 10,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "private_files",
          "from": "file_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "vehicles",
          "from": "vehicle_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_photo_results": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "job_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "status",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "mime",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "content",
          "type": "BLOB",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "detail",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_photo_jobs",
          "from": "job_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_photo_reviews": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "job_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "decision",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_photo_reviews",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "vehicle_photo_jobs",
          "from": "job_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_photo_slots073": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "vehicle_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "view_name",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "file_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "request",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_photo_slots073",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "private_files",
          "from": "file_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 2,
          "seq": 0,
          "table": "vehicles",
          "from": "vehicle_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_purchases": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "vehicle_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "seller_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "kind",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "related_vehicle_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicles",
          "from": "related_vehicle_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "customers",
          "from": "seller_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 2,
          "seq": 0,
          "table": "vehicles",
          "from": "vehicle_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_radar_details": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "offer_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "hu_until",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_radar_offers",
          "from": "offer_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_radar_imports": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "digest",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "result",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "vehicle_radar_offers": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "url",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "channel",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "brand",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "model",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "variant",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "body_type",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "fuel",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "transmission",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 10,
          "name": "condition_group",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 11,
          "name": "registration_year",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 12,
          "name": "mileage",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 13,
          "name": "price_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 14,
          "name": "observed_day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 15,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 16,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 17,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_radar_offers",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_radar_searches": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "name",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "brand",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "body_type",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "band",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_radar_searches",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_records": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "vehicle_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "data",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_records",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "vehicles",
          "from": "vehicle_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_releases": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "reservation_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "reason",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_reservations",
          "from": "reservation_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_removals": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "vehicle_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "reason",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicles",
          "from": "vehicle_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_reservations": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "vehicle_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "customer_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "until_day",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "note",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "customers",
          "from": "customer_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "vehicles",
          "from": "vehicle_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_sale_checks": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "sale_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "inspection_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_inspections",
          "from": "inspection_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "vehicle_sales",
          "from": "sale_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_sale_tax": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "sale_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "vat",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_sales",
          "from": "sale_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_sales": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "vehicle_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "customer_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "order_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "service_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "price_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "tax_case",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 8,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 9,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "services",
          "from": "service_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "orders",
          "from": "order_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 2,
          "seq": 0,
          "table": "customers",
          "from": "customer_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 3,
          "seq": 0,
          "table": "vehicles",
          "from": "vehicle_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_testdrive_calendars": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "testdrive_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "calendar_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "calendar_entries",
          "from": "calendar_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "vehicle_testdrives",
          "from": "testdrive_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_testdrive_returns": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "testdrive_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "km_in",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_testdrives",
          "from": "testdrive_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_testdrives": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "vehicle_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "customer_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "starts",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "ends",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "km_out",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "customers",
          "from": "customer_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "vehicles",
          "from": "vehicle_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_vin_jobs": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "vin",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "provider",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "month",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "vehicle_vin_results": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "job_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "status",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "result",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_vin_jobs",
          "from": "job_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_workshop": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "vehicle_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "label",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "due",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "planned_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicles",
          "from": "vehicle_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_workshop_assignments": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "workshop_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "employee",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "active",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "due",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "instructions",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_workshop_assignments",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "vehicle_workshop",
          "from": "workshop_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_workshop_completions": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "workshop_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "cost_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "minutes",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_costs",
          "from": "cost_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "vehicle_workshop",
          "from": "workshop_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicle_workshop_reports": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "assignment_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "minutes",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "work",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "rest",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "ready",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "reference",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "vehicle_workshop_assignments",
          "from": "assignment_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "vehicles": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "vin",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "brand",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "model",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "mileage",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "purchase_cents",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 7,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "window_profiles": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "supplier_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "document",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "sha256",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "window_profiles",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "window_suppliers": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "supplier_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "name",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "enabled",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "proof",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "workspace_invoice_revisions": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "invoice_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "invoices",
          "from": "invoice_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "invoices",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "workspace_publications": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "record_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "quote_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "quotes",
          "from": "quote_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "workspace_records",
          "from": "record_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "workspace_quote_invoices": {
      "columns": [
        {
          "cid": 0,
          "name": "quote_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "record_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "invoice_id",
          "type": "INTEGER",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "invoices",
          "from": "invoice_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 1,
          "seq": 0,
          "table": "workspace_records",
          "from": "record_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        },
        {
          "id": 2,
          "seq": 0,
          "table": "quotes",
          "from": "quote_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    },
    "workspace_receipts": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "program",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "request_key",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "digest",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "result",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        }
      ],
      "foreign_keys": []
    },
    "workspace_records": {
      "columns": [
        {
          "cid": 0,
          "name": "id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 1
        },
        {
          "cid": 1,
          "name": "previous_id",
          "type": "INTEGER",
          "notnull": 0,
          "default": null,
          "pk": 0
        },
        {
          "cid": 2,
          "name": "program",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 3,
          "name": "kind",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 4,
          "name": "document",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 5,
          "name": "actor",
          "type": "TEXT",
          "notnull": 1,
          "default": null,
          "pk": 0
        },
        {
          "cid": 6,
          "name": "created",
          "type": "TEXT",
          "notnull": 1,
          "default": "CURRENT_TIMESTAMP",
          "pk": 0
        }
      ],
      "foreign_keys": [
        {
          "id": 0,
          "seq": 0,
          "table": "workspace_records",
          "from": "previous_id",
          "to": "id",
          "on_update": "NO ACTION",
          "on_delete": "NO ACTION",
          "match": "NONE"
        }
      ]
    }
  }
}
