how can I merge 3 users tables into 1 user table and my old php code will work? [closed]

I have 3 users tables in MARIADB and I need to merge it into 1 to have only id,name,email,password and for each user category new ralation table with aditional informations.

CREATE TABLE admin_wp.mlm_user (
  id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT ,
  code VARCHAR(20) NOT NULL ,
  status_wi TINYINT(4) UNSIGNED NOT NULL DEFAULT 0,
  id_wi BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
  leader TINYINT(4) UNSIGNED NOT NULL DEFAULT 0 ,
  mail VARCHAR(255) NOT NULL ,
  password VARCHAR(255) NOT NULL ,
  status TINYINT(4) UNSIGNED NOT NULL DEFAULT 1 ,
  login VARCHAR(255) DEFAULT '',
  role ENUM('director','administrator','user','company') DEFAULT 'user',
  utv VARCHAR(255) NOT NULL,
  utv_id BIGINT(20) UNSIGNED NOT NULL,
  crd1 TINYINT(4) UNSIGNED NOT NULL DEFAULT 0,
  crd2 TINYINT(4) UNSIGNED NOT NULL DEFAULT 0,
  crd3 TINYINT(4) UNSIGNED NOT NULL DEFAULT 0,
  password_original VARCHAR(255) NOT NULL DEFAULT '',
  kontakt INT(11) DEFAULT NULL,
  inVillage INT(4) DEFAULT NULL,
  card_info VARCHAR(255) DEFAULT NULL,
  show_phone TINYINT(4) DEFAULT 0,
  show_email TINYINT(4) DEFAULT 0,
  PRIMARY KEY (id)
);

CREATE TABLE admin_wp.village_companies (
  id BIGINT(20) NOT NULL AUTO_INCREMENT,
  name VARCHAR(100) NOT NULL,
  nip VARCHAR(255) NOT NULL,
  address VARCHAR(100) NOT NULL,
  id_v BIGINT(20) NOT NULL,
  user_name VARCHAR(100) NOT NULL,
  user_lastname VARCHAR(100) NOT NULL,
  phone INT(11) NOT NULL,
  email VARCHAR(100) NOT NULL,
  password VARCHAR(100) NOT NULL,
  catalog_province BIGINT(20) DEFAULT 0,
  catalog_region BIGINT(20) DEFAULT 0,
  catalog_gmina VARCHAR(255) DEFAULT '',
  catalog_village BIGINT(20) DEFAULT 0,
  workers VARCHAR(255) DEFAULT NULL,
  form VARCHAR(255) DEFAULT NULL,
  bio MEDIUMTEXT DEFAULT NULL,
  avatar VARCHAR(255) DEFAULT NULL,
  adr_id_wo BIGINT(20) DEFAULT NULL,
  adr_id_po BIGINT(20) DEFAULT NULL,
  worker VARCHAR(255) DEFAULT NULL,
  show_email TINYINT(4) DEFAULT 1,
  show_phone TINYINT(4) DEFAULT 1,
  show_user_name TINYINT(4) DEFAULT 1,
  w_text MEDIUMTEXT DEFAULT NULL,
  id_v_register BIGINT(20) DEFAULT NULL,
  type_d VARCHAR(255) DEFAULT NULL,
  w_slug VARCHAR(255) DEFAULT NULL,
  points INT(11) DEFAULT 0,
  user_type VARCHAR(255) DEFAULT NULL,
  location_id VARCHAR(255) DEFAULT NULL,
  code VARCHAR(255) DEFAULT NULL,
  PRIMARY KEY (id)
);

CREATE TABLE admin_wp.pp_users_list (
  id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  status TINYINT(4) UNSIGNED NOT NULL DEFAULT 1,
  user_name VARCHAR(255) NOT NULL,
  phone VARCHAR(255) NOT NULL,
  address VARCHAR(255) NOT NULL,
  login VARCHAR(255) NOT NULL,
  password VARCHAR(255) NOT NULL,
  comment TEXT NOT NULL,
  role TINYINT(4) UNSIGNED NOT NULL DEFAULT 0,
  id_wi INT(10) UNSIGNED NOT NULL DEFAULT 0,
  confirmation TINYINT(4) UNSIGNED NOT NULL DEFAULT 0,
  forum_status INT(11) UNSIGNED ZEROFILL DEFAULT NULL,
  in_team TINYINT(4) DEFAULT NULL,
  team_role VARCHAR(100) DEFAULT NULL,
  show_email TINYINT(4) DEFAULT 0,
  show_phone TINYINT(4) DEFAULT 0,
  can_edit TINYINT(4) DEFAULT 0,
  show_team TINYINT(4) DEFAULT 0,
  add_landing TINYINT(4) DEFAULT 0,
  PRIMARY KEY (id)
);

I need to somehow merge this 3 tables into 1 and relations to work , php code to work without changing it (insert,update, select).Maybe something with table views but I dont know what to do with relations. Is this posible ? Please help.