-- 계정별 · 메뉴별 글자크기(zoom %) 저장
-- 실행: mysql --default-character-set=utf8mb4 -u USER -p DBNAME < writable/database/member_menu_font_scale.sql

SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci;

CREATE TABLE IF NOT EXISTS `member_menu_font_scale` (
  `mmf_idx`      INT UNSIGNED NOT NULL AUTO_INCREMENT,
  `mmf_mb_idx`   INT UNSIGNED NOT NULL,
  `mmf_menu_key` VARCHAR(191) NOT NULL,
  `mmf_scale`    SMALLINT UNSIGNED NOT NULL DEFAULT 100,
  `mmf_updated`  DATETIME NOT NULL,
  PRIMARY KEY (`mmf_idx`),
  UNIQUE KEY `uk_mb_menu` (`mmf_mb_idx`, `mmf_menu_key`),
  KEY `idx_mb` (`mmf_mb_idx`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
