-- v4.0.2：主合伙人记住所选活动图（空=仅二维码）

ALTER TABLE `partner_account`
  ADD COLUMN `activity_poster_id` BIGINT UNSIGNED DEFAULT NULL AFTER `assoc_qrcode_resource_id`,
  ADD KEY `idx_partner_account_activity_poster` (`activity_poster_id`);

ALTER TABLE `partner_account`
  ADD CONSTRAINT `fk_partner_account_activity_poster`
  FOREIGN KEY (`activity_poster_id`) REFERENCES `activity_poster`(`id`) ON DELETE SET NULL;
