INSERT INTO orders (id, consumer_id, player_id, shop_id, service_snapshot, status, total_price, note) VALUES
  (100001, 100006, 100001, 100001,
   '{"serviceId":100001,"title":"LOL 钻石上分","price":99.00,"unit":"段","gameName":"英雄联盟"}'::jsonb,
   'completed', 99.00, '希望快点上分'),
  (100002, 100006, 100002, 100001,
   '{"serviceId":100004,"title":"LOL 大师冲击","price":199.00,"unit":"段","gameName":"英雄联盟"}'::jsonb,
   'in_progress', 199.00, '大师冲宗师'),
  (100003, 100007, 100003, 100002,
   '{"serviceId":100006,"title":"VALORANT 不朽上分","price":150.00,"unit":"段","gameName":"VALORANT"}'::jsonb,
   'pending_accept', 150.00, null),
  (100004, 100007, 100001, 100001,
   '{"serviceId":100002,"title":"LOL 排位陪玩","price":30.00,"unit":"局","gameName":"英雄联盟"}'::jsonb,
   'completed', 30.00, '陪玩两局'),
  (100005, 100006, 100004, 100003,
   '{"serviceId":100010,"title":"原神深渊代打","price":80.00,"unit":"次","gameName":"原神"}'::jsonb,
   'pending_payment', 80.00, '深渊满星');

INSERT INTO order_state_logs (id, order_id, from_status, to_status, action, actor_id, actor_role) VALUES
  (100001, 100001, null,              'pending_payment', 'create',  100006, 'consumer'),
  (100002, 100001, 'pending_payment', 'pending_accept',  'pay',     100006, 'consumer'),
  (100003, 100001, 'pending_accept',  'in_progress',     'accept',  100001, 'player'),
  (100004, 100001, 'in_progress',     'pending_close',   'finish',  100001, 'player'),
  (100005, 100001, 'pending_close',   'completed',       'confirm', 100006, 'consumer'),
  (100006, 100002, null,              'pending_payment', 'create',  100006, 'consumer'),
  (100007, 100002, 'pending_payment', 'pending_accept',  'pay',     100006, 'consumer'),
  (100008, 100002, 'pending_accept',  'in_progress',     'accept',  100002, 'player'),
  (100009, 100003, null,              'pending_payment', 'create',  100007, 'consumer'),
  (100010, 100003, 'pending_payment', 'pending_accept',  'pay',     100007, 'consumer'),
  (100011, 100004, null,              'pending_payment', 'create',  100007, 'consumer'),
  (100012, 100004, 'pending_payment', 'pending_accept',  'pay',     100007, 'consumer'),
  (100013, 100004, 'pending_accept',  'in_progress',     'accept',  100001, 'player'),
  (100014, 100004, 'in_progress',     'pending_close',   'finish',  100001, 'player'),
  (100015, 100004, 'pending_close',   'completed',       'confirm', 100007, 'consumer'),
  (100016, 100005, null,              'pending_payment', 'create',  100006, 'consumer');
