BEGIN;

INSERT INTO fifo_stock_v2_flag_members(flag_name, flag_group_code, priority, is_active, created_at, updated_at)
VALUES
    ('AYAM', 'AYAM', 5, TRUE, NOW(), NOW())
ON CONFLICT (flag_name) DO UPDATE
SET
    flag_group_code = EXCLUDED.flag_group_code,
    priority = EXCLUDED.priority,
    is_active = TRUE,
    updated_at = NOW();

COMMIT;
