[
  {
    "type": "create_table",
    "description": "Create mobileSignInPushSubscriptions table for Web Push notifications (PRD Feature 16)",
    "database": "{{store}}",
    "check_query": "SHOW TABLES LIKE 'mobileSignInPushSubscriptions'",
    "sql": "CREATE TABLE `mobileSignInPushSubscriptions` (\n  `id` INT UNSIGNED NOT NULL AUTO_INCREMENT,\n  `sessionToken` VARCHAR(36) NOT NULL COMMENT 'References mobileSignInSessions.sessionToken',\n  `endpoint` VARCHAR(512) NOT NULL COMMENT 'Push service endpoint URL',\n  `p256dhKey` VARCHAR(128) NOT NULL COMMENT 'P-256 Diffie-Hellman public key',\n  `authKey` VARCHAR(64) NOT NULL COMMENT 'Authentication secret',\n  `createdAt` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,\n  PRIMARY KEY (`id`),\n  UNIQUE INDEX `idx_session_token` (`sessionToken`),\n  INDEX `idx_created_at` (`createdAt`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Web Push subscriptions for mobile sign-in status page'"
  }
]
