INSERT IGNORE INTO `user_assets` (`user_id`, `asset_type`, `asset_id`, `source`, `metadata`, `acquired_at`)
SELECT
  `user_id`,
  'skin' AS `asset_type`,
  `skin_id` AS `asset_id`,
  `source`,
  NULL AS `metadata`,
  `created_at` AS `acquired_at`
FROM `user_skins`;

INSERT IGNORE INTO `user_assets` (`user_id`, `asset_type`, `asset_id`, `source`, `metadata`, `acquired_at`)
SELECT
  `user_id`,
  'room_decor' AS `asset_type`,
  `decor_id` AS `asset_id`,
  `source`,
  NULL AS `metadata`,
  `created_at` AS `acquired_at`
FROM `user_room_decors`;

INSERT IGNORE INTO `room_decor_placements` (
  `user_id`,
  `decor_id`,
  `placed`,
  `position_x`,
  `position_y`,
  `scale`,
  `z_index`,
  `created_at`,
  `updated_at`
)
SELECT
  `user_id`,
  `decor_id`,
  `placed`,
  `position_x`,
  `position_y`,
  `scale`,
  `z_index`,
  `created_at`,
  `updated_at`
FROM `user_room_decors`;
