-- plans seed（free/pro/team）
INSERT INTO plans (code, max_devices, daily_minutes, ad_gate) VALUES
  ('free', 1,  10,   1),
  ('pro',  5,  NULL, 0),
  ('team', 10, NULL, 0)
ON CONFLICT(code) DO UPDATE SET
  max_devices   = excluded.max_devices,
  daily_minutes = excluded.daily_minutes,
  ad_gate       = excluded.ad_gate;

-- directory_version 单例初始化
INSERT INTO directory_version (id, version) VALUES (1, 1)
ON CONFLICT(id) DO UPDATE SET version = excluded.version;
