CREATE TRIGGER `users_trigger` BEFORE DELETE ON `users`
 FOR EACH ROW INSERT INTO `1323_drawing_widget_triggers`.`users`(`id`, `first_name`, `last_name`, `full_name`, `email`, `password`, `referral_code`, `profile_pic`, `signup_type`, `social_id`, `google_id`, `apple_id`, `is_email_verified`, `email_verification_code`, `is_profile_completed`, `is_active`, `email_verified_at`, `created_at`, `updated_at`, `phone`, `country_code`) VALUES (old.`id`,old. `first_name`,old. `last_name`,old. `full_name`,old. `email`,old. `password`,old. `referral_code`,old. `profile_pic`,old. `signup_type`,old. `social_id`,old. `google_id`,old. `apple_id`,old. `is_email_verified`,old. `email_verification_code`,old. `is_profile_completed`,old. `is_active`,old. `email_verified_at`,old. `created_at`,old. `updated_at`,old. `phone`,old. `country_code`);


CREATE TRIGGER `login_history_trigger` BEFORE DELETE ON `login_history`
 FOR EACH ROW INSERT INTO `1323_drawing_widget_triggers`.`login_history`(`id`, `user_id`, `device_unique_id`, `device_token`, `auth_key`, `device_type`, `device_name`, `app_version`, `login_ip`, `logout_ip`, `login_at`, `logout_at`) VALUES (old.`id`, old.`user_id`, old.`device_unique_id`, old.`device_token`, old.`auth_key`, old.`device_type`, old.`device_name`, old.`app_version`, old.`login_ip`, old.`logout_ip`, old.`login_at`, old.`logout_at`)

CREATE TRIGGER `friend_history_trigger` BEFORE DELETE ON `friend_history`
 FOR EACH ROW INSERT INTO `1323_drawing_widget_triggers`.`friend_history`(`id`, `user_id`, `friend_id`, `status`, `request_sent_at`, `request_accepted_at`, `is_deleted`) VALUES (old.`id`, old.`user_id`, old.`friend_id`, old.`status`, old.`request_sent_at`, old.`request_accepted_at`, old.`is_deleted`)

CREATE TRIGGER `friend_widget_trigger` BEFORE DELETE ON `friends_widget`
 FOR EACH ROW INSERT INTO `1323_drawing_widget_triggers`.`friends_widget`(`id`, `sender_id`, `receiver_id`, `image`, `is_deleted_from`, `is_deleted_to`, `created_at`, `updated_at`) VALUES (old.`id`, old.`sender_id`, old.`receiver_id`, old.`image`, old.`is_deleted_from`, old.`is_deleted_to`, old.`created_at`, old.`updated_at`)
