-- AlterTable: add device context columns to analytics_event_log
ALTER TABLE "analytics_event_log"
  ADD COLUMN "device_brand" VARCHAR(64),
  ADD COLUMN "device_model" VARCHAR(64),
  ADD COLUMN "device_os"    VARCHAR(32),
  ADD COLUMN "app_version"  VARCHAR(32),
  ADD COLUMN "locale"       VARCHAR(16);

-- CreateIndex
CREATE INDEX "idx_event_log_device_brand" ON "analytics_event_log"("device_brand");
CREATE INDEX "idx_event_log_app_version"  ON "analytics_event_log"("app_version");
