BEGIN;

UPDATE pricing_packages
SET is_active = false
WHERE package_type = 'TRACECOIN_BUNDLE'
  AND role_key IN (
    'COMPANY',
    'CUSTOMER',
    'PHOTOGRAPHER',
    'MAKEUP_ARTIST',
    'TUTOR',
    'DEVELOPER',
    'VIDEO_EDITOR',
    'GRAPHIC_DESIGNER',
    'SOCIAL_MEDIA_MANAGER',
    'FITNESS_TRAINER',
    'CATERING_SERVICES',
    'UGC_CONTENT_CREATOR'
  );

INSERT INTO pricing_packages (name, role_key, package_type, tracecoins_amount, price_inr, description, is_active)
VALUES
  ('Company Starter', 'COMPANY', 'TRACECOIN_BUNDLE', 550, 499, '550 Tracecoins total (500 base + 50 bonus). Valid for 60 days.', true),
  ('Company Growth', 'COMPANY', 'TRACECOIN_BUNDLE', 1150, 999, '1,150 Tracecoins total (1,000 base + 150 bonus). Valid for 90 days.', true),
  ('Company Pro', 'COMPANY', 'TRACECOIN_BUNDLE', 2400, 1999, '2,400 Tracecoins total (2,000 base + 400 bonus). Valid for 120 days.', true),
  ('Company Business', 'COMPANY', 'TRACECOIN_BUNDLE', 6250, 4999, '6,250 Tracecoins total (5,000 base + 1,250 bonus). Valid for 180 days.', true),
  ('Company Enterprise', 'COMPANY', 'TRACECOIN_BUNDLE', 13000, 9999, '13,000 Tracecoins total (10,000 base + 3,000 bonus). Valid for 365 days.', true),

  ('Customer Starter', 'CUSTOMER', 'TRACECOIN_BUNDLE', 200, 199, '200 Tracecoins total (200 base + 0 bonus). Valid for 30 days.', true),
  ('Customer Basic', 'CUSTOMER', 'TRACECOIN_BUNDLE', 550, 499, '550 Tracecoins total (500 base + 50 bonus). Valid for 60 days.', true),
  ('Customer Growth', 'CUSTOMER', 'TRACECOIN_BUNDLE', 1150, 999, '1,150 Tracecoins total (1,000 base + 150 bonus). Valid for 90 days.', true),
  ('Customer Pro', 'CUSTOMER', 'TRACECOIN_BUNDLE', 2400, 1999, '2,400 Tracecoins total (2,000 base + 400 bonus). Valid for 120 days.', true),
  ('Customer Business', 'CUSTOMER', 'TRACECOIN_BUNDLE', 6250, 4999, '6,250 Tracecoins total (5,000 base + 1,250 bonus). Valid for 180 days.', true),

  ('Photographer Starter', 'PHOTOGRAPHER', 'TRACECOIN_BUNDLE', 300, 299, '300 Tracecoins total (300 base + 0 bonus). Valid for 30 days.', true),
  ('Photographer Growth', 'PHOTOGRAPHER', 'TRACECOIN_BUNDLE', 1150, 999, '1,150 Tracecoins total (1,000 base + 150 bonus). Valid for 90 days.', true),
  ('Photographer Pro', 'PHOTOGRAPHER', 'TRACECOIN_BUNDLE', 2400, 1999, '2,400 Tracecoins total (2,000 base + 400 bonus). Valid for 120 days.', true),
  ('Photographer Business', 'PHOTOGRAPHER', 'TRACECOIN_BUNDLE', 6250, 4999, '6,250 Tracecoins total (5,000 base + 1,250 bonus). Valid for 180 days.', true),

  ('Makeup Starter', 'MAKEUP_ARTIST', 'TRACECOIN_BUNDLE', 300, 299, '300 Tracecoins total (300 base + 0 bonus). Valid for 30 days.', true),
  ('Makeup Growth', 'MAKEUP_ARTIST', 'TRACECOIN_BUNDLE', 1150, 999, '1,150 Tracecoins total (1,000 base + 150 bonus). Valid for 90 days.', true),
  ('Makeup Pro', 'MAKEUP_ARTIST', 'TRACECOIN_BUNDLE', 2400, 1999, '2,400 Tracecoins total (2,000 base + 400 bonus). Valid for 120 days.', true),
  ('Makeup Business', 'MAKEUP_ARTIST', 'TRACECOIN_BUNDLE', 6250, 4999, '6,250 Tracecoins total (5,000 base + 1,250 bonus). Valid for 180 days.', true),

  ('Tutor Starter', 'TUTOR', 'TRACECOIN_BUNDLE', 200, 199, '200 Tracecoins total (200 base + 0 bonus). Valid for 30 days.', true),
  ('Tutor Growth', 'TUTOR', 'TRACECOIN_BUNDLE', 550, 499, '550 Tracecoins total (500 base + 50 bonus). Valid for 60 days.', true),
  ('Tutor Pro', 'TUTOR', 'TRACECOIN_BUNDLE', 1150, 999, '1,150 Tracecoins total (1,000 base + 150 bonus). Valid for 90 days.', true),
  ('Tutor Business', 'TUTOR', 'TRACECOIN_BUNDLE', 2400, 1999, '2,400 Tracecoins total (2,000 base + 400 bonus). Valid for 120 days.', true),

  ('Developer Starter', 'DEVELOPER', 'TRACECOIN_BUNDLE', 550, 499, '550 Tracecoins total (500 base + 50 bonus). Valid for 60 days.', true),
  ('Developer Growth', 'DEVELOPER', 'TRACECOIN_BUNDLE', 1150, 999, '1,150 Tracecoins total (1,000 base + 150 bonus). Valid for 90 days.', true),
  ('Developer Pro', 'DEVELOPER', 'TRACECOIN_BUNDLE', 2400, 1999, '2,400 Tracecoins total (2,000 base + 400 bonus). Valid for 120 days.', true),
  ('Developer Business', 'DEVELOPER', 'TRACECOIN_BUNDLE', 6250, 4999, '6,250 Tracecoins total (5,000 base + 1,250 bonus). Valid for 180 days.', true),
  ('Developer Enterprise', 'DEVELOPER', 'TRACECOIN_BUNDLE', 13000, 9999, '13,000 Tracecoins total (10,000 base + 3,000 bonus). Valid for 365 days.', true),

  ('Video Editor Starter', 'VIDEO_EDITOR', 'TRACECOIN_BUNDLE', 300, 299, '300 Tracecoins total (300 base + 0 bonus). Valid for 30 days.', true),
  ('Video Editor Growth', 'VIDEO_EDITOR', 'TRACECOIN_BUNDLE', 1150, 999, '1,150 Tracecoins total (1,000 base + 150 bonus). Valid for 90 days.', true),
  ('Video Editor Pro', 'VIDEO_EDITOR', 'TRACECOIN_BUNDLE', 2400, 1999, '2,400 Tracecoins total (2,000 base + 400 bonus). Valid for 120 days.', true),
  ('Video Editor Business', 'VIDEO_EDITOR', 'TRACECOIN_BUNDLE', 6250, 4999, '6,250 Tracecoins total (5,000 base + 1,250 bonus). Valid for 180 days.', true),

  ('Graphic Designer Starter', 'GRAPHIC_DESIGNER', 'TRACECOIN_BUNDLE', 300, 299, '300 Tracecoins total (300 base + 0 bonus). Valid for 30 days.', true),
  ('Graphic Designer Growth', 'GRAPHIC_DESIGNER', 'TRACECOIN_BUNDLE', 1150, 999, '1,150 Tracecoins total (1,000 base + 150 bonus). Valid for 90 days.', true),
  ('Graphic Designer Pro', 'GRAPHIC_DESIGNER', 'TRACECOIN_BUNDLE', 2400, 1999, '2,400 Tracecoins total (2,000 base + 400 bonus). Valid for 120 days.', true),
  ('Graphic Designer Business', 'GRAPHIC_DESIGNER', 'TRACECOIN_BUNDLE', 6250, 4999, '6,250 Tracecoins total (5,000 base + 1,250 bonus). Valid for 180 days.', true),

  ('SMM Starter', 'SOCIAL_MEDIA_MANAGER', 'TRACECOIN_BUNDLE', 300, 299, '300 Tracecoins total (300 base + 0 bonus). Valid for 30 days.', true),
  ('SMM Growth', 'SOCIAL_MEDIA_MANAGER', 'TRACECOIN_BUNDLE', 1150, 999, '1,150 Tracecoins total (1,000 base + 150 bonus). Valid for 90 days.', true),
  ('SMM Pro', 'SOCIAL_MEDIA_MANAGER', 'TRACECOIN_BUNDLE', 2400, 1999, '2,400 Tracecoins total (2,000 base + 400 bonus). Valid for 120 days.', true),
  ('SMM Business', 'SOCIAL_MEDIA_MANAGER', 'TRACECOIN_BUNDLE', 6250, 4999, '6,250 Tracecoins total (5,000 base + 1,250 bonus). Valid for 180 days.', true),

  ('Fitness Starter', 'FITNESS_TRAINER', 'TRACECOIN_BUNDLE', 200, 199, '200 Tracecoins total (200 base + 0 bonus). Valid for 30 days.', true),
  ('Fitness Growth', 'FITNESS_TRAINER', 'TRACECOIN_BUNDLE', 550, 499, '550 Tracecoins total (500 base + 50 bonus). Valid for 60 days.', true),
  ('Fitness Pro', 'FITNESS_TRAINER', 'TRACECOIN_BUNDLE', 1150, 999, '1,150 Tracecoins total (1,000 base + 150 bonus). Valid for 90 days.', true),
  ('Fitness Business', 'FITNESS_TRAINER', 'TRACECOIN_BUNDLE', 2400, 1999, '2,400 Tracecoins total (2,000 base + 400 bonus). Valid for 120 days.', true),

  ('Catering Starter', 'CATERING_SERVICES', 'TRACECOIN_BUNDLE', 550, 499, '550 Tracecoins total (500 base + 50 bonus). Valid for 60 days.', true),
  ('Catering Growth', 'CATERING_SERVICES', 'TRACECOIN_BUNDLE', 1150, 999, '1,150 Tracecoins total (1,000 base + 150 bonus). Valid for 90 days.', true),
  ('Catering Pro', 'CATERING_SERVICES', 'TRACECOIN_BUNDLE', 2400, 1999, '2,400 Tracecoins total (2,000 base + 400 bonus). Valid for 120 days.', true),
  ('Catering Business', 'CATERING_SERVICES', 'TRACECOIN_BUNDLE', 6250, 4999, '6,250 Tracecoins total (5,000 base + 1,250 bonus). Valid for 180 days.', true),
  ('Catering Enterprise', 'CATERING_SERVICES', 'TRACECOIN_BUNDLE', 13000, 9999, '13,000 Tracecoins total (10,000 base + 3,000 bonus). Valid for 365 days.', true),

  ('UGC Starter', 'UGC_CONTENT_CREATOR', 'TRACECOIN_BUNDLE', 300, 299, '300 Tracecoins total (300 base + 0 bonus). Valid for 30 days.', true),
  ('UGC Growth', 'UGC_CONTENT_CREATOR', 'TRACECOIN_BUNDLE', 1150, 999, '1,150 Tracecoins total (1,000 base + 150 bonus). Valid for 90 days.', true),
  ('UGC Pro', 'UGC_CONTENT_CREATOR', 'TRACECOIN_BUNDLE', 2400, 1999, '2,400 Tracecoins total (2,000 base + 400 bonus). Valid for 120 days.', true),
  ('UGC Business', 'UGC_CONTENT_CREATOR', 'TRACECOIN_BUNDLE', 6250, 4999, '6,250 Tracecoins total (5,000 base + 1,250 bonus). Valid for 180 days.', true);

COMMIT;
