-- ======================
-- STORAGE: File
-- ======================
CREATE TABLE "unified_storage_file" (
  "unified_connection_id"  VARCHAR NOT NULL,
  "unified_webhook_id"     VARCHAR NOT NULL,
  "unified_external_xref"  VARCHAR,
  "unified_integration_type" VARCHAR NOT NULL,
  "unified_raw_id"         VARCHAR,
  "unified_id"             VARCHAR NOT NULL,
  "id"                     VARCHAR,
  "created_at"             TIMESTAMP_NTZ,
  "updated_at"             TIMESTAMP_NTZ,
  "name"                   VARCHAR,
  "description"            VARCHAR,
  "parent_id"              VARCHAR,
  "user_id"                VARCHAR,
  "size"                   FLOAT,
  "type"                   VARCHAR,
  "mime_type"              VARCHAR,
  "permissions"            VARIANT,
  "download_url"           VARCHAR,
  "hash"                   VARCHAR,
  "data"                   VARCHAR,
  "version"                VARCHAR,
  "web_url"                VARCHAR,
  "references"             VARIANT,
  "raw"                    VARIANT,
  UNIQUE ("unified_connection_id", "unified_id")
);
