-- phpMyAdmin SQL Dump
-- version 4.7.7
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Oct 24, 2018 at 03:37 PM
-- Server version: 10.1.36-MariaDB-cll-lve
-- PHP Version: 5.6.30

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `test_netmlmpro`
--

-- --------------------------------------------------------

--
-- Table structure for table `mlmadminusers`
--

CREATE TABLE `mlmadminusers` (
  `userid` int(11) NOT NULL,
  `username` varchar(50) NOT NULL DEFAULT 'NA',
  `firstname` varchar(50) NOT NULL DEFAULT 'NA',
  `lastname` varchar(50) NOT NULL DEFAULT 'NA',
  `middlename` varchar(50) NOT NULL DEFAULT 'NA',
  `emailaddress` varchar(50) NOT NULL,
  `password` varchar(255) NOT NULL,
  `role` varchar(50) NOT NULL DEFAULT 'Admin',
  `passport` varchar(255) NOT NULL DEFAULT 'avatar.jpg',
  `phoneno` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `activationcode` int(11) NOT NULL DEFAULT '0',
  `datecreated` date NOT NULL DEFAULT '0000-00-00',
  `lastlogindate` date NOT NULL DEFAULT '0000-00-00',
  `lastupdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `mlmadminusers`
--

INSERT INTO `mlmadminusers` (`userid`, `username`, `firstname`, `lastname`, `middlename`, `emailaddress`, `password`, `role`, `passport`, `phoneno`, `status`, `activationcode`, `datecreated`, `lastlogindate`, `lastupdate`) VALUES
(1, 'admin', 'admin', 'admin', 'NA', 'info@admin.com', 'fb44f7e439a1b7a56dcc9a8743fb13b0', 'Master Admin', '', '12345678901', 1, 0, '2018-01-22', '0000-00-00', '2018-10-14 18:04:35');

-- --------------------------------------------------------

--
-- Table structure for table `mlmbonus`
--

CREATE TABLE `mlmbonus` (
  `bonusid` int(11) NOT NULL,
  `bonustype` varchar(50) NOT NULL,
  `bonusdescription` varchar(255) DEFAULT NULL,
  `bonusstage` varchar(50) NOT NULL,
  `bonusamount` double(10,2) NOT NULL DEFAULT '0.00'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `mlmcountries`
--

CREATE TABLE `mlmcountries` (
  `countryid` int(11) NOT NULL,
  `countrycode` varchar(5) NOT NULL DEFAULT 'NA',
  `countryname` varchar(255) NOT NULL DEFAULT 'NA'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `mlmcountries`
--

INSERT INTO `mlmcountries` (`countryid`, `countrycode`, `countryname`) VALUES
(1, 'AD', 'Andorra'),
(2, 'AE', 'United Arab Emirates'),
(3, 'AF', 'Afghanistan'),
(4, 'AG', 'Antigua and Barbuda'),
(5, 'AI', 'Anguilla'),
(6, 'AL', 'Albania'),
(7, 'AM', 'Armenia'),
(8, 'AN', 'Netherlands Antilles'),
(9, 'AO', 'Angola'),
(10, 'AQ', 'Antarctica'),
(11, 'AR', 'Argentina'),
(12, 'AS', 'American Samoa'),
(13, 'AT', 'Austria'),
(14, 'AU', 'Australia'),
(15, 'AW', 'Aruba'),
(16, 'AZ', 'Azerbaijan'),
(17, 'BA', 'Bosnia and Herzegovina'),
(18, 'BB', 'Barbados'),
(19, 'BD', 'Bangladesh'),
(20, 'BE', 'Belgium'),
(21, 'BF', 'Burkina Faso'),
(22, 'BG', 'Bulgaria'),
(23, 'BH', 'Bahrain'),
(24, 'BI', 'Burundi'),
(25, 'BJ', 'Benin'),
(26, 'BM', 'Bermuda'),
(27, 'BN', 'Brunei'),
(28, 'BO', 'Bolivia'),
(29, 'BR', 'Brazil'),
(30, 'BS', 'Bahamas'),
(31, 'BT', 'Bhutan'),
(32, 'BV', 'Bouvet Island'),
(33, 'BW', 'Botswana'),
(34, 'BY', 'Belarus'),
(35, 'BZ', 'Belize'),
(36, 'CA', 'Canada'),
(37, 'CC', 'Cocos [Keeling] Islands'),
(38, 'CD', 'Congo [DRC]'),
(39, 'CF', 'Central African Republic'),
(40, 'CG', 'Congo [Republic]'),
(41, 'CH', 'Switzerland'),
(42, 'CI', 'C?te d\'Ivoire'),
(43, 'CK', 'Cook Islands'),
(44, 'CL', 'Chile'),
(45, 'CM', 'Cameroon'),
(46, 'CN', 'China'),
(47, 'CO', 'Colombia'),
(48, 'CR', 'Costa Rica'),
(49, 'CU', 'Cuba'),
(50, 'CV', 'Cape Verde'),
(51, 'CX', 'Christmas Island'),
(52, 'CY', 'Cyprus'),
(53, 'CZ', 'Czech Republic'),
(54, 'DE', 'Germany'),
(55, 'DJ', 'Djibouti'),
(56, 'DK', 'Denmark'),
(57, 'DM', 'Dominica'),
(58, 'DO', 'Dominican Republic'),
(59, 'DZ', 'Algeria'),
(60, 'EC', 'Ecuador'),
(61, 'EE', 'Estonia'),
(62, 'EG', 'Egypt'),
(63, 'EH', 'Western Sahara'),
(64, 'ER', 'Eritrea'),
(65, 'ES', 'Spain'),
(66, 'ET', 'Ethiopia'),
(67, 'FI', 'Finland'),
(68, 'FJ', 'Fiji'),
(69, 'FK', 'Falkland Islands [Islas Malvinas]'),
(70, 'FM', 'Micronesia'),
(71, 'FO', 'Faroe Islands'),
(72, 'FR', 'France'),
(73, 'GA', 'Gabon'),
(74, 'GB', 'United Kingdom'),
(75, 'GD', 'Grenada'),
(76, 'GE', 'Georgia'),
(77, 'GF', 'French Guiana'),
(78, 'GG', 'Guernsey'),
(79, 'GH', 'Ghana'),
(80, 'GI', 'Gibraltar'),
(81, 'GL', 'Greenland'),
(82, 'GM', 'Gambia'),
(83, 'GN', 'Guinea'),
(84, 'GP', 'Guadeloupe'),
(85, 'GQ', 'Equatorial Guinea'),
(86, 'GR', 'Greece'),
(87, 'GS', 'South Georgia and the South Sandwich Islands'),
(88, 'GT', 'Guatemala'),
(89, 'GU', 'Guam'),
(90, 'GW', 'Guinea-Bissau'),
(91, 'GY', 'Guyana'),
(92, 'GZ', 'Gaza Strip'),
(93, 'HK', 'Hong Kong'),
(94, 'HM', 'Heard Island and McDonald Islands'),
(95, 'HN', 'Honduras'),
(96, 'HR', 'Croatia'),
(97, 'HT', 'Haiti'),
(98, 'HU', 'Hungary'),
(99, 'ID', 'Indonesia'),
(100, 'IE', 'Ireland'),
(101, 'IL', 'Israel'),
(102, 'IM', 'Isle of Man'),
(103, 'IN', 'India'),
(104, 'IO', 'British Indian Ocean Territory'),
(105, 'IQ', 'Iraq'),
(106, 'IR', 'Iran'),
(107, 'IS', 'Iceland'),
(108, 'IT', 'Italy'),
(109, 'JE', 'Jersey'),
(110, 'JM', 'Jamaica'),
(111, 'JO', 'Jordan'),
(112, 'JP', 'Japan'),
(113, 'KE', 'Kenya'),
(114, 'KG', 'Kyrgyzstan'),
(115, 'KH', 'Cambodia'),
(116, 'KI', 'Kiribati'),
(117, 'KM', 'Comoros'),
(118, 'KN', 'Saint Kitts and Nevis'),
(119, 'KP', 'North Korea'),
(120, 'KR', 'South Korea'),
(121, 'KW', 'Kuwait'),
(122, 'KY', 'Cayman Islands'),
(123, 'KZ', 'Kazakhstan'),
(124, 'LA', 'Laos'),
(125, 'LB', 'Lebanon'),
(126, 'LC', 'Saint Lucia'),
(127, 'LI', 'Liechtenstein'),
(128, 'LK', 'Sri Lanka'),
(129, 'LR', 'Liberia'),
(130, 'LS', 'Lesotho'),
(131, 'LT', 'Lithuania'),
(132, 'LU', 'Luxembourg'),
(133, 'LV', 'Latvia'),
(134, 'LY', 'Libya'),
(135, 'MA', 'Morocco'),
(136, 'MC', 'Monaco'),
(137, 'MD', 'Moldova'),
(138, 'ME', 'Montenegro'),
(139, 'MG', 'Madagascar'),
(140, 'MH', 'Marshall Islands'),
(141, 'MK', 'Macedonia [FYROM]'),
(142, 'ML', 'Mali'),
(143, 'MM', 'Myanmar [Burma]'),
(144, 'MN', 'Mongolia'),
(145, 'MO', 'Macau'),
(146, 'MP', 'Northern Mariana Islands'),
(147, 'MQ', 'Martinique'),
(148, 'MR', 'Mauritania'),
(149, 'MS', 'Montserrat'),
(150, 'MT', 'Malta'),
(151, 'MU', 'Mauritius'),
(152, 'MV', 'Maldives'),
(153, 'MW', 'Malawi'),
(154, 'MX', 'Mexico'),
(155, 'MY', 'Malaysia'),
(156, 'MZ', 'Mozambique'),
(157, 'NA', 'Namibia'),
(158, 'NC', 'New Caledonia'),
(159, 'NE', 'Niger'),
(160, 'NF', 'Norfolk Island'),
(161, 'NG', 'Nigeria'),
(162, 'NI', 'Nicaragua'),
(163, 'NL', 'Netherlands'),
(164, 'NO', 'Norway'),
(165, 'NP', 'Nepal'),
(166, 'NR', 'Nauru'),
(167, 'NU', 'Niue'),
(168, 'NZ', 'New Zealand'),
(169, 'OM', 'Oman'),
(170, 'PA', 'Panama'),
(171, 'PE', 'Peru'),
(172, 'PF', 'French Polynesia'),
(173, 'PG', 'Papua New Guinea'),
(174, 'PH', 'Philippines'),
(175, 'PK', 'Pakistan'),
(176, 'PL', 'Poland'),
(177, 'PM', 'Saint Pierre and Miquelon'),
(178, 'PN', 'Pitcairn Islands'),
(179, 'PR', 'Puerto Rico'),
(180, 'PS', 'Palestinian Territories'),
(181, 'PT', 'Portugal'),
(182, 'PW', 'Palau'),
(183, 'PY', 'Paraguay'),
(184, 'QA', 'Qatar'),
(185, 'RE', 'R?union'),
(186, 'RO', 'Romania'),
(187, 'RS', 'Serbia'),
(188, 'RU', 'Russia'),
(189, 'RW', 'Rwanda'),
(190, 'SA', 'Saudi Arabia'),
(191, 'SB', 'Solomon Islands'),
(192, 'SC', 'Seychelles'),
(193, 'SD', 'Sudan'),
(194, 'SE', 'Sweden'),
(195, 'SG', 'Singapore'),
(196, 'SH', 'Saint Helena'),
(197, 'SI', 'Slovenia'),
(198, 'SJ', 'Svalbard and Jan Mayen'),
(199, 'SK', 'Slovakia'),
(200, 'SL', 'Sierra Leone'),
(201, 'SM', 'San Marino'),
(202, 'SN', 'Senegal'),
(203, 'SO', 'Somalia'),
(204, 'SR', 'Suriname'),
(205, 'ST', 'S?o Tom? and Pr?ncipe'),
(206, 'SV', 'El Salvador'),
(207, 'SY', 'Syria'),
(208, 'SZ', 'Swaziland'),
(209, 'TC', 'Turks and Caicos Islands'),
(210, 'TD', 'Chad'),
(211, 'TF', 'French Southern Territories'),
(212, 'TG', 'Togo'),
(213, 'TH', 'Thailand'),
(214, 'TJ', 'Tajikistan'),
(215, 'TK', 'Tokelau'),
(216, 'TL', 'Timor-Leste'),
(217, 'TM', 'Turkmenistan'),
(218, 'TN', 'Tunisia'),
(219, 'TO', 'Tonga'),
(220, 'TR', 'Turkey'),
(221, 'TT', 'Trinidad and Tobago'),
(222, 'TV', 'Tuvalu'),
(223, 'TW', 'Taiwan'),
(224, 'TZ', 'Tanzania'),
(225, 'UA', 'Ukraine'),
(226, 'UG', 'Uganda'),
(227, 'UM', 'U.S. Minor Outlying Islands'),
(228, 'US', 'United States'),
(229, 'UY', 'Uruguay'),
(230, 'UZ', 'Uzbekistan'),
(231, 'VA', 'Vatican City'),
(232, 'VC', 'Saint Vincent and the Grenadines'),
(233, 'VE', 'Venezuela'),
(234, 'VG', 'British Virgin Islands'),
(235, 'VI', 'U.S. Virgin Islands'),
(236, 'VN', 'Vietnam'),
(237, 'VU', 'Vanuatu'),
(238, 'WF', 'Wallis and Futuna'),
(239, 'WS', 'Samoa'),
(240, 'XK', 'Kosovo'),
(241, 'YE', 'Yemen'),
(242, 'YT', 'Mayotte'),
(243, 'ZA', 'South Africa'),
(244, 'ZM', 'Zambia'),
(245, 'ZW', 'Zimbabwe');

-- --------------------------------------------------------

--
-- Table structure for table `mlmepins`
--

CREATE TABLE `mlmepins` (
  `pid` int(11) NOT NULL,
  `pinserialno` varchar(50) NOT NULL,
  `pincode` varchar(50) NOT NULL DEFAULT 'NA',
  `pinamount` int(11) NOT NULL DEFAULT '0',
  `status` varchar(50) NOT NULL DEFAULT 'NOT USED',
  `createdby` varchar(255) NOT NULL,
  `blocked` varchar(5) NOT NULL DEFAULT 'NO',
  `datecreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `mlmfundaccount`
--

CREATE TABLE `mlmfundaccount` (
  `fundid` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `tellerno` varchar(50) NOT NULL,
  `tellerdate` date DEFAULT NULL,
  `telleramount` decimal(10,2) DEFAULT NULL,
  `depositorname` varchar(255) NOT NULL,
  `phoneno` varchar(50) NOT NULL DEFAULT '2340000000000',
  `bankname` varchar(255) NOT NULL DEFAULT 'NA',
  `modeofpayment` varchar(255) NOT NULL DEFAULT 'NA',
  `fundstatus` varchar(50) NOT NULL DEFAULT 'PENDING',
  `document` varchar(255) NOT NULL DEFAULT 'NA'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `mlmfundtransfer`
--

CREATE TABLE `mlmfundtransfer` (
  `transferid` int(11) NOT NULL,
  `recipientuserid` int(11) NOT NULL,
  `senderuserid` int(11) NOT NULL,
  `transferamount` decimal(10,2) NOT NULL,
  `transferdate` date DEFAULT NULL,
  `transferstatus` varchar(20) NOT NULL DEFAULT 'PENDING',
  `transferdescription` text,
  `approvedby` varchar(50) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `mlmledger`
--

CREATE TABLE `mlmledger` (
  `transid` int(11) NOT NULL,
  `beneficiaryid` int(11) NOT NULL,
  `transdate` datetime DEFAULT NULL,
  `transtype` varchar(20) DEFAULT NULL,
  `creditamount` double(10,2) DEFAULT NULL,
  `debitamount` double(10,2) NOT NULL,
  `transdescription` varchar(255) DEFAULT NULL,
  `transrefid` int(11) NOT NULL,
  `type` varchar(20) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `mlmledger_old`
--

CREATE TABLE `mlmledger_old` (
  `transid` int(11) NOT NULL,
  `beneficiaryid` int(11) NOT NULL,
  `transdate` datetime DEFAULT NULL,
  `transtype` varchar(20) DEFAULT NULL,
  `creditamount` double(10,2) DEFAULT NULL,
  `debitamount` double(10,2) NOT NULL,
  `transdescription` varchar(255) DEFAULT NULL,
  `transrefid` int(11) NOT NULL,
  `type` varchar(20) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `mlmmemberbonus`
--

CREATE TABLE `mlmmemberbonus` (
  `transid` int(11) NOT NULL,
  `beneficiaryid` int(11) NOT NULL,
  `transdate` datetime DEFAULT NULL,
  `transtype` varchar(20) DEFAULT NULL,
  `transamount` double(10,2) DEFAULT NULL,
  `transdescription` varchar(255) DEFAULT NULL,
  `transrefid` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `mlmmemberledger`
--

CREATE TABLE `mlmmemberledger` (
  `transid` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `transdate` date DEFAULT NULL,
  `transtype` varchar(20) DEFAULT NULL,
  `creditamount` double(10,2) DEFAULT NULL,
  `debitamount` double(10,2) NOT NULL,
  `transdescription` varchar(255) DEFAULT NULL,
  `type` varchar(50) DEFAULT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'Pending'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `mlmmemberledger_old`
--

CREATE TABLE `mlmmemberledger_old` (
  `transid` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `transdate` date DEFAULT NULL,
  `transtype` varchar(20) DEFAULT NULL,
  `creditamount` double(10,2) DEFAULT NULL,
  `debitamount` double(10,2) NOT NULL,
  `transdescription` varchar(255) DEFAULT NULL,
  `type` varchar(50) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `mlmmembers`
--

CREATE TABLE `mlmmembers` (
  `userid` int(11) NOT NULL,
  `parentid` int(10) NOT NULL,
  `depth` int(11) DEFAULT NULL,
  `profileid` varchar(50) NOT NULL,
  `currentstage` varchar(255) DEFAULT NULL,
  `sponsorid` varchar(50) DEFAULT NULL,
  `username` varchar(50) NOT NULL DEFAULT 'NA',
  `r_member` int(1) DEFAULT NULL,
  `l_member` int(1) DEFAULT NULL,
  `firstname` varchar(50) NOT NULL DEFAULT 'NA',
  `lastname` varchar(50) NOT NULL DEFAULT 'NA',
  `middlename` varchar(50) NOT NULL DEFAULT 'NA',
  `emailaddress` varchar(50) NOT NULL,
  `password` varchar(255) NOT NULL,
  `passport` varchar(255) NOT NULL DEFAULT 'avatar.jpg',
  `phoneno` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `activationcode` int(11) NOT NULL DEFAULT '0',
  `datecreated` date NOT NULL DEFAULT '0000-00-00',
  `lastlogindate` date NOT NULL DEFAULT '0000-00-00',
  `lastupdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `country` varchar(50) NOT NULL,
  `address` text,
  `terms` int(2) NOT NULL DEFAULT '0',
  `accountname` varchar(255) NOT NULL DEFAULT 'NA',
  `accountno` varchar(50) NOT NULL,
  `bankname` varchar(255) NOT NULL DEFAULT 'NA',
  `bankswiftcode` varchar(255) NOT NULL DEFAULT 'NA',
  `epinused` varchar(50) NOT NULL DEFAULT '00000000',
  `city` varchar(255) DEFAULT NULL,
  `referralid` varchar(200) NOT NULL,
  `leg` varchar(3) DEFAULT NULL,
  `level` varchar(20) NOT NULL DEFAULT 'Level 0',
  `transpassword` varchar(255) NOT NULL,
  `gender` varchar(20) NOT NULL,
  `dob` date DEFAULT '0000-00-00',
  `zipcode` varchar(255) NOT NULL DEFAULT 'NA',
  `nomineename` varchar(255) NOT NULL DEFAULT 'NA',
  `nomineephoneno` varchar(255) NOT NULL DEFAULT 'NA',
  `relationship` varchar(255) NOT NULL DEFAULT 'NA',
  `nomineeaddress` text
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `mlmmembers4`
--

CREATE TABLE `mlmmembers4` (
  `userid` int(11) NOT NULL,
  `parentid` int(10) NOT NULL,
  `profileid` varchar(50) NOT NULL,
  `currentstage` varchar(255) DEFAULT NULL,
  `sponsorid` varchar(50) DEFAULT NULL,
  `username` varchar(50) NOT NULL DEFAULT 'NA',
  `r_member` int(1) DEFAULT NULL,
  `l_member` int(1) DEFAULT NULL,
  `firstname` varchar(50) NOT NULL DEFAULT 'NA',
  `lastname` varchar(50) NOT NULL DEFAULT 'NA',
  `middlename` varchar(50) NOT NULL DEFAULT 'NA',
  `emailaddress` varchar(50) NOT NULL,
  `password` varchar(255) NOT NULL,
  `passport` varchar(255) NOT NULL DEFAULT 'avatar.jpg',
  `phoneno` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `activationcode` int(11) NOT NULL DEFAULT '0',
  `datecreated` date NOT NULL DEFAULT '0000-00-00',
  `lastlogindate` date NOT NULL DEFAULT '0000-00-00',
  `lastupdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `country` varchar(50) NOT NULL,
  `address` text,
  `terms` int(2) NOT NULL DEFAULT '0',
  `accountname` varchar(255) NOT NULL DEFAULT 'NA',
  `accountno` varchar(50) NOT NULL,
  `bankname` varchar(255) NOT NULL DEFAULT 'NA',
  `bankswiftcode` varchar(255) NOT NULL DEFAULT 'NA',
  `epinused` varchar(50) NOT NULL DEFAULT '00000000',
  `city` varchar(255) DEFAULT NULL,
  `referralid` varchar(200) NOT NULL,
  `leg` varchar(3) DEFAULT NULL,
  `level` varchar(20) NOT NULL DEFAULT 'Level 0',
  `transpassword` varchar(255) NOT NULL,
  `gender` varchar(20) NOT NULL,
  `dob` date DEFAULT '0000-00-00',
  `zipcode` varchar(255) NOT NULL DEFAULT 'NA',
  `nomineename` varchar(255) NOT NULL DEFAULT 'NA',
  `nomineephoneno` varchar(255) NOT NULL DEFAULT 'NA',
  `relationship` varchar(255) NOT NULL DEFAULT 'NA',
  `nomineeaddress` text
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `mlmmembers_old`
--

CREATE TABLE `mlmmembers_old` (
  `userid` int(11) NOT NULL,
  `parentid` int(10) NOT NULL,
  `profileid` varchar(50) NOT NULL,
  `currentstage` varchar(255) DEFAULT NULL,
  `sponsorid` varchar(50) DEFAULT NULL,
  `username` varchar(50) NOT NULL DEFAULT 'NA',
  `r_member` int(1) DEFAULT NULL,
  `l_member` int(1) DEFAULT NULL,
  `firstname` varchar(50) NOT NULL DEFAULT 'NA',
  `lastname` varchar(50) NOT NULL DEFAULT 'NA',
  `middlename` varchar(50) NOT NULL DEFAULT 'NA',
  `emailaddress` varchar(50) NOT NULL,
  `password` varchar(255) NOT NULL,
  `passport` varchar(255) NOT NULL DEFAULT 'avatar.jpg',
  `phoneno` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `activationcode` int(11) NOT NULL DEFAULT '0',
  `datecreated` date NOT NULL DEFAULT '0000-00-00',
  `lastlogindate` date NOT NULL DEFAULT '0000-00-00',
  `lastupdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `country` varchar(50) NOT NULL,
  `address` text,
  `terms` int(2) NOT NULL DEFAULT '0',
  `accountname` varchar(255) NOT NULL DEFAULT 'NA',
  `accountno` varchar(50) NOT NULL,
  `bankname` varchar(255) NOT NULL DEFAULT 'NA',
  `bankswiftcode` varchar(255) NOT NULL DEFAULT 'NA',
  `epinused` varchar(50) NOT NULL DEFAULT '00000000',
  `city` varchar(255) DEFAULT NULL,
  `referralid` varchar(200) NOT NULL,
  `leg` varchar(3) DEFAULT NULL,
  `level` varchar(20) NOT NULL DEFAULT 'Level 0',
  `transpassword` varchar(255) NOT NULL,
  `gender` varchar(20) NOT NULL,
  `dob` date DEFAULT '0000-00-00',
  `zipcode` varchar(255) NOT NULL DEFAULT 'NA',
  `nomineename` varchar(255) NOT NULL DEFAULT 'NA',
  `nomineephoneno` varchar(255) NOT NULL DEFAULT 'NA',
  `relationship` varchar(255) NOT NULL DEFAULT 'NA',
  `nomineeaddress` text
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `mlmreferrals`
--

CREATE TABLE `mlmreferrals` (
  `referralid` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `recipientemail` varchar(255) NOT NULL,
  `recipientphone` varchar(20) NOT NULL,
  `message` text,
  `datesent` date DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `mlmtickets`
--

CREATE TABLE `mlmtickets` (
  `ticketid` int(11) NOT NULL,
  `ticketsubject` varchar(255) NOT NULL,
  `ticketsender` varchar(255) NOT NULL,
  `senderemail` varchar(255) NOT NULL,
  `ticketmessage` text,
  `datesent` datetime NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'Unread',
  `recipientemail` varchar(255) NOT NULL,
  `userid` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `mlmusers`
--

CREATE TABLE `mlmusers` (
  `userid` int(11) NOT NULL,
  `username` varchar(50) NOT NULL DEFAULT 'NA',
  `firstname` varchar(50) NOT NULL DEFAULT 'NA',
  `lastname` varchar(50) NOT NULL DEFAULT 'NA',
  `middlename` varchar(50) NOT NULL DEFAULT 'NA',
  `emailaddress` varchar(50) NOT NULL,
  `password` varchar(255) NOT NULL,
  `role` varchar(50) NOT NULL DEFAULT 'Member',
  `passport` varchar(255) NOT NULL DEFAULT 'avatar.jpg',
  `phoneno` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `activationcode` int(11) NOT NULL DEFAULT '0',
  `datecreated` date NOT NULL DEFAULT '0000-00-00',
  `lastlogindate` date NOT NULL DEFAULT '0000-00-00',
  `lastupdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `mlmwithdrawals`
--

CREATE TABLE `mlmwithdrawals` (
  `id` int(11) NOT NULL,
  `amount` decimal(11,2) NOT NULL DEFAULT '0.00',
  `date` date NOT NULL DEFAULT '0000-00-00',
  `status` varchar(20) NOT NULL DEFAULT 'PENDING',
  `description` varchar(255) DEFAULT NULL,
  `approvedby` varchar(25) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `mlmadminusers`
--
ALTER TABLE `mlmadminusers`
  ADD PRIMARY KEY (`userid`);

--
-- Indexes for table `mlmbonus`
--
ALTER TABLE `mlmbonus`
  ADD PRIMARY KEY (`bonusid`);

--
-- Indexes for table `mlmcountries`
--
ALTER TABLE `mlmcountries`
  ADD PRIMARY KEY (`countryid`);

--
-- Indexes for table `mlmepins`
--
ALTER TABLE `mlmepins`
  ADD PRIMARY KEY (`pid`);

--
-- Indexes for table `mlmfundaccount`
--
ALTER TABLE `mlmfundaccount`
  ADD PRIMARY KEY (`fundid`);

--
-- Indexes for table `mlmfundtransfer`
--
ALTER TABLE `mlmfundtransfer`
  ADD PRIMARY KEY (`transferid`);

--
-- Indexes for table `mlmledger`
--
ALTER TABLE `mlmledger`
  ADD PRIMARY KEY (`transid`);

--
-- Indexes for table `mlmledger_old`
--
ALTER TABLE `mlmledger_old`
  ADD PRIMARY KEY (`transid`);

--
-- Indexes for table `mlmmemberbonus`
--
ALTER TABLE `mlmmemberbonus`
  ADD PRIMARY KEY (`transid`);

--
-- Indexes for table `mlmmemberledger`
--
ALTER TABLE `mlmmemberledger`
  ADD PRIMARY KEY (`transid`),
  ADD KEY `userid` (`userid`);

--
-- Indexes for table `mlmmemberledger_old`
--
ALTER TABLE `mlmmemberledger_old`
  ADD PRIMARY KEY (`transid`),
  ADD KEY `userid` (`userid`);

--
-- Indexes for table `mlmmembers`
--
ALTER TABLE `mlmmembers`
  ADD PRIMARY KEY (`userid`);

--
-- Indexes for table `mlmmembers4`
--
ALTER TABLE `mlmmembers4`
  ADD PRIMARY KEY (`userid`);

--
-- Indexes for table `mlmmembers_old`
--
ALTER TABLE `mlmmembers_old`
  ADD PRIMARY KEY (`userid`);

--
-- Indexes for table `mlmreferrals`
--
ALTER TABLE `mlmreferrals`
  ADD PRIMARY KEY (`referralid`),
  ADD KEY `userid` (`userid`);

--
-- Indexes for table `mlmtickets`
--
ALTER TABLE `mlmtickets`
  ADD PRIMARY KEY (`ticketid`);

--
-- Indexes for table `mlmusers`
--
ALTER TABLE `mlmusers`
  ADD PRIMARY KEY (`userid`);

--
-- Indexes for table `mlmwithdrawals`
--
ALTER TABLE `mlmwithdrawals`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `mlmadminusers`
--
ALTER TABLE `mlmadminusers`
  MODIFY `userid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `mlmbonus`
--
ALTER TABLE `mlmbonus`
  MODIFY `bonusid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;

--
-- AUTO_INCREMENT for table `mlmcountries`
--
ALTER TABLE `mlmcountries`
  MODIFY `countryid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=246;

--
-- AUTO_INCREMENT for table `mlmepins`
--
ALTER TABLE `mlmepins`
  MODIFY `pid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=815;

--
-- AUTO_INCREMENT for table `mlmfundaccount`
--
ALTER TABLE `mlmfundaccount`
  MODIFY `fundid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `mlmfundtransfer`
--
ALTER TABLE `mlmfundtransfer`
  MODIFY `transferid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mlmledger`
--
ALTER TABLE `mlmledger`
  MODIFY `transid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4522;

--
-- AUTO_INCREMENT for table `mlmledger_old`
--
ALTER TABLE `mlmledger_old`
  MODIFY `transid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1340;

--
-- AUTO_INCREMENT for table `mlmmemberbonus`
--
ALTER TABLE `mlmmemberbonus`
  MODIFY `transid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mlmmemberledger`
--
ALTER TABLE `mlmmemberledger`
  MODIFY `transid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3772;

--
-- AUTO_INCREMENT for table `mlmmemberledger_old`
--
ALTER TABLE `mlmmemberledger_old`
  MODIFY `transid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1115;

--
-- AUTO_INCREMENT for table `mlmmembers`
--
ALTER TABLE `mlmmembers`
  MODIFY `userid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=833;

--
-- AUTO_INCREMENT for table `mlmmembers4`
--
ALTER TABLE `mlmmembers4`
  MODIFY `userid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=293;

--
-- AUTO_INCREMENT for table `mlmmembers_old`
--
ALTER TABLE `mlmmembers_old`
  MODIFY `userid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=111;

--
-- AUTO_INCREMENT for table `mlmreferrals`
--
ALTER TABLE `mlmreferrals`
  MODIFY `referralid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mlmtickets`
--
ALTER TABLE `mlmtickets`
  MODIFY `ticketid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `mlmusers`
--
ALTER TABLE `mlmusers`
  MODIFY `userid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mlmwithdrawals`
--
ALTER TABLE `mlmwithdrawals`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
