-- [TSM.ID].[11031972] — All Rights Reserved. Proprietary & Confidential.
-- Migration: Tambahkan fitur Guest Access ke system_features
-- Jalankan: psql -U <user> -d <db> -f add_guest_features.sql

INSERT INTO system_features (module, key, name, description, default_state)
VALUES 
  ('XCU', 'jvc.guest_access', 'Guest Access (Zoom-Like)', 'Mengizinkan tamu masuk tanpa login. Tamu mendapat JWT terbatas (tanpa host controls, tanpa recording, tanpa screen share).', 'UPSELL'),
  ('XCU', 'jvc.guest_duration_hours', 'Guest Session Duration (Jam)', 'Durasi sesi tamu dalam jam. Default: 2 jam. Range: 0.5 - 24 jam. Admin/Host dapat mengatur. Isi angka: 0.5, 1, 2, 4, 8, 12, 24.', 'UPSELL')
ON CONFLICT (key) DO NOTHING;
