-- https://www.phpmyadmin.net/
--




--
-- Database: `devdatasafe`
--

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

--
-- Table structure for table `accounts`
--

CREATE TABLE `accounts` (
  `id` int(11) NOT NULL,
  `Account_Name` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Primary_Contact` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Main_Phone` varchar(255) NOT NULL,
  `Account_Type` varchar(255) NOT NULL,
  `ABN` varchar(255) NOT NULL,
  `Account_Rating` varchar(255) NOT NULL,
  `Accountant_Contact` varchar(255) NOT NULL,
  `Accountant_Name` varchar(255) NOT NULL,
  `Accountant_Phone` varchar(255) NOT NULL,
  `Accreditation_Date` varchar(255) NOT NULL,
  `Address` varchar(255) NOT NULL,
  `Address1` varchar(255) NOT NULL,
  `Address1_City` varchar(255) NOT NULL,
  `Address1_Country` varchar(255) NOT NULL,
  `Address1_State` varchar(255) NOT NULL,
  `Address1_Street1` varchar(255) NOT NULL,
  `Address1_Street2` varchar(255) NOT NULL,
  `Address_1Street3` varchar(255) NOT NULL,
  `Address1_Telephone3` varchar(255) NOT NULL,
  `Address1_Postal_Code` varchar(255) NOT NULL,
  `Address2` varchar(255) NOT NULL,
  `Address2_Address_Type` varchar(255) NOT NULL,
  `Address2_City` varchar(255) NOT NULL,
  `Address2_Country` varchar(255) NOT NULL,
  `Address2_Freight_Terms` varchar(255) NOT NULL,
  `Address2_Shipping_Method` varchar(255) NOT NULL,
  `Address2_State` varchar(255) NOT NULL,
  `Address2_Street1` varchar(255) NOT NULL,
  `Address2_Street2` varchar(255) NOT NULL,
  `Address2_Street3` varchar(255) NOT NULL,
  `Address2_Postal_Code` varchar(255) NOT NULL,
  `Annual_Revenue` varchar(255) NOT NULL,
  `Annual_Revenue_Base` varchar(255) NOT NULL,
  `Bank` varchar(255) NOT NULL,
  `Blacklisted` varchar(255) NOT NULL,
  `Branch` varchar(255) NOT NULL,
  `Broker` varchar(255) NOT NULL,
  `Business_Type` varchar(255) NOT NULL,
  `Classification` varchar(255) NOT NULL,
  `Created_By` varchar(255) NOT NULL,
  `Created_By_Id` varchar(255) NOT NULL,
  `Created_On` varchar(255) NOT NULL,
  `Credit_Hold` varchar(255) NOT NULL,
  `Currency` varchar(255) NOT NULL,
  `Customer_Size` varchar(255) NOT NULL,
  `Description` varchar(255) NOT NULL,
  `Director1` varchar(255) NOT NULL,
  `Director2` varchar(255) NOT NULL,
  `Directors_Renumeration` varchar(255) NOT NULL,
  `Directors_Renumeration_Base` varchar(255) NOT NULL,
  `Do_not_allow_Bulk_Emails` varchar(255) NOT NULL,
  `Do_not_allow_Bulk_Mails` varchar(255) NOT NULL,
  `Do_not_allow_Emails` varchar(255) NOT NULL,
  `Do_not_allow_Faxes` varchar(255) NOT NULL,
  `Do_not_allow_Mails` varchar(255) NOT NULL,
  `Do_not_allow_Phone_Calls` varchar(255) NOT NULL,
  `Email` varchar(255) NOT NULL,
  `Exchange_Rate` varchar(255) NOT NULL,
  `Fax` varchar(255) NOT NULL,
  `Follow_Email_Activity` varchar(255) NOT NULL,
  `GM_Account_No` varchar(255) NOT NULL,
  `GM_Industry` varchar(255) NOT NULL,
  `Acc_Id` varchar(255) NOT NULL,
  `Industry` varchar(255) NOT NULL,
  `Insurer_Contact` varchar(255) NOT NULL,
  `Insure_Name` varchar(255) NOT NULL,
  `Invalid_Email` varchar(255) NOT NULL,
  `Last_Call_Date` varchar(255) NOT NULL,
  `Last_Date_Included_in_Campaign` varchar(255) NOT NULL,
  `leadQualifycreated` varchar(255) NOT NULL,
  `Marketing_Only` varchar(255) NOT NULL,
  `Modified_By` varchar(255) NOT NULL,
  `Modified_By_Delegate` varchar(255) NOT NULL,
  `Modified_On` varchar(255) NOT NULL,
  `Nature_of_Business` varchar(255) NOT NULL,
  `Net_Profit` varchar(255) NOT NULL,
  `Net_Profit_Base` varchar(255) NOT NULL,
  `Number_of_Employees` varchar(255) NOT NULL,
  `Number_of_Staff` varchar(255) NOT NULL,
  `Old_Id` varchar(255) NOT NULL,
  `Open_Deals` varchar(255) NOT NULL,
  `Open_Revenue` varchar(255) NOT NULL,
  `Open_Revenue_Base` varchar(255) NOT NULL,
  `Originating_Lead` varchar(255) NOT NULL,
  `Other_Phone` varchar(255) NOT NULL,
  `Owner` varchar(255) NOT NULL,
  `Parent_Account` varchar(255) NOT NULL,
  `Preferred_Method_of_Contact` varchar(255) NOT NULL,
  `Send_Marketing_Materials` varchar(255) NOT NULL,
  `Shares_Outstanding` varchar(255) NOT NULL,
  `Shipping_Method` varchar(255) NOT NULL,
  `Status` varchar(255) NOT NULL,
  `Status_Reason` varchar(255) NOT NULL,
  `Sync_With_SendInBlue` varchar(255) NOT NULL,
  `Territory_Code` varchar(255) NOT NULL,
  `Trading_as` varchar(255) NOT NULL,
  `Trust_Name` varchar(255) NOT NULL,
  `Website` varchar(255) NOT NULL,
  `Year_Established` varchar(255) NOT NULL,
  `Years_Established` varchar(255) NOT NULL,
  `Years_of_industry_experience` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `archive_bank_account_details`
--

CREATE TABLE `archive_bank_account_details` (
  `bank_id` int(11) NOT NULL,
  `loan_rent_id` int(6) NOT NULL,
  `contract_date` varchar(20) NOT NULL,
  `Day` varchar(15) NOT NULL,
  `payment_date` varchar(20) NOT NULL,
  `amount` varchar(13) NOT NULL,
  `Bank` varchar(25) NOT NULL,
  `Branch` varchar(20) NOT NULL,
  `AccountName` varchar(30) NOT NULL,
  `BSB` varchar(7) NOT NULL,
  `AccountNumber` varchar(20) NOT NULL,
  `payment_frequency` varchar(50) NOT NULL,
  `payment_method` varchar(1500) NOT NULL,
  `type` varchar(100) NOT NULL COMMENT 'loan/rental',
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_benefits_client1`
--

CREATE TABLE `archive_benefits_client1` (
  `benefits_id_client1` int(11) NOT NULL,
  `full_time` varchar(150) NOT NULL,
  `part_time` varchar(150) NOT NULL,
  `casual` varchar(150) NOT NULL,
  `other_income` varchar(200) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(150) NOT NULL COMMENT 'loan/rent',
  `career` varchar(150) NOT NULL,
  `career2` varchar(200) NOT NULL,
  `disability` varchar(200) NOT NULL,
  `parenting` varchar(200) NOT NULL,
  `large_family` varchar(220) NOT NULL,
  `family_a` varchar(150) NOT NULL,
  `family_b` varchar(255) NOT NULL,
  `rent_assist` varchar(255) NOT NULL,
  `pharmacutical` varchar(225) NOT NULL,
  `suppliment` varchar(225) NOT NULL,
  `phone` varchar(200) NOT NULL,
  `child_maintainence` varchar(200) NOT NULL,
  `board_received` varchar(200) NOT NULL,
  `additional_income` varchar(200) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_benefits_client2`
--

CREATE TABLE `archive_benefits_client2` (
  `benefit_id_client2` int(11) NOT NULL,
  `full_time` varchar(150) NOT NULL,
  `part_time` varchar(150) NOT NULL,
  `casual` varchar(150) NOT NULL,
  `other_income` varchar(200) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(150) NOT NULL COMMENT 'loan/rent',
  `career` varchar(255) NOT NULL,
  `career2` varchar(200) NOT NULL,
  `disability` varchar(255) NOT NULL,
  `parenting` varchar(200) NOT NULL,
  `large_family` varchar(200) NOT NULL,
  `family_a` varchar(200) NOT NULL,
  `family_b` varchar(255) NOT NULL,
  `rent_assist` varchar(200) NOT NULL,
  `pharmacutical` varchar(255) NOT NULL,
  `suppliment` varchar(200) NOT NULL,
  `phone` varchar(100) NOT NULL,
  `child_maintainence` varchar(200) NOT NULL,
  `board_received` varchar(200) NOT NULL,
  `additional_income` varchar(200) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_budget_expenses_client1`
--

CREATE TABLE `archive_budget_expenses_client1` (
  `b_expenses_id_client1` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(200) NOT NULL COMMENT 'loan/rent',
  `rent_or_board` varchar(200) NOT NULL,
  `mortgage` varchar(255) NOT NULL,
  `rates` varchar(255) NOT NULL,
  `electricity` varchar(255) NOT NULL,
  `phone` varchar(255) NOT NULL,
  `internet` varchar(255) NOT NULL,
  `gas` varchar(255) NOT NULL,
  `mobile` varchar(100) NOT NULL,
  `water_rates` varchar(200) NOT NULL,
  `rental_goods` varchar(255) NOT NULL,
  `centrelink1` varchar(255) NOT NULL,
  `centrelink2` varchar(255) NOT NULL,
  `centrelink3` varchar(255) NOT NULL,
  `centre_text1` varchar(150) NOT NULL,
  `centre_text2` varchar(150) NOT NULL,
  `centre_text3` varchar(150) NOT NULL,
  `credit_card` varchar(200) NOT NULL,
  `loan1` varchar(255) NOT NULL,
  `loan2` varchar(255) NOT NULL,
  `loan3` varchar(255) NOT NULL,
  `loan_text1` varchar(150) NOT NULL,
  `loan_text2` varchar(150) NOT NULL,
  `loan_text3` varchar(150) NOT NULL,
  `car_loan` varchar(255) NOT NULL,
  `state_debt` varchar(255) NOT NULL,
  `groceries` varchar(255) NOT NULL,
  `takeaway` varchar(255) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_budget_expenses_client2`
--

CREATE TABLE `archive_budget_expenses_client2` (
  `b_expenses_id_client2` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(200) NOT NULL COMMENT 'loan/rent',
  `rent_or_board` varchar(255) NOT NULL,
  `mortgage` varchar(255) NOT NULL,
  `rates` varchar(255) NOT NULL,
  `electricity` varchar(255) NOT NULL,
  `gas` varchar(200) NOT NULL,
  `phone` varchar(200) NOT NULL,
  `internet` varchar(200) NOT NULL,
  `mobile` varchar(200) NOT NULL,
  `water_rates` varchar(200) NOT NULL,
  `rental_goods` varchar(200) NOT NULL,
  `centrelink1` varchar(255) NOT NULL,
  `centrelink2` varchar(255) NOT NULL,
  `centrelink3` varchar(255) NOT NULL,
  `credit_card` varchar(200) NOT NULL,
  `loan1` varchar(255) NOT NULL,
  `loan2` varchar(255) NOT NULL,
  `loan3` varchar(255) NOT NULL,
  `car_loan` varchar(255) NOT NULL,
  `state_debt` varchar(255) NOT NULL,
  `groceries` varchar(255) NOT NULL,
  `takeaway` varchar(255) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_budget_income_client1`
--

CREATE TABLE `archive_budget_income_client1` (
  `budget_id_client1` int(11) NOT NULL,
  `full_time` varchar(200) NOT NULL,
  `part_time` varchar(100) NOT NULL,
  `casual` varchar(150) NOT NULL,
  `other_income` varchar(200) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(150) NOT NULL COMMENT 'loan/rent',
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_budget_income_client2`
--

CREATE TABLE `archive_budget_income_client2` (
  `budget_id_client2` int(11) NOT NULL,
  `full_time` varchar(150) NOT NULL,
  `part_time` varchar(150) NOT NULL,
  `casual` varchar(150) NOT NULL,
  `other_income` varchar(200) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(150) NOT NULL COMMENT 'loan/rent',
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_children_client1`
--

CREATE TABLE `archive_children_client1` (
  `children_id` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(150) NOT NULL COMMENT 'loan/rent',
  `clothes` varchar(250) NOT NULL,
  `child_care` varchar(200) NOT NULL,
  `school_sport` varchar(200) NOT NULL,
  `presents` varchar(250) NOT NULL,
  `pocket_money` varchar(200) NOT NULL,
  `maintenance` varchar(255) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_children_client2`
--

CREATE TABLE `archive_children_client2` (
  `children_id` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(100) NOT NULL COMMENT 'loan/rent',
  `clothes` varchar(250) NOT NULL,
  `child_care` varchar(200) NOT NULL,
  `school_sport` varchar(200) NOT NULL,
  `presents` varchar(200) NOT NULL,
  `pocket_money` varchar(200) NOT NULL,
  `maintenance` varchar(200) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_client1_employer`
--

CREATE TABLE `archive_client1_employer` (
  `id` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(255) NOT NULL COMMENT 'loan/rent',
  `employer` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `phone` varchar(255) NOT NULL,
  `address` varchar(255) NOT NULL,
  `suburb` varchar(255) NOT NULL,
  `state` varchar(255) NOT NULL,
  `postcode` varchar(255) NOT NULL,
  `income_frequency` varchar(100) NOT NULL,
  `employer_status` varchar(100) NOT NULL,
  `year` varchar(255) NOT NULL,
  `month` varchar(255) NOT NULL,
  `occupation` varchar(255) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_client1_property`
--

CREATE TABLE `archive_client1_property` (
  `id` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(255) NOT NULL COMMENT 'loan/rent',
  `real_estate_agent` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `phone` varchar(255) NOT NULL,
  `real_owner` varchar(150) NOT NULL,
  `home_loan_provider` varchar(150) NOT NULL,
  `address` varchar(255) NOT NULL,
  `suburb` varchar(255) NOT NULL,
  `state` varchar(255) NOT NULL,
  `postcode` varchar(255) NOT NULL,
  `year` varchar(255) NOT NULL,
  `month` varchar(255) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_client2_employer`
--

CREATE TABLE `archive_client2_employer` (
  `id` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(255) NOT NULL COMMENT 'loan/rent',
  `employer` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `phone` varchar(255) NOT NULL,
  `address` varchar(255) NOT NULL,
  `suburb` varchar(255) NOT NULL,
  `state` varchar(255) NOT NULL,
  `postcode` varchar(255) NOT NULL,
  `year` varchar(255) NOT NULL,
  `month` varchar(255) NOT NULL,
  `occupation` varchar(255) NOT NULL,
  `employer_status` varchar(100) NOT NULL,
  `income_frequency` varchar(100) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_client2_property`
--

CREATE TABLE `archive_client2_property` (
  `id` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(100) NOT NULL COMMENT 'loan/rent',
  `real_estate_agent` varchar(200) NOT NULL,
  `name` varchar(200) NOT NULL,
  `phone` varchar(200) NOT NULL,
  `real_owner` varchar(150) NOT NULL,
  `home_loan_provider` varchar(150) NOT NULL,
  `address` varchar(255) NOT NULL,
  `suburb` varchar(255) NOT NULL,
  `state` varchar(200) NOT NULL,
  `postcode` varchar(200) NOT NULL,
  `year` varchar(200) NOT NULL,
  `month` varchar(200) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_client_1`
--

CREATE TABLE `archive_client_1` (
  `ClientID` int(6) NOT NULL,
  `AgentID` int(6) NOT NULL,
  `RentalID` int(6) NOT NULL,
  `client_id` varchar(25) NOT NULL,
  `agent_user_id` int(11) NOT NULL,
  `crb_no` varchar(25) NOT NULL,
  `minit_client_id` int(10) DEFAULT NULL,
  `client_status` varchar(150) NOT NULL,
  `Type` varchar(15) NOT NULL,
  `Status` varchar(15) NOT NULL DEFAULT '0',
  `minit_status` int(11) NOT NULL DEFAULT '0',
  `Title` varchar(4) NOT NULL,
  `FirstName` varchar(15) NOT NULL,
  `MiddleName` varchar(15) NOT NULL,
  `LastName` varchar(25) NOT NULL,
  `DOB` varchar(10) NOT NULL,
  `year` int(11) NOT NULL,
  `month` varchar(3) NOT NULL,
  `current_year` varchar(10) NOT NULL DEFAULT '0',
  `current_month` varchar(10) NOT NULL DEFAULT '0',
  `DriverLicense` varchar(15) NOT NULL,
  `Gender` varchar(6) NOT NULL,
  `Marital` varchar(9) NOT NULL,
  `Children` int(2) NOT NULL,
  `HomePhone` varchar(20) NOT NULL,
  `Work` varchar(20) NOT NULL,
  `Mobile` varchar(20) NOT NULL,
  `Email` varchar(35) NOT NULL,
  `Address` varchar(40) NOT NULL,
  `postal_address` varchar(255) NOT NULL,
  `Suburb` varchar(20) NOT NULL,
  `postal_suburb` varchar(150) NOT NULL,
  `State` varchar(3) NOT NULL,
  `postal_state` varchar(150) NOT NULL,
  `postal_postcode` varchar(4) NOT NULL,
  `Postcode` varchar(4) NOT NULL,
  `previous_address` varchar(200) NOT NULL,
  `previous_suburb` varchar(150) NOT NULL,
  `previous_state` varchar(100) NOT NULL,
  `previous_postcode` varchar(4) NOT NULL,
  `Date` varchar(25) NOT NULL,
  `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `is_active` int(11) NOT NULL DEFAULT '0',
  `active_user` int(11) NOT NULL DEFAULT '0',
  `updated_at` varchar(50) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_client_2`
--

CREATE TABLE `archive_client_2` (
  `ClientID` int(6) NOT NULL,
  `AgentID` int(6) NOT NULL,
  `RentalID` int(6) NOT NULL,
  `client_id` varchar(25) NOT NULL,
  `agent_user_id` int(11) NOT NULL,
  `crb_no` varchar(25) NOT NULL,
  `minit_client_id` int(10) DEFAULT NULL,
  `client_status` varchar(150) NOT NULL,
  `Type` varchar(15) NOT NULL,
  `Status2` varchar(15) NOT NULL DEFAULT '0',
  `Title2` varchar(4) NOT NULL,
  `FirstName2` varchar(100) NOT NULL,
  `MiddleName2` varchar(100) NOT NULL,
  `LastName2` varchar(100) NOT NULL,
  `DOB2` varchar(10) NOT NULL,
  `DriversLicense2` varchar(100) NOT NULL,
  `Gender2` varchar(20) NOT NULL,
  `Marital2` varchar(20) NOT NULL,
  `Children2` int(2) NOT NULL,
  `HomePhone2` varchar(20) NOT NULL,
  `Workphone2` varchar(20) NOT NULL,
  `Mobile2` varchar(20) NOT NULL,
  `Email2` varchar(150) NOT NULL,
  `Address4` varchar(150) NOT NULL,
  `postal_address` varchar(255) NOT NULL,
  `Suburb4` varchar(50) NOT NULL,
  `State2` varchar(3) NOT NULL,
  `Postcode3` varchar(4) NOT NULL,
  `year` int(11) NOT NULL,
  `month` varchar(3) NOT NULL,
  `current_year` varchar(10) NOT NULL DEFAULT '0',
  `current_month` varchar(10) NOT NULL DEFAULT '0',
  `postal_suburb` varchar(150) NOT NULL,
  `postal_state` varchar(50) NOT NULL,
  `postal_postcode` varchar(4) NOT NULL,
  `previous_address` varchar(200) NOT NULL,
  `previous_suburb` varchar(150) NOT NULL,
  `previous_state` varchar(100) NOT NULL,
  `previous_postcode` varchar(10) NOT NULL,
  `date` varchar(25) NOT NULL,
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` varchar(50) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_client_expenses`
--

CREATE TABLE `archive_client_expenses` (
  `ClientID` int(6) NOT NULL,
  `RentalID` varchar(35) NOT NULL,
  `LoanID` varchar(35) NOT NULL,
  `RentOrBoard` int(6) NOT NULL,
  `RentOrBoard2` int(6) NOT NULL,
  `Mortgage` int(6) NOT NULL,
  `Mortgage2` int(6) NOT NULL,
  `Rates` int(6) NOT NULL,
  `Rates2` int(6) NOT NULL,
  `Electricity` int(6) NOT NULL,
  `Electricity2` int(6) NOT NULL,
  `Gas` int(6) NOT NULL,
  `Gas2` int(6) NOT NULL,
  `WeekleyExpensesPhone` int(6) NOT NULL,
  `WeekleyExpensesPhone2` int(6) NOT NULL,
  `Internet` int(6) NOT NULL,
  `Internet2` int(6) NOT NULL,
  `WeeklyExpensesMobile` int(6) NOT NULL,
  `WeeklyExpensesMobile2` int(6) NOT NULL,
  `Spare1` varchar(35) NOT NULL,
  `Spare2` varchar(35) NOT NULL,
  `SpareFibin1` varchar(36) NOT NULL,
  `SpareFibin5` varchar(36) NOT NULL,
  `SpareFibin6` varchar(36) NOT NULL,
  `SpareFibin7` varchar(37) NOT NULL,
  `SpareFibin8` varchar(38) NOT NULL,
  `SpareFibin9` varchar(39) NOT NULL,
  `RentalGoods` int(6) NOT NULL,
  `RentalGoods2` int(6) NOT NULL,
  `Centrelink1` int(6) NOT NULL,
  `Centrelink12` int(6) NOT NULL,
  `Centrelink2` int(6) NOT NULL,
  `Centrelink22` int(6) NOT NULL,
  `Centrelink3` int(6) NOT NULL,
  `Centrelink32` int(6) NOT NULL,
  `CreditCard` int(6) NOT NULL,
  `CreditCard2` int(6) NOT NULL,
  `Loan1` int(6) NOT NULL,
  `Loan12` int(6) NOT NULL,
  `Loan2` int(6) NOT NULL,
  `Loan21` int(6) NOT NULL,
  `Loan3` int(6) NOT NULL,
  `Loan32` int(6) NOT NULL,
  `CarLoan` int(6) NOT NULL,
  `Carloan2` int(6) NOT NULL,
  `StateDebt` int(6) NOT NULL,
  `StateDebt2` int(6) NOT NULL,
  `Groceries` int(6) NOT NULL,
  `Groceries2` int(6) NOT NULL,
  `Takeaway` int(6) NOT NULL,
  `Takeaway2` int(6) NOT NULL,
  `Clothes` int(6) NOT NULL,
  `Clothes2` int(6) NOT NULL,
  `Smokes` int(6) NOT NULL,
  `Smokes2` int(6) NOT NULL,
  `Drinks` int(6) NOT NULL,
  `Drinks2` int(6) NOT NULL,
  `Other` int(6) NOT NULL,
  `Other2` int(6) NOT NULL,
  `ClothesB` int(6) NOT NULL,
  `ClothesB2` int(6) NOT NULL,
  `ChildCare` int(6) NOT NULL,
  `ChildCare2` int(6) NOT NULL,
  `SchoolSport` int(6) NOT NULL,
  `SchoolSport2` int(6) NOT NULL,
  `Presents` int(6) NOT NULL,
  `Presents2` int(6) NOT NULL,
  `PocketMoney` int(6) NOT NULL,
  `PocketMoney2` int(6) NOT NULL,
  `Maint` int(6) NOT NULL,
  `Maint2` int(6) NOT NULL,
  `ChildrenBlank` varchar(39) NOT NULL,
  `ChildrenBlank1` int(6) NOT NULL,
  `ChildrenBlank2` int(6) NOT NULL,
  `XmasHamper` int(6) NOT NULL,
  `XmasHamper2` int(6) NOT NULL,
  `Foxtel` int(6) NOT NULL,
  `Foxtel2` int(6) NOT NULL,
  `RentBuyDvd` int(6) NOT NULL,
  `RentBuyDvd2` int(6) NOT NULL,
  `LottoEtc` int(6) NOT NULL,
  `LottoEtc2` int(6) NOT NULL,
  `PrivateMedical` int(6) NOT NULL,
  `PrivateMedical2` int(6) NOT NULL,
  `MedicalExp` int(6) NOT NULL,
  `MedicalExp2` int(6) NOT NULL,
  `HouseInsure` int(6) NOT NULL,
  `HouseInsure2` int(6) NOT NULL,
  `FuneralFund` int(6) NOT NULL,
  `FuneralFund2` int(6) NOT NULL,
  `CarInsurance` int(6) NOT NULL,
  `CarInsurance2` int(6) NOT NULL,
  `Registration` int(6) NOT NULL,
  `Registration2` int(6) NOT NULL,
  `Petrol` int(6) NOT NULL,
  `Petrol2` int(6) NOT NULL,
  `TyresMaint` int(6) NOT NULL,
  `TyresMaint2` int(6) NOT NULL,
  `BusTrainTaxi` int(6) NOT NULL,
  `BusTrainTaxi2` int(6) NOT NULL,
  `OtherOther` int(6) NOT NULL,
  `OtherOther2` int(6) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_client_income`
--

CREATE TABLE `archive_client_income` (
  `ClientID` int(6) NOT NULL,
  `RentalID` int(6) NOT NULL,
  `LoanID` int(6) NOT NULL,
  `Fulltime` int(6) NOT NULL,
  `Fulltime2` int(6) NOT NULL,
  `Parttime` int(6) NOT NULL,
  `Partime2` int(6) NOT NULL,
  `Casual` int(6) NOT NULL,
  `Casual2` int(6) NOT NULL,
  `WeeklyIncomeSpare` varchar(35) NOT NULL,
  `WeeklyIncome1` int(6) NOT NULL,
  `WeeklyIncome2` int(6) NOT NULL,
  `Newstart` int(6) NOT NULL,
  `Newstart2` int(6) NOT NULL,
  `SpareBudget2` varchar(35) NOT NULL,
  `Benefits` int(6) NOT NULL,
  `Benefits2` int(6) NOT NULL,
  `MatureAge` int(6) NOT NULL,
  `MatureAge2` int(6) NOT NULL,
  `Sparebudget3` varchar(35) NOT NULL,
  `MatureAgBB1` int(6) NOT NULL,
  `MatureAgeB2` int(6) NOT NULL,
  `Carer` int(6) NOT NULL,
  `Carer2` int(6) NOT NULL,
  `Carer3` int(6) NOT NULL,
  `Carer4` int(6) NOT NULL,
  `Disability` int(6) NOT NULL,
  `Disability2` int(6) NOT NULL,
  `SpareBudget4` varchar(35) NOT NULL,
  `Disability3` int(6) NOT NULL,
  `Disability4` int(6) NOT NULL,
  `Parenting` int(6) NOT NULL,
  `Parenting2` int(6) NOT NULL,
  `LargeFamily` int(6) NOT NULL,
  `LargeFamily2` int(6) NOT NULL,
  `FamilyA` int(6) NOT NULL,
  `FamilyA2` int(6) NOT NULL,
  `FamilyB1` int(6) NOT NULL,
  `FamilyB2` int(6) NOT NULL,
  `SpareBudget5` varchar(35) NOT NULL,
  `FamilyB3` int(6) NOT NULL,
  `FamilyB4` int(6) NOT NULL,
  `RentAssist` int(6) NOT NULL,
  `RentAssist2` int(6) NOT NULL,
  `Pharmacy` int(6) NOT NULL,
  `Pharmacy2` int(6) NOT NULL,
  `Supliment` int(6) NOT NULL,
  `Supliment2` int(6) NOT NULL,
  `SpareBudget6` varchar(35) NOT NULL,
  `Supliment3` int(6) NOT NULL,
  `Supliment4` int(6) NOT NULL,
  `PhoneBudget` int(6) NOT NULL,
  `PhoneBudget2` int(6) NOT NULL,
  `SpareBudget7` varchar(35) NOT NULL,
  `PhoneBudget3` int(6) NOT NULL,
  `PhoneBudget4` int(6) NOT NULL,
  `ChildMaint` int(6) NOT NULL,
  `ChildMaint2` int(6) NOT NULL,
  `Board` int(6) NOT NULL,
  `Board2` int(6) NOT NULL,
  `OtherIncome` varchar(35) NOT NULL,
  `OtherIncomeB` varchar(35) NOT NULL,
  `OtherIncome1` int(6) NOT NULL,
  `OtherIncome2` int(6) NOT NULL,
  `OtherIncomeB1` int(6) NOT NULL,
  `OtherIncomeB2` int(6) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_client_product`
--

CREATE TABLE `archive_client_product` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `type` varchar(20) NOT NULL,
  `purpose` varchar(255) NOT NULL,
  `feature` varchar(150) NOT NULL,
  `product_type` varchar(150) NOT NULL,
  `product_purpose` varchar(250) NOT NULL,
  `security` varchar(200) NOT NULL,
  `other_feature` varchar(200) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_client_refrences`
--

CREATE TABLE `archive_client_refrences` (
  `ClientID` int(6) NOT NULL,
  `AgentID` int(6) NOT NULL,
  `Type` varchar(15) NOT NULL,
  `RentalID` int(6) NOT NULL,
  `LoanID` int(6) NOT NULL,
  `reference_number1` varchar(25) NOT NULL,
  `reference_number2` varchar(25) NOT NULL,
  `reference_number3` varchar(25) NOT NULL,
  `Status` int(11) NOT NULL,
  `Refrence_Name1` varchar(15) NOT NULL,
  `Refrence_LastName1` varchar(15) NOT NULL,
  `Refrence_LastName2` varchar(15) NOT NULL,
  `Refrence_LastName3` varchar(15) NOT NULL,
  `Refrence_Relationshion1` varchar(15) NOT NULL,
  `Reference_StreetAddress1` varchar(40) NOT NULL,
  `Refrence_Mobile1` varchar(10) NOT NULL,
  `Refrence_Name2` varchar(15) NOT NULL,
  `Refrence_Relationshion2` varchar(15) NOT NULL,
  `Reference_StreetAddress2` varchar(40) NOT NULL,
  `Refrence_Mobile1_1` varchar(20) NOT NULL,
  `Refrence_Name3` varchar(15) NOT NULL,
  `Refrence_Relationshion3` varchar(15) NOT NULL,
  `Reference_StreetAddress3` varchar(40) NOT NULL,
  `Refrence_Mobile1_2` varchar(10) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_client_verification_list`
--

CREATE TABLE `archive_client_verification_list` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `type` varchar(50) NOT NULL,
  `source_type` varchar(70) NOT NULL,
  `income_source` varchar(50) NOT NULL,
  `loan_payment` varchar(50) NOT NULL,
  `inc_expense` varchar(50) NOT NULL,
  `credit_history` varchar(50) NOT NULL,
  `liabilities` varchar(50) NOT NULL,
  `personal_circum` varchar(50) NOT NULL,
  `foreseable` varchar(50) NOT NULL,
  `other_factor` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_entertainment_client1`
--

CREATE TABLE `archive_entertainment_client1` (
  `entertainment_id` int(11) NOT NULL,
  `type` varchar(100) NOT NULL COMMENT 'loan/rent',
  `loan_rent_id` int(11) NOT NULL,
  `xmas_hampera` varchar(200) NOT NULL,
  `pay_tv` varchar(200) NOT NULL,
  `entertainment_gambling` varchar(200) NOT NULL,
  `other_expenses_or_downloads` varchar(200) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_entertainment_client2`
--

CREATE TABLE `archive_entertainment_client2` (
  `entertainment_id` int(11) NOT NULL,
  `type` varchar(150) NOT NULL COMMENT 'loan/rent',
  `loan_rent_id` int(11) NOT NULL,
  `xmas_hampera` varchar(200) NOT NULL,
  `pay_tv` varchar(200) NOT NULL,
  `entertainment_gambling` varchar(200) NOT NULL,
  `other_expenses_or_downloads` varchar(200) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_Images`
--

CREATE TABLE `archive_Images` (
  `ID` int(15) NOT NULL,
  `AgentID` int(15) NOT NULL,
  `RentalID` int(15) NOT NULL,
  `Status` int(11) NOT NULL DEFAULT '0',
  `Type` varchar(15) NOT NULL,
  `Images` text NOT NULL,
  `actual_name` text NOT NULL,
  `doc_type` varchar(150) NOT NULL COMMENT 'id,bank,income,privacy,miscell,contract,further,receipt',
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_loan_calculator`
--

CREATE TABLE `archive_loan_calculator` (
  `ID` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `Type` varchar(6) NOT NULL,
  `Description` varchar(100) NOT NULL,
  `InterestRate` varchar(200) NOT NULL,
  `Amount` varchar(150) NOT NULL,
  `Duration` varchar(11) NOT NULL,
  `StartDate` varchar(15) NOT NULL,
  `FirstDate` varchar(15) NOT NULL,
  `Daily_Payment_fees` varchar(150) NOT NULL,
  `Up_front_fees` varchar(110) NOT NULL,
  `Payment_frequency` varchar(20) NOT NULL,
  `Percentage_rate` varchar(11) NOT NULL,
  `CompanyNumber` varchar(100) NOT NULL,
  `Transcode` varchar(11) NOT NULL,
  `Monthly_fees` varchar(11) NOT NULL,
  `final_total` varchar(150) NOT NULL,
  `AgentID` int(15) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_notes`
--

CREATE TABLE `archive_notes` (
  `ClientID` int(6) NOT NULL,
  `AgentID` int(6) NOT NULL,
  `RentalID` int(6) NOT NULL,
  `Type` varchar(15) NOT NULL,
  `Status` varchar(15) NOT NULL,
  `Notes` text NOT NULL,
  `note_type` varchar(150) NOT NULL COMMENT 'Client/Mortgage/Loan/Rent',
  `future_finance` varchar(20) NOT NULL,
  `credit_history` varchar(20) NOT NULL,
  `bankrupt` varchar(20) NOT NULL,
  `assets_value` varchar(20) NOT NULL,
  `information` varchar(20) NOT NULL,
  `flexible_feature` varchar(20) NOT NULL,
  `additional_risk` varchar(20) NOT NULL,
  `MessageFromHeadOfice1` text NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL,
  `user_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_other_expenses_client1`
--

CREATE TABLE `archive_other_expenses_client1` (
  `other_exp_id` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(150) NOT NULL COMMENT 'loan/rent',
  `private_medical` varchar(255) NOT NULL,
  `medical_expenses` varchar(200) NOT NULL,
  `house_contents_insaurance` varchar(200) NOT NULL,
  `funeral_life_insaurance` varchar(200) NOT NULL,
  `vehicle_insaurance` varchar(200) NOT NULL,
  `vehicle_registration` varchar(200) NOT NULL,
  `petrol` varchar(200) NOT NULL,
  `tyres_repaires_maintenance` varchar(200) NOT NULL,
  `bus_train_taxis` varchar(200) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_other_expenses_client2`
--

CREATE TABLE `archive_other_expenses_client2` (
  `other_exp_id` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(150) NOT NULL COMMENT 'loan/rent',
  `private_medical` varchar(200) NOT NULL,
  `medical_expenses` varchar(200) NOT NULL,
  `house_contents_insaurance` varchar(200) NOT NULL,
  `funeral_life_insaurance` varchar(200) NOT NULL,
  `vehicle_insaurance` varchar(200) NOT NULL,
  `vehicle_registration` varchar(200) NOT NULL,
  `petrol` varchar(200) NOT NULL,
  `tyres_repaires_maintenance` varchar(200) NOT NULL,
  `bus_train_taxis` varchar(200) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_other_expenses_incomes`
--

CREATE TABLE `archive_other_expenses_incomes` (
  `id` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(255) NOT NULL COMMENT 'loan/rent',
  `type_expense_incomes` varchar(255) NOT NULL COMMENT 'income/benefits/expenses/personal_expenses/children/entertainment/others',
  `name` varchar(255) NOT NULL,
  `client1` varchar(255) NOT NULL,
  `client2` varchar(255) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_personal_expenses_client1`
--

CREATE TABLE `archive_personal_expenses_client1` (
  `personal_expense_id` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(150) NOT NULL COMMENT 'loan/rent',
  `clothes` varchar(200) NOT NULL,
  `tobacco` varchar(200) NOT NULL,
  `drinks` varchar(200) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_personal_expenses_client2`
--

CREATE TABLE `archive_personal_expenses_client2` (
  `personal_expens` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(150) NOT NULL COMMENT 'loan/rent',
  `clothes` varchar(200) NOT NULL,
  `tobacco` varchar(200) NOT NULL,
  `drinks` varchar(200) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_privacy_details`
--

CREATE TABLE `archive_privacy_details` (
  `id` int(11) NOT NULL,
  `rent_loan_id` int(11) NOT NULL,
  `type` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '1' COMMENT '1=>accepted , 0=>denied',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_rental_goods`
--

CREATE TABLE `archive_rental_goods` (
  `ClientID` int(6) NOT NULL,
  `RentalID` varchar(35) NOT NULL,
  `AgentID` int(15) NOT NULL,
  `Chattel1` varchar(50) NOT NULL,
  `Chattel2` varchar(50) NOT NULL,
  `Chattel3` varchar(50) NOT NULL,
  `Chattel4` varchar(50) NOT NULL,
  `Chattel5` varchar(50) NOT NULL,
  `Chattel6` varchar(50) NOT NULL,
  `Model1` varchar(40) NOT NULL,
  `Model2` varchar(40) NOT NULL,
  `Model3` varchar(40) NOT NULL,
  `Model4` varchar(40) NOT NULL,
  `Model5` varchar(40) NOT NULL,
  `Model6` varchar(40) NOT NULL,
  `ID1` varchar(45) NOT NULL,
  `ID2` varchar(45) NOT NULL,
  `ID3` varchar(45) NOT NULL,
  `ID4` varchar(45) NOT NULL,
  `ID5` varchar(45) NOT NULL,
  `ID6` varchar(45) NOT NULL,
  `Value1` varchar(50) NOT NULL,
  `Value2` varchar(50) NOT NULL,
  `Value3` varchar(50) NOT NULL,
  `Value4` varchar(50) NOT NULL,
  `Value5` varchar(50) NOT NULL,
  `Value6` varchar(50) NOT NULL,
  `Status` varchar(15) NOT NULL,
  `Weekly_Payment` varchar(50) NOT NULL,
  `rental1` varchar(50) NOT NULL,
  `rental2` varchar(50) NOT NULL,
  `rental3` varchar(50) NOT NULL,
  `rental4` varchar(50) NOT NULL,
  `rental5` varchar(50) NOT NULL,
  `rental6` varchar(50) NOT NULL,
  `Term` varchar(10) NOT NULL,
  `weekly_rent` varchar(50) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_rental_goods_vehicles`
--

CREATE TABLE `archive_rental_goods_vehicles` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `AgentID` int(11) NOT NULL,
  `stock_number` varchar(150) NOT NULL,
  `description` varchar(255) NOT NULL,
  `CurrentStatus` varchar(50) NOT NULL,
  `CurrentValue` varchar(50) NOT NULL,
  `gst` varchar(50) NOT NULL,
  `include_gst` varchar(50) NOT NULL,
  `exclude_gst` varchar(50) NOT NULL,
  `ItemCategory` varchar(50) NOT NULL,
  `PurchasedDate` varchar(50) NOT NULL,
  `PurchasedFrom` varchar(100) NOT NULL,
  `PurchasedPrice` varchar(50) NOT NULL,
  `RRPValue` varchar(50) NOT NULL,
  `Type` varchar(50) NOT NULL,
  `Accessories` varchar(100) NOT NULL,
  `BodyType` varchar(100) NOT NULL,
  `BondRequired` varchar(100) NOT NULL,
  `Colour` varchar(50) NOT NULL,
  `EngineNo` varchar(100) NOT NULL,
  `FurtherDesc` varchar(100) NOT NULL,
  `Hours` varchar(50) NOT NULL,
  `IMEINo` varchar(50) NOT NULL,
  `InvoiceNo` varchar(50) NOT NULL,
  `Kilometres` varchar(100) NOT NULL,
  `Location` varchar(100) NOT NULL,
  `Make` varchar(100) NOT NULL,
  `Model` varchar(100) NOT NULL,
  `ProductCode` varchar(100) NOT NULL,
  `RegistrationPlateNo` varchar(100) NOT NULL,
  `RegistrationState` varchar(100) NOT NULL,
  `SerialNo` varchar(100) NOT NULL,
  `SKUNo` varchar(100) NOT NULL,
  `VINNo` varchar(100) NOT NULL,
  `Year` varchar(20) NOT NULL,
  `term` varchar(20) NOT NULL,
  `weekly_payment` varchar(50) NOT NULL,
  `weekly_rent` varchar(50) NOT NULL,
  `rental_price` varchar(50) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0' COMMENT '0=>active, 1=>inactive',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `archive_rental_goods_vehicles_old`
--

CREATE TABLE `archive_rental_goods_vehicles_old` (
  `ClientID` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `AgentID` int(11) NOT NULL,
  `type` varchar(25) NOT NULL DEFAULT 'Rent',
  `description` varchar(255) NOT NULL,
  `entry_type` varchar(20) NOT NULL COMMENT 'goods or vehicles',
  `stock_number` varchar(200) NOT NULL,
  `serial_number` varchar(150) NOT NULL,
  `product_type` varchar(150) NOT NULL,
  `make` varchar(150) NOT NULL,
  `vehicle_year` varchar(20) NOT NULL,
  `model` varchar(150) NOT NULL,
  `color` varchar(150) NOT NULL,
  `engine_no` varchar(150) NOT NULL,
  `vin_no` varchar(150) NOT NULL,
  `further_description` varchar(255) NOT NULL,
  `purchased_from` varchar(255) NOT NULL,
  `goods_purchase_price` varchar(50) NOT NULL,
  `invoice_number` varchar(255) NOT NULL,
  `vehicle_sell_price` varchar(50) NOT NULL,
  `current_value` varchar(200) NOT NULL,
  `repair_costs` varchar(200) NOT NULL,
  `purchase_date` varchar(100) NOT NULL,
  `current_status` varchar(100) NOT NULL,
  `term` varchar(50) NOT NULL,
  `weekly_payment` varchar(30) NOT NULL,
  `weekly_rent` varchar(30) NOT NULL,
  `price` varchar(30) NOT NULL,
  `rental_price` varchar(30) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_total_budget_income`
--

CREATE TABLE `archive_total_budget_income` (
  `id` int(11) NOT NULL,
  `rent_loan_id` int(11) NOT NULL,
  `type` varchar(20) NOT NULL,
  `total_income` varchar(20) NOT NULL,
  `total_expenses` varchar(20) NOT NULL,
  `total_balance` varchar(20) NOT NULL,
  `available` varchar(20) NOT NULL,
  `delete_status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `archive_warning_details`
--

CREATE TABLE `archive_warning_details` (
  `id` int(11) NOT NULL,
  `rent_loan_id` int(11) NOT NULL,
  `type` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '1' COMMENT '1=>accepted , 0=>denied',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `bank_account_details`
--

CREATE TABLE `bank_account_details` (
  `bank_id` int(11) NOT NULL,
  `loan_rent_id` int(6) NOT NULL,
  `contract_date` varchar(20) NOT NULL,
  `Day` varchar(15) NOT NULL,
  `payment_date` varchar(20) NOT NULL,
  `amount` varchar(13) NOT NULL,
  `Bank` varchar(25) NOT NULL,
  `Branch` varchar(20) NOT NULL,
  `AccountName` varchar(30) NOT NULL,
  `BSB` varchar(7) NOT NULL,
  `AccountNumber` varchar(20) NOT NULL,
  `term` varchar(20) NOT NULL,
  `payment_frequency` varchar(50) NOT NULL,
  `payment_method` varchar(1500) NOT NULL,
  `Insurer` varchar(150) NOT NULL,
  `PolicyNumber` varchar(150) NOT NULL,
  `expiry_date` varchar(100) NOT NULL,
  `type` varchar(100) NOT NULL COMMENT 'loan/rental',
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `bank_account_details`
--

INSERT INTO `bank_account_details` (`bank_id`, `loan_rent_id`, `contract_date`, `Day`, `payment_date`, `amount`, `Bank`, `Branch`, `AccountName`, `BSB`, `AccountNumber`, `term`, `payment_frequency`, `payment_method`, `Insurer`, `PolicyNumber`, `expiry_date`, `type`, `delete_status`) VALUES
(1, 101, '19/01/2023', 'Wednesday', '26/01/2023', '0.00 Ex GST  ', '5+95959594984984984984984', '', '4698498498498498', '511784', '45949849849849884949', '', 'Fortnight', 'Direct Debit', '469849849849**-*79464949848449', '4558*8*8*899879798798797*79879798798798798', '12/01/2023', 'Loan', 0),
(2, 103, '23/01/2023', '', '', '59,898,489.00', '', '', '', '', '', '', 'Monthly', 'Direct Debit', '', '', '', 'Loan', 0),
(3, 105, '01/03/2023', '', '', '0.00 Ex GST  ', '', '', '', '', '', '', 'Monthly', 'Direct Debit', '', '', '', 'Loan', 0),
(4, 106, '01/03/2023', '', '', '0.00 Ex GST  ', '', '', '', '', '', '', 'Monthly', 'Direct Debit', '', '', '', 'Loan', 0),
(5, 107, '01/03/2023', 'Wednesday', '08/03/2023', '0.00 Ex GST  ', '', '', '', '', '', '', 'Monthly', 'Direct Debit', '', '', '', 'Loan', 0),
(6, 110, '03/03/2023', '', '', '', '', '', '', '', '', '', 'Monthly', 'Direct Debit', '', '', '', 'Loan', 0),
(7, 111, '06/03/2023', '', '', '0.00 Ex GST  ', '', '', '', '', '', '', 'Monthly', 'Direct Debit', '', '', '', 'Loan', 0),
(8, 112, '09/03/2023', '', '', '0.00 Ex GST  ', '', '', '', '', '', '', 'Monthly', 'Direct Debit', '', '', '', 'Loan', 0),
(9, 113, '09/03/2023', '', '', '0.00 Ex GST  ', '', '', '', '', '', '', 'Monthly', 'Direct Debit', '', '', '', 'Loan', 0),
(10, 115, '10/03/2023', '', '', '0.00 Ex GST  ', '', '', '', '', '', '', 'Monthly', 'Direct Debit', '', '', '', 'Loan', 0),
(11, 114, '10/03/2023', '', '', '0.00 Ex GST  ', '', '', '', '', '', '', 'Monthly', 'Direct Debit', '', '', '', 'Loan', 0),
(12, 116, '13/03/2023', '', '', '0.00 Ex GST  ', '', '', '', '', '', '', 'Monthly', 'Direct Debit', '', '', '', 'Loan', 0),
(13, 119, '13/03/2023', '', '', '', '', '', '', '', '', '', 'Monthly', 'Direct Debit', '', '', '', 'Loan', 0),
(14, 120, '14/03/2023', '', '', '0.00 Ex GST  ', '', '', '', '', '', '', 'Monthly', 'Direct Debit', '', '', '', 'Loan', 0),
(15, 121, '15/03/2023', '', '', '0.00 Ex GST  ', '', '', '', '', '', '', 'Monthly', 'Direct Debit', '', '', '', 'Loan', 0),
(16, 122, '16/03/2023', '', '', '0.00 Ex GST  ', '', '', '', '', '', '', 'Monthly', 'Direct Debit', '', '', '', 'Loan', 0),
(17, 123, '19/04/2023', 'Monday', '26/04/2023', '507.93 Ex GST', 'Bank of Heaven', '', 'Kerry Regan', '123456', '12345678900000000', '', 'Monthly', 'Direct Credit', 'Swanless', '123123123123', '19/04/2023', 'Loan', 0),
(18, 124, '18/07/2023', '', '', '0.00 Ex GST  ', '', '', '', '', '', '', 'Monthly', 'Direct Debit', '', '', '', 'Loan', 0),
(19, 125, '', 'Monday', '', '0.00 Ex GST  ', 'Bank of Heaven', '', 'Kerry Regan', '123456', '12345678900000000', '', 'Monthly', 'Direct Credit', '', '', '', 'Loan', 0),
(20, 126, '', 'Monday', '', '0.00 Ex GST  ', 'Bank of Heaven', '', 'Kerry Regan', '123456', '12345678900000000', '', 'Monthly', 'Direct Credit', '', '', '', 'Loan', 0),
(21, 127, '', 'Monday', '', '0.00 Ex GST  ', 'Bank of Heaven', '', 'Kerry Regan', '123456', '12345678900000000', '', 'Monthly', 'Direct Credit', '', '', '', 'Loan', 0),
(22, 128, '', 'Monday', '', '0.00 Ex GST  ', 'Bank of Heaven', '', 'Kerry Regan', '123456', '12345678900000000', '', 'Monthly', 'Direct Credit', '', '', '', 'Loan', 0),
(23, 129, '', 'Monday', '', '0.00 Ex GST  ', 'Bank of Heaven', '', 'Kerry Regan', '123456', '12345678900000000', '', 'Monthly', 'Direct Credit', '', '', '', 'Loan', 0),
(24, 130, '', 'Monday', '', '0.00 Ex GST  ', 'Bank of Heaven', '', 'Kerry Regan', '123456', '12345678900000000', '', 'Monthly', 'Direct Credit', '', '', '', 'Loan', 0),
(25, 131, '', 'Monday', '', '0.00 Ex GST  ', 'Bank of Heaven', '', 'Kerry Regan', '123456', '12345678900000000', '', 'Monthly', 'Direct Credit', '', '', '', 'Loan', 0),
(26, 132, '', 'Monday', '', '0.00 Ex GST  ', 'Bank of Heaven', '', 'Kerry Regan', '123456', '12345678900000000', '', 'Monthly', 'Direct Credit', '', '', '', 'Loan', 0),
(27, 133, '', 'Monday', '', '0.00 Ex GST  ', 'Bank of Heaven', '', 'Kerry Regan', '123456', '12345678900000000', '', 'Monthly', 'Direct Credit', '', '', '', 'Loan', 0),
(28, 134, '', 'Monday', '', '0.00 Ex GST  ', 'Bank of Heaven', '', 'Kerry Regan', '123456', '12345678900000000', '', 'Monthly', 'Direct Credit', '', '', '', 'Loan', 0),
(29, 135, '', 'Monday', '', '0.00 Ex GST  ', 'Bank of Heaven', '', 'Kerry Regan', '123456', '12345678900000000', '', 'Monthly', 'Direct Credit', '', '', '', 'Loan', 0),
(30, 136, '', 'Monday', '', '0.00 Ex GST  ', 'Bank of Heaven', '', 'Kerry Regan', '123456', '12345678900000000', '', 'Monthly', 'Direct Credit', '', '', '', 'Loan', 0),
(31, 137, '', 'Monday', '', '159.31 Ex GST', 'Bank of Heaven', '', 'Kerry Regan', '123456', '12345678900000000', '', 'Monthly', 'Direct Credit', '', '', '', 'Loan', 0);

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

--
-- Table structure for table `benefits_client1`
--

CREATE TABLE `benefits_client1` (
  `benefits_id_client1` int(11) NOT NULL,
  `full_time` varchar(150) NOT NULL,
  `part_time` varchar(150) NOT NULL,
  `casual` varchar(150) NOT NULL,
  `other_income` varchar(200) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(150) NOT NULL COMMENT 'loan/rent',
  `career` varchar(150) NOT NULL,
  `career2` varchar(200) NOT NULL,
  `disability` varchar(200) NOT NULL,
  `parenting` varchar(200) NOT NULL,
  `large_family` varchar(220) NOT NULL,
  `family_a` varchar(150) NOT NULL,
  `family_b` varchar(255) NOT NULL,
  `rent_assist` varchar(255) NOT NULL,
  `pharmacutical` varchar(225) NOT NULL,
  `suppliment` varchar(225) NOT NULL,
  `phone` varchar(200) NOT NULL,
  `child_maintainence` varchar(200) NOT NULL,
  `board_received` varchar(200) NOT NULL,
  `additional_income` varchar(200) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `benefits_client2`
--

CREATE TABLE `benefits_client2` (
  `benefit_id_client2` int(11) NOT NULL,
  `full_time` varchar(150) NOT NULL,
  `part_time` varchar(150) NOT NULL,
  `casual` varchar(150) NOT NULL,
  `other_income` varchar(200) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(150) NOT NULL COMMENT 'loan/rent',
  `career` varchar(255) NOT NULL,
  `career2` varchar(200) NOT NULL,
  `disability` varchar(255) NOT NULL,
  `parenting` varchar(200) NOT NULL,
  `large_family` varchar(200) NOT NULL,
  `family_a` varchar(200) NOT NULL,
  `family_b` varchar(255) NOT NULL,
  `rent_assist` varchar(200) NOT NULL,
  `pharmacutical` varchar(255) NOT NULL,
  `suppliment` varchar(200) NOT NULL,
  `phone` varchar(100) NOT NULL,
  `child_maintainence` varchar(200) NOT NULL,
  `board_received` varchar(200) NOT NULL,
  `additional_income` varchar(200) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `boat_assets`
--

CREATE TABLE `boat_assets` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL COMMENT 'hkjh',
  `description` varchar(225) NOT NULL,
  `make_model` varchar(150) NOT NULL,
  `ownership` varchar(150) NOT NULL,
  `value` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `director_number` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `boat_assets`
--

INSERT INTO `boat_assets` (`id`, `RentalID`, `description`, `make_model`, `ownership`, `value`, `status`, `timestamp`, `date`, `director_number`) VALUES
(1, 101, '', '', '', '', 0, '1674026545', '2023-01-10 11:10:39', 'one'),
(2, 102, '', '', '', '', 0, '1674212372', '2023-01-20 10:59:32', 'one'),
(3, 103, '', '', '', '', 0, '1674564245', '2023-01-24 12:44:05', 'one'),
(4, 105, '', '', '', '', 0, '1677653647', '2023-03-01 06:54:07', 'one'),
(5, 106, '', '', '', '', 0, '1677664242', '2023-03-01 09:50:34', 'one'),
(6, 111, '', '', '', '', 0, '1678099367', '2023-03-06 05:49:14', 'one'),
(7, 112, '', '', '', '', 0, '1678362010', '2023-03-09 04:15:29', 'one'),
(8, 113, '', '', '', '', 0, '1678361005', '2023-03-09 10:33:07', 'one'),
(9, 115, '', '', '', '', 0, '1678423301', '2023-03-10 04:41:41', 'one'),
(10, 114, '', '', '', '', 0, '1678687664', '2023-03-13 06:07:44', 'one'),
(11, 116, '', '', '', '', 0, '1678700692', '2023-03-13 09:15:43', 'one'),
(12, 119, '', '', '', '', 0, '1678790107', '2023-03-13 12:26:17', 'one'),
(13, 120, '', '', '', '', 0, '1678859740', '2023-03-14 07:46:38', 'one'),
(14, 121, '', '', '', '', 0, '1678953095', '2023-03-16 07:51:35', 'one'),
(15, 122, '', '', '', '', 0, '1679050568', '2023-03-17 00:08:03', 'one'),
(16, 107, '', '', '', '', 0, '1681787755', '2023-04-18 03:15:55', 'one'),
(17, 123, 'Car', 'zdfsdf', '50', '10,000', 0, '1697453008', '2023-04-18 23:29:07', 'one'),
(18, 124, '', '', '', '', 0, '1689901421', '2023-07-18 11:18:18', 'one'),
(19, 123, '', '', '', '', 0, '1695885761', '2023-09-28 07:22:41', 'three'),
(20, 123, 'CarHyundai', 'Hyundai', '100', '35,000', 0, '1696827610', '2023-10-09 04:24:23', 'two'),
(21, 125, '', '', '', '', 0, '1696828570', '2023-10-09 05:16:10', 'one'),
(22, 137, '', '', '', '', 0, '1701316855', '2023-11-30 00:35:12', 'one'),
(23, 137, '', '', '', '', 0, '1701316855', '2023-11-30 04:00:55', 'one');

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

--
-- Table structure for table `budget_expenses_client1`
--

CREATE TABLE `budget_expenses_client1` (
  `b_expenses_id_client1` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(200) NOT NULL COMMENT 'loan/rent',
  `rent_or_board` varchar(200) NOT NULL,
  `mortgage` varchar(255) NOT NULL,
  `rates` varchar(255) NOT NULL,
  `electricity` varchar(255) NOT NULL,
  `phone` varchar(255) NOT NULL,
  `internet` varchar(255) NOT NULL,
  `gas` varchar(255) NOT NULL,
  `mobile` varchar(100) NOT NULL,
  `water_rates` varchar(200) NOT NULL,
  `rental_goods` varchar(255) NOT NULL,
  `centrelink1` varchar(255) NOT NULL,
  `centrelink2` varchar(255) NOT NULL,
  `centrelink3` varchar(255) NOT NULL,
  `centre_text1` varchar(150) NOT NULL,
  `centre_text2` varchar(150) NOT NULL,
  `centre_text3` varchar(150) NOT NULL,
  `credit_card` varchar(200) NOT NULL,
  `loan1` varchar(255) NOT NULL,
  `loan2` varchar(255) NOT NULL,
  `loan3` varchar(255) NOT NULL,
  `loan_text1` varchar(150) NOT NULL,
  `loan_text2` varchar(150) NOT NULL,
  `loan_text3` varchar(150) NOT NULL,
  `car_loan` varchar(255) NOT NULL,
  `state_debt` varchar(255) NOT NULL,
  `groceries` varchar(255) NOT NULL,
  `takeaway` varchar(255) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `budget_expenses_client2`
--

CREATE TABLE `budget_expenses_client2` (
  `b_expenses_id_client2` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(200) NOT NULL COMMENT 'loan/rent',
  `rent_or_board` varchar(255) NOT NULL,
  `mortgage` varchar(255) NOT NULL,
  `rates` varchar(255) NOT NULL,
  `electricity` varchar(255) NOT NULL,
  `gas` varchar(200) NOT NULL,
  `phone` varchar(200) NOT NULL,
  `internet` varchar(200) NOT NULL,
  `mobile` varchar(200) NOT NULL,
  `water_rates` varchar(200) NOT NULL,
  `rental_goods` varchar(200) NOT NULL,
  `centrelink1` varchar(255) NOT NULL,
  `centrelink2` varchar(255) NOT NULL,
  `centrelink3` varchar(255) NOT NULL,
  `credit_card` varchar(200) NOT NULL,
  `loan1` varchar(255) NOT NULL,
  `loan2` varchar(255) NOT NULL,
  `loan3` varchar(255) NOT NULL,
  `car_loan` varchar(255) NOT NULL,
  `state_debt` varchar(255) NOT NULL,
  `groceries` varchar(255) NOT NULL,
  `takeaway` varchar(255) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `budget_income_client1`
--

CREATE TABLE `budget_income_client1` (
  `budget_id_client1` int(11) NOT NULL,
  `full_time` varchar(200) NOT NULL,
  `part_time` varchar(100) NOT NULL,
  `casual` varchar(150) NOT NULL,
  `other_income` varchar(200) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(150) NOT NULL COMMENT 'loan/rent',
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `budget_income_client2`
--

CREATE TABLE `budget_income_client2` (
  `budget_id_client2` int(11) NOT NULL,
  `full_time` varchar(150) NOT NULL,
  `part_time` varchar(150) NOT NULL,
  `casual` varchar(150) NOT NULL,
  `other_income` varchar(200) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(150) NOT NULL COMMENT 'loan/rent',
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `bulletin`
--

CREATE TABLE `bulletin` (
  `id` int(11) NOT NULL,
  `company_id` int(11) NOT NULL,
  `create_type` varchar(50) NOT NULL DEFAULT 'admin' COMMENT 'admin/subadmin',
  `sender_id` int(11) NOT NULL,
  `subject` varchar(255) NOT NULL,
  `content` longtext NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0' COMMENT '0=>active, 1=>inactive',
  `timestamp` varchar(50) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `business_accounts_detail`
--

CREATE TABLE `business_accounts_detail` (
  `id` int(11) NOT NULL,
  `business_id` int(11) NOT NULL,
  `director_id` int(11) NOT NULL,
  `first_name` varchar(40) NOT NULL,
  `middle_name` varchar(40) NOT NULL,
  `last_name` varchar(40) NOT NULL,
  `phone` varchar(20) NOT NULL,
  `mobile` varchar(20) NOT NULL,
  `email` varchar(40) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_accounts_detail`
--

INSERT INTO `business_accounts_detail` (`id`, `business_id`, `director_id`, `first_name`, `middle_name`, `last_name`, `phone`, `mobile`, `email`) VALUES
(1, 23, 23, 'Max', 'j', 'Delerry', '0418229816', '0418229816', 'kerry@datasafeapps.com.au'),
(2, 25, 28, 'Max', 'j', 'Delerry', '0418229816', '0418229816', 'kerry@datasafeapps.com.au'),
(3, 26, 30, 'Max', 'j', 'Delerry', '0418229816', '0418229816', 'kerry@datasafeapps.com.au'),
(4, 27, 32, 'Max', 'j', 'Delerry', '0418229816', '0418229816', 'kerry@datasafeapps.com.au'),
(5, 28, 34, 'Max', 'j', 'Delerry', '0418229816', '0418229816', 'kerry@datasafeapps.com.au'),
(6, 29, 36, 'Max', 'j', 'Delerry', '0418229816', '0418229816', 'kerry@datasafeapps.com.au'),
(7, 30, 38, 'Max', 'j', 'Delerry', '0418229816', '0418229816', 'kerry@datasafeapps.com.au'),
(8, 31, 40, 'Max', 'j', 'Delerry', '0418229816', '0418229816', 'kerry@datasafeapps.com.au'),
(9, 32, 42, 'Max', 'j', 'Delerry', '0418229816', '0418229816', 'kerry@datasafeapps.com.au'),
(10, 33, 44, 'Max', 'j', 'Delerry', '0418229816', '0418229816', 'kerry@datasafeapps.com.au'),
(11, 34, 46, 'Max', 'j', 'Delerry', '0418229816', '0418229816', 'kerry@datasafeapps.com.au'),
(12, 35, 48, 'Max', 'j', 'Delerry', '0418229816', '0418229816', 'kerry@datasafeapps.com.au'),
(13, 36, 50, 'Max', 'j', 'Delerry', '0418229816', '0418229816', 'kerry@datasafeapps.com.au'),
(14, 37, 52, 'Max', 'j', 'Delerry', '0418229816', '0418229816', 'kerry@datasafeapps.com.au');

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

--
-- Table structure for table `business_accounts_detail_address`
--

CREATE TABLE `business_accounts_detail_address` (
  `id` int(11) NOT NULL,
  `business_account_id` int(11) NOT NULL,
  `business_address` varchar(50) NOT NULL,
  `suburb` varchar(30) NOT NULL,
  `state` varchar(30) NOT NULL,
  `postcode` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_accounts_detail_address`
--

INSERT INTO `business_accounts_detail_address` (`id`, `business_account_id`, `business_address`, `suburb`, `state`, `postcode`) VALUES
(72, 3, '3456 Winton street', 'Lichart', 'NSW', '2056'),
(73, 4, '3456 Winton street', 'Lichart', 'NSW', '2056'),
(74, 5, '3456 Winton street', 'Lichart', 'NSW', '2056'),
(75, 6, '3456 Winton street', 'Lichart', 'NSW', '2056'),
(76, 7, '3456 Winton street', 'Lichart', 'NSW', '2056'),
(77, 8, '3456 Winton street', 'Lichart', 'NSW', '2056'),
(78, 9, '3456 Winton street', 'Lichart', 'NSW', '2056'),
(80, 10, '3456 Winton street', 'Lichart', 'NSW', '2056'),
(81, 11, '3456 Winton street', 'Lichart', 'NSW', '2056'),
(98, 12, '3456 Winton street', 'Lichart', 'NSW', '2056'),
(101, 2, '3456 Winton street', 'Lichart', 'NSW', '2056'),
(111, 1, '3456 Winton street', 'Lichart', 'NSW', '2056'),
(113, 13, '3456 Winton street', 'Lichart', 'NSW', '2056'),
(118, 14, '3456 Winton street', 'Lichart', 'NSW', '2056');

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

--
-- Table structure for table `business_address`
--

CREATE TABLE `business_address` (
  `id` int(11) NOT NULL,
  `business_id` int(11) NOT NULL,
  `street_address` varchar(100) NOT NULL,
  `suburb` varchar(50) NOT NULL,
  `state` varchar(50) NOT NULL,
  `postcode` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_address`
--

INSERT INTO `business_address` (`id`, `business_id`, `street_address`, `suburb`, `state`, `postcode`) VALUES
(193, 1, '', '', '', ''),
(194, 1, '', '', '', ''),
(197, 2, '', '', '', ''),
(198, 2, '', '', '', ''),
(203, 4, '', '', '', ''),
(204, 4, '', '', '', ''),
(227, 5, '', '', '', ''),
(228, 5, '', '', '', ''),
(235, 3, '', '', '', ''),
(236, 3, '', '', '', ''),
(239, 8, '', '', '', ''),
(240, 8, '', '', '', ''),
(245, 9, '', '', '', ''),
(246, 9, '', '', '', ''),
(251, 10, '', '', '', ''),
(252, 10, '', '', '', ''),
(279, 11, '', '', '', ''),
(280, 11, '', '', '', ''),
(321, 12, '', '', '', ''),
(322, 12, '', '', '', ''),
(327, 13, '', '', '', ''),
(328, 13, '', '', '', ''),
(329, 15, '', '', '', ''),
(330, 15, '', '', '', ''),
(345, 17, '', '', '', ''),
(346, 17, '', '', '', ''),
(351, 14, '', '', '', ''),
(352, 14, '', '', '', ''),
(377, 19, '', '', '', ''),
(378, 19, '', '', '', ''),
(389, 20, '', '', '', ''),
(390, 20, '', '', '', ''),
(391, 16, '', '', '', ''),
(392, 16, '', '', '', ''),
(395, 18, '', '', '', ''),
(396, 18, '', '', '', ''),
(445, 21, '', '', '', ''),
(446, 21, '', '', '', ''),
(447, 7, '21A/100 Old Pacific Highway', 'Oxenford', 'QLD', '4210'),
(448, 7, '', '', '', ''),
(489, 24, '2/54 Sara ave', 'palm beach', 'QLD', '4221'),
(490, 24, '', '', '', ''),
(599, 26, '21A 100-106 Old Pacific Highway', 'Oxenford', 'QLD', '4213'),
(600, 26, '', '', '', ''),
(607, 27, '21A 100-106 Old Pacific Highway', 'Oxenford', 'QLD', '4213'),
(608, 27, '', '', '', ''),
(609, 28, '21A 100-106 Old Pacific Highway', 'Oxenford', 'QLD', '4213'),
(610, 28, '', '', '', ''),
(611, 29, '21A 100-106 Old Pacific Highway', 'Oxenford', 'QLD', '4213'),
(612, 29, '', '', '', ''),
(613, 30, '21A 100-106 Old Pacific Highway', 'Oxenford', 'QLD', '4213'),
(614, 30, '', '', '', ''),
(615, 31, '21A 100-106 Old Pacific Highway', 'Oxenford', 'QLD', '4213'),
(616, 31, '', '', '', ''),
(617, 32, '21A 100-106 Old Pacific Highway', 'Oxenford', 'QLD', '4213'),
(618, 32, '', '', '', ''),
(621, 33, '21A 100-106 Old Pacific Highway', 'Oxenford', 'QLD', '4213'),
(622, 33, '', '', '', ''),
(623, 34, '21A 100-106 Old Pacific Highway', 'Oxenford', 'QLD', '4213'),
(624, 34, '', '', '', ''),
(696, 22, '', '', '', ''),
(697, 22, '', '', '', ''),
(706, 6, '', '', '', ''),
(707, 6, '', '', '', ''),
(724, 35, '21A 100-106 Old Pacific Highway', 'Oxenford', 'QLD', '4213'),
(725, 35, '', '', '', ''),
(730, 25, '21A 100-106 Old Pacific Highway', 'Oxenford', 'QLD', '4213'),
(731, 25, '', '', '', ''),
(750, 23, '21A 100-106 Old Pacific Highway', 'Oxenford', 'QLD', '4213'),
(751, 23, '', '', '', ''),
(754, 36, '21A 100-106 Old Pacific Highway', 'Oxenford', 'QLD', '4213'),
(755, 36, '', '', '', ''),
(764, 37, '21A 100-106 Old Pacific Highway', 'Oxenford', 'QLD', '4213'),
(765, 37, '', '', '', '');

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

--
-- Table structure for table `business_application_jot`
--

CREATE TABLE `business_application_jot` (
  `id` int(11) NOT NULL,
  `jot_id` varchar(200) NOT NULL,
  `tradingName` varchar(200) NOT NULL,
  `companyName` varchar(255) NOT NULL,
  `companyTrust` varchar(200) NOT NULL,
  `gstRegistered` varchar(100) NOT NULL,
  `abn` varchar(100) NOT NULL,
  `business_address_1` varchar(255) NOT NULL,
  `business_address_2` varchar(255) NOT NULL,
  `business_city` varchar(150) NOT NULL,
  `business_state` varchar(50) NOT NULL,
  `business_postcode` varchar(20) NOT NULL,
  `business_Postal_address1` varchar(255) NOT NULL,
  `business_Postal_address2` varchar(255) NOT NULL,
  `business_postal_city` varchar(150) NOT NULL,
  `business_postal_state` varchar(50) NOT NULL,
  `business_postal_postcode` varchar(20) NOT NULL,
  `businesstype` varchar(255) NOT NULL,
  `businessStart` varchar(70) NOT NULL,
  `business_year` varchar(50) NOT NULL,
  `business_month` varchar(50) NOT NULL,
  `businessContactName` varchar(255) NOT NULL,
  `businessPhoneNumber` varchar(50) NOT NULL,
  `businessEmail` varchar(200) NOT NULL,
  `dir1_title` varchar(20) NOT NULL,
  `dir1_firstname` varchar(200) NOT NULL,
  `dir1_middlename` varchar(200) NOT NULL,
  `dir1_lastname` varchar(200) NOT NULL,
  `dir1_position` varchar(150) NOT NULL,
  `dir1_dob` varchar(50) NOT NULL,
  `dir1_home_address1` varchar(255) NOT NULL,
  `dir1_home_address2` varchar(255) NOT NULL,
  `dir1_city` varchar(150) NOT NULL,
  `dir1_state` varchar(100) NOT NULL,
  `dir1_postcode` varchar(20) NOT NULL,
  `dir1_mobile` varchar(50) NOT NULL,
  `dir1_email` varchar(150) NOT NULL,
  `dir1_driverlicence` varchar(200) NOT NULL,
  `dir1_rent` varchar(50) NOT NULL,
  `dir1_mortgage_provider` varchar(150) NOT NULL,
  `dir1_homevalue` varchar(100) NOT NULL,
  `dir1_mortgage_balance` varchar(100) NOT NULL,
  `dir1_year` varchar(20) NOT NULL,
  `dir1_month` varchar(20) NOT NULL,
  `dir2_title` varchar(50) NOT NULL,
  `dir2_firstname` varchar(200) NOT NULL,
  `dir2_middlename` varchar(200) NOT NULL,
  `dir2_lastname` varchar(200) NOT NULL,
  `dir2_home_address1` varchar(255) NOT NULL,
  `dir2_home_address2` varchar(255) NOT NULL,
  `dir2_city` varchar(100) NOT NULL,
  `dir2_state` varchar(50) NOT NULL,
  `dir2_postcode` varchar(20) NOT NULL,
  `dir2_mobile` varchar(50) NOT NULL,
  `dir2_email` varchar(200) NOT NULL,
  `dir2_dob` varchar(150) NOT NULL,
  `dir2_position` varchar(150) NOT NULL,
  `dir2_driverlicence` varchar(150) NOT NULL,
  `dir2_rent` varchar(50) NOT NULL,
  `dir2_mortgage_provider` varchar(150) NOT NULL,
  `dir2_homevalue` varchar(100) NOT NULL,
  `dir2_mortgage_balance` varchar(100) NOT NULL,
  `dir2_year` varchar(20) NOT NULL,
  `dir2_month` varchar(20) NOT NULL,
  `supplier_name` varchar(200) NOT NULL,
  `supplier_contactname` varchar(200) NOT NULL,
  `supplier_phone` varchar(200) NOT NULL,
  `equipment_brandname` varchar(200) NOT NULL,
  `equipment_cost_exgst` varchar(200) NOT NULL,
  `balloon_payment` varchar(200) NOT NULL,
  `accountant_firstname` varchar(200) NOT NULL,
  `accountant_lastname` varchar(200) NOT NULL,
  `accountant_phone` varchar(50) NOT NULL,
  `tradeReference1` varchar(255) NOT NULL,
  `tradephone1` varchar(50) NOT NULL,
  `tradeReference2` varchar(250) NOT NULL,
  `tradephone2` varchar(50) NOT NULL,
  `annual_turnover` varchar(50) NOT NULL,
  `netprofit` varchar(50) NOT NULL,
  `facility` varchar(100) NOT NULL,
  `finance_type` varchar(150) NOT NULL,
  `term` varchar(100) NOT NULL,
  `amountIncGST` varchar(100) NOT NULL,
  `select_loan` varchar(100) NOT NULL,
  `director_remuneration` varchar(200) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT '0',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `business_calculator`
--

CREATE TABLE `business_calculator` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `company_id` int(11) NOT NULL,
  `select_loan` varchar(150) NOT NULL,
  `assets_value` varchar(150) NOT NULL,
  `loan_type` varchar(150) NOT NULL,
  `inc_exc_gst` varchar(150) NOT NULL,
  `assets_gst` varchar(150) NOT NULL,
  `term` varchar(150) NOT NULL,
  `funding_cost` varchar(150) NOT NULL,
  `customer_rate` varchar(150) NOT NULL,
  `broker_rate` varchar(150) NOT NULL,
  `broker_fee` varchar(150) NOT NULL,
  `broker_gst_amt` varchar(150) NOT NULL,
  `frequency` varchar(150) NOT NULL,
  `lux_car_tax` varchar(150) NOT NULL,
  `balloon_percent` varchar(150) NOT NULL,
  `balloon_payment` varchar(150) NOT NULL,
  `upfront` varchar(150) NOT NULL,
  `upfront_exgst` varchar(150) NOT NULL,
  `advance` varchar(100) NOT NULL,
  `start_date` varchar(100) NOT NULL,
  `first_payment_amt_exc_gst` varchar(200) NOT NULL,
  `first_payment_amt_inc_gst` varchar(200) NOT NULL,
  `total_payment_amt_exc_gst` varchar(200) NOT NULL,
  `total_payment_amt_inc_gst` varchar(200) NOT NULL,
  `last_payment_amt_exc_gst` varchar(200) NOT NULL,
  `last_payment_amt_inc_gst` varchar(200) NOT NULL,
  `total_cost_exc_gst` varchar(200) NOT NULL,
  `total_cost_inc_gst` varchar(200) NOT NULL,
  `balloon_exc_gst` varchar(200) NOT NULL,
  `balloon_inc_gst` varchar(200) NOT NULL,
  `month24_amount_exc_gst` varchar(200) NOT NULL,
  `month24_amount_inc_gst` varchar(200) NOT NULL,
  `month36_amount_exc_gst` varchar(200) NOT NULL,
  `month36_amount_inc_gst` varchar(200) NOT NULL,
  `month48_amount_exc_gst` varchar(200) NOT NULL,
  `month48_amount_inc_gst` varchar(200) NOT NULL,
  `month60_amount_exc_gst` varchar(200) NOT NULL,
  `month60_amount_inc_gst` varchar(200) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_calculator`
--

INSERT INTO `business_calculator` (`id`, `RentalID`, `company_id`, `select_loan`, `assets_value`, `loan_type`, `inc_exc_gst`, `assets_gst`, `term`, `funding_cost`, `customer_rate`, `broker_rate`, `broker_fee`, `broker_gst_amt`, `frequency`, `lux_car_tax`, `balloon_percent`, `balloon_payment`, `upfront`, `upfront_exgst`, `advance`, `start_date`, `first_payment_amt_exc_gst`, `first_payment_amt_inc_gst`, `total_payment_amt_exc_gst`, `total_payment_amt_inc_gst`, `last_payment_amt_exc_gst`, `last_payment_amt_inc_gst`, `total_cost_exc_gst`, `total_cost_inc_gst`, `balloon_exc_gst`, `balloon_inc_gst`, `month24_amount_exc_gst`, `month24_amount_inc_gst`, `month36_amount_exc_gst`, `month36_amount_inc_gst`, `month48_amount_exc_gst`, `month48_amount_inc_gst`, `month60_amount_exc_gst`, `month60_amount_inc_gst`, `status`, `delete_status`, `timestamp`, `created_at`) VALUES
(1, 101, 2, 'Motor Vehicle & Trucks Under 10 Years', '', '', '', '', '', '', '', '', '', '', 'Monthly', 'No', '', '', '', '', '0', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, '', '2023-01-05 11:27:11'),
(2, 102, 2, 'Motor Vehicle & Trucks Under 10 Years', '', '', '', '', '', '', '', '', '', '', 'Monthly', 'No', '', '', '', '', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, '', '2023-01-20 06:18:51'),
(3, 103, 2, 'Major Equipment', '59,898,489', 'Chattel', 'Ex GST', '4,984,984', '180', '0', '', '0', '0', '0', 'Monthly', 'Yes', '4,984,984', '347,041,515,451.95', '', '', '0', '13/01/2023', '', '', '', '', '', '', '6,961,737.8', '7,657,911.58', '347,041,515,451.952', '381,745,666,997.15', '', '', '', '', '', '', '', '', 0, 0, '', '2023-01-23 07:12:42'),
(4, 104, 2, 'Major Equipment', '59,898,489', 'Chattel', 'Ex GST', '4,984,984', '180', '', '', '', '', '', 'Fortnightly', 'Yes', '4,984,984', '59,598,598', '', '', '0', '13/01/2023', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, '', '2023-01-23 07:12:43'),
(5, 105, 2, 'Motor Vehicle & Trucks Under 10 Years', '', '', '', '', '', '', '', '', '', '', 'Monthly', 'No', '', '', '', '', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, '', '2023-03-01 06:53:57'),
(6, 106, 2, 'Motor Vehicle & Trucks Under 10 Years', '', '', '', '', '', '', '', '', '', '', 'Monthly', 'No', '', '', '', '', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, '', '2023-03-01 09:45:48'),
(7, 107, 2, 'Motor Vehicle & Trucks Under 10 Years', '', '', '', '', '', '', '', '', '', '', 'Monthly', 'No', '', '', '', '', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, '', '2023-03-01 11:48:18'),
(8, 110, 2, 'Motor Vehicle & Trucks Under 10 Years', '', '', '', '', '', '', '', '', '', '', 'Monthly', 'No', '', '', '', '', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, '', '2023-03-03 04:56:37'),
(9, 111, 2, 'Motor Vehicle & Trucks Under 10 Years', '', '', '', '', '', '', '', '', '', '', 'Monthly', 'No', '', '', '', '', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, '', '2023-03-06 05:14:49'),
(10, 112, 2, 'Motor Vehicle & Trucks Under 10 Years', '', '', '', '', '', '', '', '', '', '', 'Monthly', 'No', '', '', '', '', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, '', '2023-03-09 05:40:42'),
(11, 113, 2, 'Motor Vehicle & Trucks Under 10 Years', '', 'Rental', '', '', '', '', '', '', '', '', 'Monthly', 'No', '', '', '', '', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, '', '2023-03-09 10:32:23'),
(12, 115, 2, 'Motor Vehicle & Trucks Under 10 Years', '', '', '', '', '', '', '', '', '', '', 'Monthly', 'No', '', '', '', '', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, '', '2023-03-10 04:39:31'),
(13, 114, 2, 'Motor Vehicle & Trucks Under 10 Years', '', '', '', '', '', '', '', '', '', '', 'Monthly', 'No', '', '', '', '', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, '', '2023-03-13 05:55:16'),
(14, 116, 2, 'Motor Vehicle & Trucks Under 10 Years', '', '', '', '', '', '', '', '', '', '', 'Monthly', 'No', '', '', '', '', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, '', '2023-03-13 09:33:14'),
(16, 119, 2, 'Motor Vehicle & Trucks Under 10 Years', '', '', '', '', '', '', '', '', '', '', 'Monthly', 'No', '', '', '', '', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, '', '2023-03-14 10:58:52'),
(17, 120, 2, 'Motor Vehicle & Trucks Under 10 Years', '', '', '', '', '', '', '', '', '', '', 'Monthly', 'No', '', '', '', '', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, '', '2023-03-15 05:55:35'),
(18, 121, 2, 'Motor Vehicle & Trucks Under 10 Years', '', '', '', '', '', '', '', '', '', '', 'Monthly', 'No', '', '', '', '', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, '', '2023-03-16 01:23:08'),
(19, 122, 2, 'Motor Vehicle & Trucks Under 10 Years', '', '', '', '', '', '', '', '', '', '', 'Monthly', 'No', '', '', '', '', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, '', '2023-03-17 00:07:36'),
(20, 123, 2, 'General Equipment', '22,030.91', 'Chattel', 'Ex GST', '20,028.1', '60', '	15.00', '19.49839', '	8.00', '1,762.47', '1,586.23', 'Monthly', 'No', '10', '2,203.09', '2,000', '1,818.18', '0', '16/10/2023', '', '', '', '', '', '', '23,969.63', '26,366.59', '2,203.091', '2,423.4', '1,032.17', '1,135.39', '735.52', '809.07', '591.9', '651.09', '507.93', '558.72', 0, 0, '', '2023-04-18 23:12:29'),
(21, 124, 2, 'Motor Vehicle & Trucks Under 10 Years', '', '', '', '', '', '', '', '', '', '', 'Monthly', 'No', '', '', '', '', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, '', '2023-07-19 04:18:21'),
(22, 125, 2, 'Motor Vehicle & Trucks Under 10 Years', '', '', '', '', '', '', '', '', '', '', 'Monthly', 'No', '', '', '', '', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, '', '2023-10-09 05:15:52'),
(23, 135, 2, 'Motor Vehicle & Trucks Under 10 Years', '', '', '', '', '', '', '', '', '', '', 'Monthly', 'No', '', '', '', '', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, '', '2023-10-09 07:26:25'),
(24, 137, 2, 'Motor Vehicle & Trucks Under 10 Years', '10,000', 'Rental', 'Ex GST', '9,090.91', '60', '	6.30', '8.70951', '	6.00', '545.46', '490.91', 'Monthly', 'No', '10', '909.09', '1,000', '909.09', '1', '10/10/2023', '909.09', '1,000', '159.31', '175.24', '159.31', '175.24', '9,636.37', '10,600', '909.091', '1,000', '366.79', '403.47', '250.06', '275.07', '193.04', '212.35', '159.31', '175.24', 0, 0, '', '2023-10-09 23:34:42'),
(25, 136, 2, 'Motor Vehicle & Trucks Under 10 Years', '', '', '', '', '', '', '', '', '', '', 'Monthly', 'No', '', '', '', '', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, '', '2023-10-15 23:17:23');

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

--
-- Table structure for table `business_calculator_details`
--

CREATE TABLE `business_calculator_details` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `date` varchar(100) NOT NULL,
  `rate` varchar(100) NOT NULL,
  `net_price` varchar(100) NOT NULL,
  `other_charges` varchar(100) NOT NULL DEFAULT '0',
  `gst` varchar(100) NOT NULL,
  `gross` varchar(100) NOT NULL,
  `invest_balance` varchar(100) NOT NULL,
  `interest_earned` varchar(100) NOT NULL,
  `payment_DCF` varchar(100) NOT NULL,
  `payment_balance` varchar(100) NOT NULL,
  `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_calculator_details`
--

INSERT INTO `business_calculator_details` (`id`, `RentalID`, `date`, `rate`, `net_price`, `other_charges`, `gst`, `gross`, `invest_balance`, `interest_earned`, `payment_DCF`, `payment_balance`, `time`, `status`) VALUES
(59, 137, '2023-10-10', '6.3', '159.31', '0', '0', '159.31', '9477.06', '0', '9636.37', '0', '2023-11-30 03:25:42', 0),
(60, 137, '2023-11-10', '6.3', '159.31', '0', '0', '159.31', '9367.5', '49.75', '9526.81', '-159.31', '2023-11-30 03:25:42', 0),
(61, 137, '2023-12-10', '6.3', '159.31', '0', '0', '159.31', '9257.37', '49.18', '9416.68', '-318.62', '2023-11-30 03:25:42', 0),
(62, 137, '2024-01-10', '6.3', '159.31', '0', '0', '159.31', '9146.67', '48.6', '9305.98', '-477.93', '2023-11-30 03:25:42', 0),
(63, 137, '2024-02-10', '6.3', '159.31', '0', '0', '159.31', '9035.38', '48.02', '9194.69', '-637.24', '2023-11-30 03:25:42', 0),
(64, 137, '2024-03-10', '6.3', '159.31', '0', '0', '159.31', '8923.5', '47.44', '9082.81', '-796.55', '2023-11-30 03:25:42', 0),
(65, 137, '2024-04-10', '6.3', '159.31', '0', '0', '159.31', '8811.04', '46.85', '8970.35', '-955.86', '2023-11-30 03:25:42', 0),
(66, 137, '2024-05-10', '6.3', '159.31', '0', '0', '159.31', '8697.99', '46.26', '8857.3', '-1115.17', '2023-11-30 03:25:42', 0),
(67, 137, '2024-06-10', '6.3', '159.31', '0', '0', '159.31', '8584.34', '45.66', '8743.65', '-1274.48', '2023-11-30 03:25:42', 0),
(68, 137, '2024-07-10', '6.3', '159.31', '0', '0', '159.31', '8470.1', '45.07', '8629.41', '-1433.79', '2023-11-30 03:25:42', 0),
(69, 137, '2024-08-10', '6.3', '159.31', '0', '0', '159.31', '8355.26', '44.47', '8514.57', '-1593.1', '2023-11-30 03:25:42', 0),
(70, 137, '2024-09-10', '6.3', '159.31', '0', '0', '159.31', '8239.81', '43.87', '8399.12', '-1752.41', '2023-11-30 03:25:42', 0),
(71, 137, '2024-10-10', '6.3', '159.31', '0', '0', '159.31', '8123.76', '43.26', '8283.07', '-1911.72', '2023-11-30 03:25:42', 0),
(72, 137, '2024-11-10', '6.3', '159.31', '0', '0', '159.31', '8007.1', '42.65', '8166.41', '-2071.03', '2023-11-30 03:25:42', 0),
(73, 137, '2024-12-10', '6.3', '159.31', '0', '0', '159.31', '7889.83', '42.04', '8049.14', '-2230.34', '2023-11-30 03:25:42', 0),
(74, 137, '2025-01-10', '6.3', '159.31', '0', '0', '159.31', '7771.94', '41.42', '7931.25', '-2389.65', '2023-11-30 03:25:42', 0),
(75, 137, '2025-02-10', '6.3', '159.31', '0', '0', '159.31', '7653.43', '40.8', '7812.74', '-2548.96', '2023-11-30 03:25:42', 0),
(76, 137, '2025-03-10', '6.3', '159.31', '0', '0', '159.31', '7534.3', '40.18', '7693.61', '-2708.27', '2023-11-30 03:25:42', 0),
(77, 137, '2025-04-10', '6.3', '159.31', '0', '0', '159.31', '7414.55', '39.56', '7573.86', '-2867.58', '2023-11-30 03:25:42', 0),
(78, 137, '2025-05-10', '6.3', '159.31', '0', '0', '159.31', '7294.16', '38.93', '7453.47', '-3026.89', '2023-11-30 03:25:42', 0),
(79, 137, '2025-06-10', '6.3', '159.31', '0', '0', '159.31', '7173.15', '38.29', '7332.46', '-3186.2', '2023-11-30 03:25:42', 0),
(80, 137, '2025-07-10', '6.3', '159.31', '0', '0', '159.31', '7051.5', '37.66', '7210.81', '-3345.51', '2023-11-30 03:25:42', 0),
(81, 137, '2025-08-10', '6.3', '159.31', '0', '0', '159.31', '6929.21', '37.02', '7088.52', '-3504.82', '2023-11-30 03:25:42', 0),
(82, 137, '2025-09-10', '6.3', '159.31', '0', '0', '159.31', '6806.28', '36.38', '6965.59', '-3664.13', '2023-11-30 03:25:42', 0),
(83, 137, '2025-10-10', '6.3', '159.31', '0', '0', '159.31', '6682.7', '35.73', '6842.01', '-3823.44', '2023-11-30 03:25:42', 0),
(84, 137, '2025-11-10', '6.3', '159.31', '0', '0', '159.31', '6558.47', '35.08', '6717.78', '-3982.75', '2023-11-30 03:25:42', 0),
(85, 137, '2025-12-10', '6.3', '159.31', '0', '0', '159.31', '6433.6', '34.43', '6592.91', '-4142.06', '2023-11-30 03:25:42', 0),
(86, 137, '2026-01-10', '6.3', '159.31', '0', '0', '159.31', '6308.06', '33.78', '6467.37', '-4301.37', '2023-11-30 03:25:42', 0),
(87, 137, '2026-02-10', '6.3', '159.31', '0', '0', '159.31', '6181.87', '33.12', '6341.18', '-4460.68', '2023-11-30 03:25:42', 0),
(88, 137, '2026-03-10', '6.3', '159.31', '0', '0', '159.31', '6055.01', '32.45', '6214.32', '-4619.99', '2023-11-30 03:25:42', 0),
(89, 137, '2026-04-10', '6.3', '159.31', '0', '0', '159.31', '5927.49', '31.79', '6086.8', '-4779.3', '2023-11-30 03:25:42', 0),
(90, 137, '2026-05-10', '6.3', '159.31', '0', '0', '159.31', '5799.3', '31.12', '5958.61', '-4938.61', '2023-11-30 03:25:42', 0),
(91, 137, '2026-06-10', '6.3', '159.31', '0', '0', '159.31', '5670.44', '30.45', '5829.75', '-5097.92', '2023-11-30 03:25:42', 0),
(92, 137, '2026-07-10', '6.3', '159.31', '0', '0', '159.31', '5540.9', '29.77', '5700.21', '-5257.23', '2023-11-30 03:25:42', 0),
(93, 137, '2026-08-10', '6.3', '159.31', '0', '0', '159.31', '5410.68', '29.09', '5569.99', '-5416.54', '2023-11-30 03:25:42', 0),
(94, 137, '2026-09-10', '6.3', '159.31', '0', '0', '159.31', '5279.77', '28.41', '5439.08', '-5575.85', '2023-11-30 03:25:42', 0),
(95, 137, '2026-10-10', '6.3', '159.31', '0', '0', '159.31', '5148.18', '27.72', '5307.49', '-5735.16', '2023-11-30 03:25:42', 0),
(96, 137, '2026-11-10', '6.3', '159.31', '0', '0', '159.31', '5015.9', '27.03', '5175.21', '-5894.47', '2023-11-30 03:25:42', 0),
(97, 137, '2026-12-10', '6.3', '159.31', '0', '0', '159.31', '4882.93', '26.33', '5042.24', '-6053.78', '2023-11-30 03:25:42', 0),
(98, 137, '2027-01-10', '6.3', '159.31', '0', '0', '159.31', '4749.25', '25.64', '4908.56', '-6213.09', '2023-11-30 03:25:42', 0),
(99, 137, '2027-02-10', '6.3', '159.31', '0', '0', '159.31', '4614.87', '24.93', '4774.18', '-6372.4', '2023-11-30 03:25:42', 0),
(100, 137, '2027-03-10', '6.3', '159.31', '0', '0', '159.31', '4479.79', '24.23', '4639.1', '-6531.71', '2023-11-30 03:25:42', 0),
(101, 137, '2027-04-10', '6.3', '159.31', '0', '0', '159.31', '4344', '23.52', '4503.31', '-6691.02', '2023-11-30 03:25:42', 0),
(102, 137, '2027-05-10', '6.3', '159.31', '0', '0', '159.31', '4207.5', '22.81', '4366.81', '-6850.33', '2023-11-30 03:25:42', 0),
(103, 137, '2027-06-10', '6.3', '159.31', '0', '0', '159.31', '4070.28', '22.09', '4229.59', '-7009.64', '2023-11-30 03:25:42', 0),
(104, 137, '2027-07-10', '6.3', '159.31', '0', '0', '159.31', '3932.34', '21.37', '4091.65', '-7168.95', '2023-11-30 03:25:42', 0),
(105, 137, '2027-08-10', '6.3', '159.31', '0', '0', '159.31', '3793.67', '20.64', '3952.98', '-7328.26', '2023-11-30 03:25:42', 0),
(106, 137, '2027-09-10', '6.3', '159.31', '0', '0', '159.31', '3654.28', '19.92', '3813.59', '-7487.57', '2023-11-30 03:25:42', 0),
(107, 137, '2027-10-10', '6.3', '159.31', '0', '0', '159.31', '3514.15', '19.18', '3673.46', '-7646.88', '2023-11-30 03:25:42', 0),
(108, 137, '2027-11-10', '6.3', '159.31', '0', '0', '159.31', '3373.29', '18.45', '3532.6', '-7806.19', '2023-11-30 03:25:42', 0),
(109, 137, '2027-12-10', '6.3', '159.31', '0', '0', '159.31', '3231.69', '17.71', '3391', '-7965.5', '2023-11-30 03:25:42', 0),
(110, 137, '2028-01-10', '6.3', '159.31', '0', '0', '159.31', '3089.35', '16.97', '3248.66', '-8124.81', '2023-11-30 03:25:43', 0),
(111, 137, '2028-02-10', '6.3', '159.31', '0', '0', '159.31', '2946.26', '16.22', '3105.57', '-8284.12', '2023-11-30 03:25:43', 0),
(112, 137, '2028-03-10', '6.3', '159.31', '0', '0', '159.31', '2802.41', '15.47', '2961.72', '-8443.43', '2023-11-30 03:25:43', 0),
(113, 137, '2028-04-10', '6.3', '159.31', '0', '0', '159.31', '2657.82', '14.71', '2817.13', '-8602.74', '2023-11-30 03:25:43', 0),
(114, 137, '2028-05-10', '6.3', '159.31', '0', '0', '159.31', '2512.46', '13.95', '2671.77', '-8762.05', '2023-11-30 03:25:43', 0),
(115, 137, '2028-06-10', '6.3', '159.31', '0', '0', '159.31', '2366.34', '13.19', '2525.65', '-8921.36', '2023-11-30 03:25:43', 0),
(116, 137, '2028-07-10', '6.3', '159.31', '0', '0', '159.31', '2219.45', '12.42', '2378.76', '-9080.67', '2023-11-30 03:25:43', 0);

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

--
-- Table structure for table `business_calculator_type`
--

CREATE TABLE `business_calculator_type` (
  `id` int(11) NOT NULL,
  `store_id` int(11) NOT NULL DEFAULT '0',
  `finance_id` int(11) NOT NULL,
  `min_amount` double NOT NULL,
  `max_amount` double NOT NULL,
  `funder_rate` varchar(200) NOT NULL,
  `broker_rate` varchar(200) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `time_stamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_calculator_type`
--

INSERT INTO `business_calculator_type` (`id`, `store_id`, `finance_id`, `min_amount`, `max_amount`, `funder_rate`, `broker_rate`, `status`, `time_stamp`) VALUES
(1, 0, 4, 100000, 999999986991104, '11.00', '	8.00', 0, '2023-10-16 09:12:54'),
(2, 0, 4, 50000, 100000, '	12.00', '	8.00', 0, '2023-10-16 09:17:31'),
(3, 0, 4, 35000, 49999, '13.00', '8.00', 0, '2023-10-16 09:18:12'),
(4, 0, 4, 20000, 34999, '	14.00', '	8.00', 0, '2023-10-16 09:20:32'),
(5, 0, 4, 0, 19999, '	15.00', '	8.00', 0, '2023-10-16 09:21:36'),
(6, 0, 2, 3233232, 3223232, '33', '	33', 0, '2023-10-16 09:22:22'),
(7, 0, 2, 100000, 999999986991104, '	9.00', '	5.00', 0, '2023-10-16 09:23:23'),
(8, 0, 2, 50000, 100000, '	10.00', '	5.00', 0, '2023-10-16 09:24:51'),
(9, 0, 2, 35000, 49999, '	11.00', '	6.00', 0, '2023-10-16 09:25:27'),
(10, 0, 2, 20000, 34999, '	12.00', '	8.00', 0, '2023-10-16 09:26:05'),
(11, 0, 2, 0, 19999, '	13.00', '	8.00', 0, '2023-10-16 09:29:40'),
(12, 0, 1, 100000, 999999986991104, '	5.30', '	4.00', 0, '2023-10-16 09:30:18'),
(13, 0, 1, 50000, 100000, '	5.30', '	4.00', 0, '2023-10-16 09:30:57'),
(14, 0, 1, 35000, 49999, '	5.30', '	4.00', 0, '2023-10-16 09:31:32'),
(15, 0, 1, 20000, 34999, '	5.30', '4.00', 0, '2023-10-16 09:32:11'),
(16, 0, 1, 0, 19999, '	6.30', '	6.00', 0, '2023-10-16 09:32:52'),
(17, 0, 3, 100000, 999999986991104, '	9.00', '	5.00', 0, '2023-10-16 09:33:36'),
(18, 0, 3, 50000, 100000, '	10.00', '	5.00', 0, '2023-10-16 09:34:09'),
(19, 0, 3, 35000, 49999, '	11.00', '	6.00', 0, '2023-10-16 09:34:46'),
(20, 0, 3, 20000, 34999, '	12.00', '	6.00', 0, '2023-10-16 09:35:22'),
(21, 0, 3, 0, 19999, '	13.00', '	8.00', 0, '2023-10-16 09:35:58');

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

--
-- Table structure for table `business_credit_detail`
--

CREATE TABLE `business_credit_detail` (
  `id` int(11) NOT NULL,
  `business_id` int(11) NOT NULL,
  `director_id` int(11) NOT NULL,
  `business_name` varchar(50) NOT NULL,
  `first_name` varchar(40) NOT NULL,
  `last_name` varchar(40) NOT NULL,
  `phone` varchar(20) NOT NULL,
  `email` varchar(120) NOT NULL,
  `credit_number` varchar(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_credit_detail`
--

INSERT INTO `business_credit_detail` (`id`, `business_id`, `director_id`, `business_name`, `first_name`, `last_name`, `phone`, `email`, `credit_number`) VALUES
(1, 23, 23, 'Commonwealth Bank', 'Cash', 'Moneyled', '0418229816', 'kerry@datasafeapps.com.au', 'one'),
(2, 25, 28, 'Commonwealth Bank', 'Cash', 'Moneyled', '0418229816', 'kerry@datasafeapps.com.au', 'one'),
(3, 26, 30, 'Commonwealth Bank', 'Cash', 'Moneyled', '0418229816', 'kerry@datasafeapps.com.au', 'one'),
(4, 27, 32, 'Commonwealth Bank', 'Cash', 'Moneyled', '0418229816', 'kerry@datasafeapps.com.au', 'one'),
(5, 28, 34, 'Commonwealth Bank', 'Cash', 'Moneyled', '0418229816', 'kerry@datasafeapps.com.au', 'one'),
(6, 29, 36, 'Commonwealth Bank', 'Cash', 'Moneyled', '0418229816', 'kerry@datasafeapps.com.au', 'one'),
(7, 30, 38, 'Commonwealth Bank', 'Cash', 'Moneyled', '0418229816', 'kerry@datasafeapps.com.au', 'one'),
(8, 31, 40, 'Commonwealth Bank', 'Cash', 'Moneyled', '0418229816', 'kerry@datasafeapps.com.au', 'one'),
(9, 32, 42, 'Commonwealth Bank', 'Cash', 'Moneyled', '0418229816', 'kerry@datasafeapps.com.au', 'one'),
(10, 33, 44, 'Commonwealth Bank', 'Cash', 'Moneyled', '0418229816', 'kerry@datasafeapps.com.au', 'one'),
(11, 34, 46, 'Commonwealth Bank', 'Cash', 'Moneyled', '0418229816', 'kerry@datasafeapps.com.au', 'one'),
(12, 35, 48, 'Commonwealth Bank', 'Cash', 'Moneyled', '0418229816', 'kerry@datasafeapps.com.au', 'one'),
(13, 36, 50, 'Commonwealth Bank', 'Cash', 'Moneyled', '0418229816', 'kerry@datasafeapps.com.au', 'one'),
(14, 37, 52, 'Commonwealth Bank', 'Cash', 'Moneyled', '0418229816', 'kerry@datasafeapps.com.au', 'one');

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

--
-- Table structure for table `business_credit_detail_address`
--

CREATE TABLE `business_credit_detail_address` (
  `id` int(11) NOT NULL,
  `business_credit_id` int(11) NOT NULL,
  `business_address` varchar(50) NOT NULL,
  `suburb` varchar(20) NOT NULL,
  `state` varchar(30) NOT NULL,
  `postcode` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_credit_detail_address`
--

INSERT INTO `business_credit_detail_address` (`id`, `business_credit_id`, `business_address`, `suburb`, `state`, `postcode`) VALUES
(72, 3, '21/345 Real Place', 'oxenford', 'QLD', '4210'),
(73, 4, '21/345 Real Place', 'oxenford', 'QLD', '4210'),
(74, 5, '21/345 Real Place', 'oxenford', 'QLD', '4210'),
(75, 6, '21/345 Real Place', 'oxenford', 'QLD', '4210'),
(76, 7, '21/345 Real Place', 'oxenford', 'QLD', '4210'),
(77, 8, '21/345 Real Place', 'oxenford', 'QLD', '4210'),
(78, 9, '21/345 Real Place', 'oxenford', 'QLD', '4210'),
(80, 10, '21/345 Real Place', 'oxenford', 'QLD', '4210'),
(81, 11, '21/345 Real Place', 'oxenford', 'QLD', '4210'),
(98, 12, '21/345 Real Place', 'oxenford', 'QLD', '4210'),
(101, 2, '21/345 Real Place', 'oxenford', 'QLD', '4210'),
(111, 1, '21/345 Real Place', 'oxenford', 'QLD', '4210'),
(113, 13, '21/345 Real Place', 'oxenford', 'QLD', '4210'),
(118, 14, '21/345 Real Place', 'oxenford', 'QLD', '4210');

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

--
-- Table structure for table `business_current_assets`
--

CREATE TABLE `business_current_assets` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `cash` varchar(100) NOT NULL,
  `accounts_receivable` varchar(100) NOT NULL,
  `inventory` varchar(100) NOT NULL,
  `total_current_asset` varchar(100) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_current_assets`
--

INSERT INTO `business_current_assets` (`id`, `RentalID`, `cash`, `accounts_receivable`, `inventory`, `total_current_asset`, `status`, `timestamp`, `created_at`) VALUES
(1, 101, '', '', '', '', 0, '1673958840', '2023-01-17 12:34:00'),
(2, 103, '', '', '', '', 0, '1675142378', '2023-01-31 05:19:38'),
(3, 107, '', '', '', '', 0, '1677671309', '2023-03-01 11:48:29'),
(4, 110, '', '', '', '', 0, '1677819191', '2023-03-03 04:53:11'),
(5, 111, '', '', '', '', 0, '1678081735', '2023-03-06 05:48:55'),
(6, 112, '', '', '', '', 0, '1678342784', '2023-03-09 06:19:44'),
(7, 113, '', '', '', '', 0, '1678358520', '2023-03-09 10:42:00'),
(8, 116, '', '', '', '', 0, '1678699983', '2023-03-13 09:33:03'),
(9, 119, '', '', '', '', 0, '1678770532', '2023-03-14 05:08:52'),
(10, 120, '', '', '', '', 0, '1678779987', '2023-03-14 07:46:27'),
(11, 122, '', '', '', '', 0, '1678965380', '2023-03-16 11:16:20'),
(12, 123, '200,000', '2,000', '60,000', '262,000', 0, '1687768025', '2023-06-26 08:27:05'),
(13, 124, '', '', '', '', 0, '1689740309', '2023-07-19 04:18:29'),
(14, 137, '100,000', '10,000', '150,000', '260,000', 0, '1696894486', '2023-10-09 23:34:46'),
(15, 136, '', '', '', '', 0, '1697411850', '2023-10-15 23:17:30');

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

--
-- Table structure for table `business_current_liability`
--

CREATE TABLE `business_current_liability` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `account` varchar(100) NOT NULL,
  `taxes` varchar(100) NOT NULL,
  `salary` varchar(100) NOT NULL,
  `total_current_liability` varchar(100) NOT NULL,
  `timestamp` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_current_liability`
--

INSERT INTO `business_current_liability` (`id`, `RentalID`, `account`, `taxes`, `salary`, `total_current_liability`, `timestamp`, `status`, `created_at`) VALUES
(1, 101, '', '', '', '', '1673958840', 0, '2023-01-17 12:34:00'),
(2, 103, '', '', '', '', '1675142378', 0, '2023-01-31 05:19:38'),
(3, 107, '', '', '', '', '1677671309', 0, '2023-03-01 11:48:29'),
(4, 110, '', '', '', '', '1677819191', 0, '2023-03-03 04:53:11'),
(5, 111, '', '', '', '', '1678081735', 0, '2023-03-06 05:48:55'),
(6, 112, '', '', '', '', '1678342784', 0, '2023-03-09 06:19:44'),
(7, 113, '', '', '', '', '1678358520', 0, '2023-03-09 10:42:00'),
(8, 116, '', '', '', '', '1678699983', 0, '2023-03-13 09:33:03'),
(9, 119, '', '', '', '', '1678770532', 0, '2023-03-14 05:08:52'),
(10, 120, '', '', '', '', '1678779987', 0, '2023-03-14 07:46:27'),
(11, 122, '', '', '', '', '1678965380', 0, '2023-03-16 11:16:20'),
(12, 123, '10,000', '1,000', '80,000', '91,000', '1687768025', 0, '2023-06-26 08:27:05'),
(13, 124, '', '', '', '', '1689740309', 0, '2023-07-19 04:18:29'),
(14, 137, '70,000', '30,000', '200,000', '300,000', '1696894486', 0, '2023-10-09 23:34:46'),
(15, 136, '', '', '', '', '1697411850', 0, '2023-10-15 23:17:30');

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

--
-- Table structure for table `business_detail`
--

CREATE TABLE `business_detail` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `company_id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `loan_number` varchar(50) NOT NULL,
  `bus_company_id` varchar(50) NOT NULL,
  `companytrading_name` varchar(255) NOT NULL,
  `trading_name` varchar(100) NOT NULL,
  `abn` varchar(100) NOT NULL,
  `start_date` varchar(20) NOT NULL,
  `company_trust` varchar(200) NOT NULL,
  `business_type` varchar(100) NOT NULL,
  `relationship` varchar(100) NOT NULL,
  `email` varchar(50) NOT NULL,
  `phone` varchar(15) NOT NULL,
  `mobile` varchar(15) NOT NULL,
  `contact` varchar(150) NOT NULL,
  `gst` varchar(10) NOT NULL,
  `loan_status` varchar(200) NOT NULL,
  `finance_type` varchar(150) NOT NULL,
  `client_status` varchar(20) NOT NULL,
  `business_status` varchar(70) NOT NULL,
  `application_status` varchar(80) NOT NULL,
  `opened` varchar(200) NOT NULL,
  `settled` varchar(200) NOT NULL,
  `eot` varchar(200) NOT NULL,
  `feot` varchar(200) NOT NULL,
  `created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` varchar(40) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `app_status` varchar(50) NOT NULL DEFAULT 'website' COMMENT 'website/jotform',
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `createloan_type` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_detail`
--

INSERT INTO `business_detail` (`id`, `user_id`, `company_id`, `RentalID`, `loan_number`, `bus_company_id`, `companytrading_name`, `trading_name`, `abn`, `start_date`, `company_trust`, `business_type`, `relationship`, `email`, `phone`, `mobile`, `contact`, `gst`, `loan_status`, `finance_type`, `client_status`, `business_status`, `application_status`, `opened`, `settled`, `eot`, `feot`, `created_date`, `updated_at`, `status`, `app_status`, `delete_status`, `createloan_type`) VALUES
(1, 2, 2, 101, '', '#', '', '', '', '', '', '', '', '', '123131232132', '', 'asdasdad', 'Yes', '', '', '', '', '', '05/01/2023', '', '', '', '2023-01-05 11:24:14', '1674101147', 1, 'website', 0, ''),
(2, 2, 2, 102, '', '#', '', '', '', '', '', '', '', '', '165116516565', '', 'ddfd', 'Yes', '', '', '', '', '', '20/01/2023', '', '', '', '2023-01-20 06:18:12', '1674195495', 0, 'website', 0, ''),
(3, 2, 2, 103, '', '#', '', 'dfdfgdfgdgffg', '', '', '', '', '', '', '984984984989', '', 'x41545144984', '', '', '', '', '', '', '23/01/2023', '', '', '', '2023-01-23 07:12:42', '1677671465', 0, 'website', 0, ''),
(4, 2, 2, 104, '', '#', '', 'dfdfgdfgdgffg', '', '', '', '', '', '', '984984984989', '', 'x41545144984', '', '', '', '', '', '', '23/01/2023', '', '', '', '2023-01-23 07:12:43', '1674463672', 1, 'website', 0, ''),
(5, 2, 2, 105, '', '#', '', '', '', '', '', '', '', '', '234243242', '', 'dfgfdfdg', 'Yes', '', '', '', '', '', '01/03/2023', '', '', '', '2023-03-01 06:53:30', '1677664766', 0, 'website', 0, ''),
(6, 2, 2, 106, '', '#', 'gfdh', '', '', '', '', '', '', 'aimy@yopmail.com', '4555555555', '', '5444444444', 'Yes', '', '', '', '', '', '01/03/2023', '', '', '', '2023-03-01 09:41:26', '1696843714', 0, 'website', 0, ''),
(7, 2, 2, 107, '', '#', 'DataSafe Applications', 'DataSAfe', '1234567890', '01/03/2021', '', 'Legal', '', 'kerry@datasafeapps.com.au', '61418229816', '61418229816', 'Kerry Regan', 'Yes', 'Full', 'Chattel', '', 'Quote', '', '1', '', '', '', '2023-03-01 11:43:08', '1681787486', 0, 'website', 0, ''),
(8, 2, 2, 108, '', '#', '', '', '', '', '', '', '', '', '65165', '', 'dsfdsd', 'Yes', '', '', '', '', '', '01/03/2023', '', '', '', '2023-03-01 11:52:18', '1677671541', 0, 'website', 0, ''),
(9, 2, 2, 109, '', '#', '', '', '', '', '', '', '', '', '245245252', '', 'dfdd', 'Yes', '', '', '', '', '', '02/03/2023', '', '', '', '2023-03-02 04:13:28', '1677751737', 1, 'website', 0, ''),
(10, 2, 2, 110, '', '#', '', '', '', '', '', '', '', '', '954546', '', 'ergth', 'Yes', '', '', '', '', '', '03/03/2023', '', '', '', '2023-03-03 04:53:00', '1677819228', 1, 'website', 0, ''),
(11, 2, 2, 111, '', '#', '', '', '', '', '', '', '', '', '43566666346', '', '3546546', 'Yes', '', '', '', '', '', '06/03/2023', '', '', '', '2023-03-06 04:16:34', '1678100833', 0, 'website', 0, ''),
(12, 2, 2, 112, '', '#', '', '', '', '', '', '', '', '', '347777', '', '34673773', 'Yes', '', '', '', '', '', '09/03/2023', '', '', '', '2023-03-09 04:14:29', '1678364934', 0, 'website', 0, ''),
(13, 2, 2, 113, '', '#', '', '', '', '', '', '', '', '', '46575348', '', '376576863', 'Yes', '', '', '', '', '', '09/03/2023', '', '', '', '2023-03-09 07:54:45', '1678440141', 0, 'website', 0, ''),
(14, 2, 2, 114, '', '#', '', '', '', '', '', '', '', '', '685686', '', '5734737', 'Yes', '', '', '', '', '', '10/03/2023', '', '', '', '2023-03-10 04:25:44', '1678699733', 0, 'website', 0, ''),
(15, 2, 2, 115, '', '#', '', '', '', '', '', '', '', '', '5754734', '', '5685484', 'Yes', '', '', '', '', '', '10/03/2023', '', '', '', '2023-03-10 04:32:34', '1678446632', 0, 'website', 0, ''),
(16, 2, 2, 116, '', '#', '', '', '', '', '', '', '', '', '3473434743', '', '347347', 'Yes', '', '', '', '', '', '13/03/2023', '', '', '', '2023-03-13 07:19:42', '1678876043', 0, 'website', 0, ''),
(17, 2, 2, 117, '', '#', '', '', '', '', '', '', '', '', '5783783', '', '5757547', 'Yes', '', '', '', '', '', '13/03/2023', '', '', '', '2023-03-13 07:30:26', '1678692626', 1, 'website', 0, ''),
(18, 2, 2, 118, '', '#', '', '', '', '', '', '', '', '', '78787878', '', 'xeezez', 'Yes', '', '', '', '', '', '13/03/2023', '', '', '', '2023-03-13 07:52:53', '1678882296', 0, 'website', 0, ''),
(19, 2, 2, 119, '', '#', '', '', '', '', '', '', '', '', '9898986598', '', 'sacddd', 'Yes', '', '', '', '', '', '13/03/2023', '', '', '', '2023-03-13 10:46:22', '1678779009', 0, 'website', 0, ''),
(20, 2, 2, 120, '', '#', '', '', '', '', '', '', '', '', '457547', '', '37468574', 'Yes', '', '', '', '', '', '14/03/2023', '', '', '', '2023-03-14 07:46:20', '1678859954', 0, 'website', 0, ''),
(21, 2, 2, 121, '', '#', '', '', '', '', '', '', '', '', '5473547', '', '34734734', 'Yes', '', '', '', '', '', '15/03/2023', '', '', '', '2023-03-15 12:11:16', '1679290044', 0, 'website', 0, ''),
(22, 2, 2, 122, '', '#', '', '', '', '', '', '', '', '', '2346234672', '', '2367236236', 'Yes', '', '', '', '', '', '16/03/2023', '', '', '', '2023-03-16 04:25:08', '1696842900', 0, 'website', 0, ''),
(23, 2, 2, 123, '', '#', 'DataSafe Applications - Gold Coast', 'DataSafe', '23456789', '01/01/2019', 'DataSafe Applicacions Pty Ltd', 'Software', '', 'kerry@datasafeapps.com.au', '0418229816', '0418229816', 'Kerry Regan', 'Yes', 'Low', '', '', 'Application', '', '19/04/2023', '', '', '', '2023-04-18 22:48:04', '1697674526', 0, 'website', 0, ''),
(24, 2, 2, 124, '', '#', 'Competition E Bike parts', 'Competition E bikes', '12345678', '01/01/2022', 'Company', 'Sales', '', 'david@datasafeapps.com.au', '0418208914', '0418208914', 'David Holwerda', 'Yes', 'Low', 'Rental', '', 'Application', 'Pending', '18/07/2023', '', '', '', '2023-07-18 03:20:33', '1689901174', 0, 'website', 1, ''),
(25, 2, 2, 125, '', '#', 'Datasafe Apps', 'DataSafe', '23456789', '01/01/2019', 'DataSafe Applicacions Pty Ltd', 'Software', '', 'kerry@datasafeapps.com.au', '0418229816', '0418229816', 'Kerry Regan', 'Yes', 'Low', 'Rental', '', 'Application', 'Pending', '19/04/2023', '', '', '', '2023-10-09 05:07:04', '1697443352', 0, 'website', 0, ''),
(26, 3, 2, 126, '', '#', '', 'DataSafe', '23456789', '01/01/2019', 'DataSafe Applicacions Pty Ltd', 'Software', '', 'kerry@datasafeapps.com.au', '0418229816', '0418229816', 'Kerry Regan', 'Yes', 'Low', '', '', 'Application', '', '19/04/2023', '', '', '', '2023-10-09 05:35:32', '1696829732', 0, 'website', 0, ''),
(27, 3, 2, 127, '', '#', '', 'DataSafe', '23456789', '01/01/2019', 'DataSafe Applicacions Pty Ltd', 'Software', '', 'kerry@datasafeapps.com.au', '0418229816', '0418229816', 'Kerry Regan', 'Yes', 'Low', '', '', 'Application', '', '19/04/2023', '', '', '', '2023-10-09 05:42:42', '1696830162', 0, 'website', 0, ''),
(28, 3, 2, 128, '', '#', '', 'DataSafe', '23456789', '01/01/2019', 'DataSafe Applicacions Pty Ltd', 'Software', '', 'kerry@datasafeapps.com.au', '0418229816', '0418229816', 'Kerry Regan', 'Yes', 'Low', '', '', 'Application', '', '19/04/2023', '', '', '', '2023-10-09 05:45:25', '1696830325', 0, 'website', 0, ''),
(29, 3, 2, 129, '', '#', '', 'DataSafe', '23456789', '01/01/2019', 'DataSafe Applicacions Pty Ltd', 'Software', '', 'kerry@datasafeapps.com.au', '0418229816', '0418229816', 'Kerry Regan', 'Yes', 'Low', '', '', 'Application', '', '19/04/2023', '', '', '', '2023-10-09 05:47:44', '1696830464', 0, 'website', 0, ''),
(30, 3, 2, 130, '', '#', '', 'DataSafe', '23456789', '01/01/2019', 'DataSafe Applicacions Pty Ltd', 'Software', '', 'kerry@datasafeapps.com.au', '0418229816', '0418229816', 'Kerry Regan', 'Yes', 'Low', '', '', 'Application', '', '19/04/2023', '', '', '', '2023-10-09 05:56:43', '1696831003', 0, 'website', 0, ''),
(31, 3, 2, 131, '', '#', '', 'DataSafe', '23456789', '01/01/2019', 'DataSafe Applicacions Pty Ltd', 'Software', '', 'kerry@datasafeapps.com.au', '0418229816', '0418229816', 'Kerry Regan', 'Yes', 'Low', '', '', 'Application', '', '19/04/2023', '', '', '', '2023-10-09 06:06:00', '1696831560', 0, 'website', 0, ''),
(32, 3, 2, 132, '', '#', '', 'DataSafe', '23456789', '01/01/2019', 'DataSafe Applicacions Pty Ltd', 'Software', '', 'kerry@datasafeapps.com.au', '0418229816', '0418229816', 'Kerry Regan', 'Yes', 'Low', '', '', 'Application', '', '19/04/2023', '', '', '', '2023-10-09 06:06:51', '1696831611', 0, 'website', 0, ''),
(33, 3, 2, 133, '', '#', '', 'DataSafe', '23456789', '01/01/2019', 'DataSafe Applicacions Pty Ltd', 'Software', '', 'kerry@datasafeapps.com.au', '0418229816', '0418229816', 'Kerry Regan', 'Yes', 'Low', '', '', 'Application', '', '19/04/2023', '', '', '', '2023-10-09 06:13:37', '1696832017', 0, 'website', 0, ''),
(34, 3, 2, 134, '', '#', '', 'DataSafe', '23456789', '01/01/2019', 'DataSafe Applicacions Pty Ltd', 'Software', '', 'kerry@datasafeapps.com.au', '0418229816', '0418229816', 'Kerry Regan', 'Yes', 'Low', '', '', 'Application', '', '19/04/2023', '', '', '', '2023-10-09 06:15:14', '1696832114', 0, 'website', 0, ''),
(35, 3, 2, 135, '', '#', '', 'DataSafe', '23456789', '01/01/2019', 'DataSafe Applicacions Pty Ltd', 'Software', '', 'kerry@datasafeapps.com.au', '0418229816', '0418229816', 'Kerry Regan', 'Yes', 'Low', '', '', 'Application', '', '19/04/2023', '', '', '', '2023-10-09 06:16:11', '1697411934', 0, 'website', 0, ''),
(36, 3, 2, 136, '', '#', '', 'DataSafe', '23456789', '01/01/2019', 'DataSafe Applicacions Pty Ltd', 'Software', '', 'kerry@datasafeapps.com.au', '0418229816', '0418229816', 'Kerry Regan', 'Yes', 'Low', '', '', 'Application', '', '19/04/2023', '', '', '', '2023-10-09 07:30:31', '1700700518', 0, 'website', 0, ''),
(37, 3, 2, 137, '', '#', '', 'DataSafe', '23456789', '01/01/2019', 'DataSafe Applicacions Pty Ltd', 'Software', '', 'kerry@datasafeapps.com.au', '0418229816', '0418229816', 'Kerry Regan', 'Yes', 'Low', '', '', 'Application', '', '19/04/2023', '', '', '', '2023-10-09 07:33:27', '1701417293', 0, 'website', 0, '');

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

--
-- Table structure for table `business_directors`
--

CREATE TABLE `business_directors` (
  `id` int(11) NOT NULL,
  `business_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `company_id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `minit_client_id` int(11) NOT NULL,
  `client_id` int(11) NOT NULL,
  `minit_status` int(11) NOT NULL DEFAULT '0',
  `first_name` varchar(40) NOT NULL,
  `middle_name` varchar(40) NOT NULL,
  `last_name` varchar(40) NOT NULL,
  `dob` varchar(30) NOT NULL,
  `director_type` varchar(20) NOT NULL,
  `director_number` varchar(5) NOT NULL,
  `linkedin` varchar(40) NOT NULL,
  `facebook` varchar(40) NOT NULL,
  `pre_home_address` varchar(60) NOT NULL,
  `pre_suburb` varchar(40) NOT NULL,
  `pre_state_drop` varchar(40) NOT NULL,
  `pre_postcode` varchar(20) NOT NULL,
  `pre_year` varchar(10) NOT NULL,
  `pre_month` varchar(10) NOT NULL,
  `pre_director_address` varchar(20) NOT NULL DEFAULT 'No',
  `mobile` varchar(15) NOT NULL,
  `phone` varchar(15) NOT NULL,
  `email` varchar(40) NOT NULL,
  `rent` varchar(10) NOT NULL,
  `driving_licence` varchar(40) NOT NULL,
  `state` varchar(20) NOT NULL,
  `home_value` varchar(150) NOT NULL,
  `mortgage_provider` varchar(150) NOT NULL,
  `mortgage_balance` varchar(150) NOT NULL,
  `updated_at` varchar(30) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `title` varchar(10) NOT NULL,
  `crb` varchar(20) NOT NULL,
  `client_status` varchar(25) NOT NULL,
  `Status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_directors`
--

INSERT INTO `business_directors` (`id`, `business_id`, `user_id`, `company_id`, `RentalID`, `minit_client_id`, `client_id`, `minit_status`, `first_name`, `middle_name`, `last_name`, `dob`, `director_type`, `director_number`, `linkedin`, `facebook`, `pre_home_address`, `pre_suburb`, `pre_state_drop`, `pre_postcode`, `pre_year`, `pre_month`, `pre_director_address`, `mobile`, `phone`, `email`, `rent`, `driving_licence`, `state`, `home_value`, `mortgage_provider`, `mortgage_balance`, `updated_at`, `delete_status`, `time`, `title`, `crb`, `client_status`, `Status`) VALUES
(1, 1, 2, 2, 101, 419, 101, 1, 'qeqwewq', '', 'sadasdaa', '', 'Director', 'one', '', '', '', '', '', '', '', '', 'No', '', '', 'jitendra@yopmail.com', 'Yes', '', '', '', '', '', '1674101147', 0, '2023-01-05 11:24:14', 'Mr', '', 'Pending', 1),
(2, 2, 2, 2, 102, 9133, 102, 0, 'sddfdsfd', '', 'sfdsfdsfdfsd', '', 'Director', 'one', '', '', '', '', '', '', '', '', 'No', '', '', '', 'Yes', '', '', '', '', '', '1674195495', 0, '2023-01-20 06:18:12', 'Mr', '', 'Pending', 0),
(3, 3, 2, 2, 103, 420, 103, 1, 'fgdfdfgdfg', '', 'fgdhfhd', '', 'Director', 'one', '', '', '', '', '', '', '', '', '', '', '', '', 'Yes', '', '', '', '', '', '1677671465', 0, '2023-01-23 07:12:42', 'Mrs', '', 'Pending', 1),
(4, 4, 2, 2, 104, 420, 104, 1, 'fgdfdfgdfg', '', 'fgdhfhd', '', 'Director', 'one', '', '', '', '', '', '', '', '', '', '', '', '', 'Yes', '', '', '', '', '', '1674463672', 0, '2023-01-23 07:12:43', 'Mrs', '', 'Pending', 1),
(5, 5, 2, 2, 105, 9582, 105, 0, 'dfgdf', '', 'dfdfgdf', '', 'Director', 'one', '', '', '', '', '', '', '', '', 'No', '', '', '', 'Yes', '', '', '', '', '', '1677664766', 0, '2023-03-01 06:53:30', 'Mr', '', 'Pending', 0),
(6, 6, 2, 2, 106, 9389, 106, 0, 'sdg', 'sfh', 'fhd', '', 'Director', 'one', '', '', '', '', '', '', '', '', 'No', '', '', '', 'Yes', '', '', '', '', '', '1696843714', 0, '2023-03-01 09:41:26', 'Mr', '', 'Pending', 0),
(7, 7, 2, 2, 107, 6744, 107, 0, 'kerry', 'j', 'regan', '05/10/1951', 'Director', 'one', '', '', '4797 The Parkway', 'Sanctuary Cove', 'QLD', '4212', '2017', '08', 'Yes', '61418229816', '61418229816', 'kerry@datasafeapps.com.au', 'Yes', '1234567890', 'QLD', '', '', '', '1681787486', 0, '2023-03-01 11:43:08', 'Mr', '1234567890', 'Pending', 0),
(8, 8, 2, 2, 108, 4337, 108, 0, 'wdaWDA', '', 'DA', '', 'Director', 'one', '', '', '', '', '', '', '', '', 'No', '', '', '', 'Yes', '', '', '', '', '', '1677671541', 0, '2023-03-01 11:52:18', 'Mr', '', 'Pending', 0),
(9, 9, 2, 2, 109, 7313, 109, 0, 'fdcdcdd', '', 'jhghfghjh', '', 'Director', 'one', '', '', '', '', '', '', '', '', 'No', '', '', '', 'Yes', '', '', '', '', '', '1677751737', 0, '2023-03-02 04:13:29', 'Ms', '', 'Pending', 1),
(10, 10, 2, 2, 110, 4793, 110, 0, 'fgfgfg', '', 'dfgdfgsdf', '', 'Director', 'one', '', '', '', '', '', '', '', '', 'No', '', '', '', 'Yes', '', '', '', '', '', '1677819228', 0, '2023-03-03 04:53:00', 'Ms', '', 'Pending', 1),
(11, 11, 2, 2, 111, 1086, 111, 0, 'grte', '', 'hnrhg', '', 'Director', 'one', '', '', '', '', '', '', '', '', 'No', '', '', '', 'Yes', '', '', '', '', '', '1678100833', 0, '2023-03-06 04:16:34', 'Mr', '', 'Pending', 0),
(12, 12, 2, 2, 112, 9196, 112, 0, '463434', '', 'eryt', '', 'Director', 'one', '', '', '', '', '', '', '', '', 'No', '', '', '', 'Yes', '', '', '', '', '', '1678364934', 0, '2023-03-09 04:14:29', 'Mr', '', 'Pending', 0),
(13, 13, 2, 2, 113, 8205, 113, 0, 'urytk', '', 'yrukr', '', 'Director', 'one', '', '', '', '', '', '', '', '', 'No', '', '', '', 'Yes', '', '', '', '', '', '1678440141', 0, '2023-03-09 07:54:45', 'Mr', '', 'Pending', 0),
(14, 14, 2, 2, 114, 432, 114, 0, 'sdsdfh', '', '347tdytts', '', 'Director', 'one', '', '', '', '', '', '', '', '', 'No', '', '', '', 'Yes', '', '', '', '', '', '1678699733', 0, '2023-03-10 04:25:44', 'Mr', '', 'Pending', 0),
(15, 15, 2, 2, 115, 3270, 115, 0, 'djhrj', '', 'fgdj', '', 'Director', 'one', '', '', '', '', '', '', '', '', 'No', '', '', '', 'Yes', '', '', '', '', '', '1678446632', 0, '2023-03-10 04:32:34', 'Mr', '', 'Pending', 0),
(16, 16, 2, 2, 116, 5228, 116, 0, 'shjhj', '', 'trsdts', '', 'Director', 'one', '', '', '', '', '', '', '', '', 'No', '', '', '', 'Yes', '', '', '', '', '', '1678876043', 0, '2023-03-13 07:19:42', 'Mr', '', 'Pending', 0),
(17, 17, 2, 2, 117, 421, 117, 1, 'sjsj', '', 'fdsjusd', '', 'Director', 'one', '', '', '', '', '', '', '', '', 'No', '', '', '', 'Yes', '', '', '', '', '', '1678692626', 0, '2023-03-13 07:30:26', 'Mr', '', 'Pending', 1),
(18, 18, 2, 2, 118, 6966, 118, 0, 'pppmp', '', 'ppmklm', '', 'Director', 'one', '', '', '', '', '', '', '', '', 'No', '08360927988', '', 'kkunalk66@gmail.com', 'Yes', '', '', '', '', '', '1678882296', 0, '2023-03-13 07:52:53', 'Mr', '', 'Pending', 0),
(19, 19, 2, 2, 119, 1140, 119, 0, 'dxzxz', '', 'cdcvcxc', '', 'Director', 'one', '', '', '', '', 'TAS', '', '', '', 'Yes', '', '', '', 'Yes', '', 'VIC', '', '', '', '1678779009', 1, '2023-03-13 10:46:22', 'Mr', '', 'Pending', 0),
(20, 20, 2, 2, 120, 2626, 120, 0, '2yawtg', '', 'sgaerhg', '', 'Director', 'one', '', '', '', '', '', '', '', '', 'No', '', '', '', 'Yes', '', '', '', '', '', '1678859954', 1, '2023-03-14 07:46:20', 'Mr', '', 'Pending', 0),
(21, 21, 2, 2, 121, 2602, 121, 0, 'erys', '', 'juerts', '', 'Director', 'one', '', '', '', '', '', '', '', '', 'No', '', '', '', 'Yes', '', '', '', '', '', '1679290044', 0, '2023-03-15 12:11:16', 'Mr', '', 'Pending', 0),
(22, 22, 2, 2, 122, 3280, 122, 0, 'zsdgeg', '', 'sdgasdg', '', 'Director', 'one', '', '', '', '', '', '', '', '', 'No', '', '', '', 'Yes', '', '', '', '', '', '1696842900', 0, '2023-03-16 04:25:08', 'Mr', '', 'Pending', 0),
(23, 23, 2, 2, 123, 1103, 123, 0, 'kerry', 'j', 'regan', '05/10/1951', 'Director', 'one', '', '', '', '', '', '', '', '', 'Yes', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'Yes', '1234567890', 'QLD', '5,000,000', 'Better Home Finance', '4,500,000', '1697674526', 0, '2023-04-18 22:48:04', 'Mr', '1234567890', 'Pending', 0),
(24, 23, 2, 2, 123, 1296, 123, 0, 'David ', 'L ', 'Holwerda', '3/12/196', 'Director', 'two', '', '', '', '', '', '', '', '', 'No', '0418208914', '', 'david@datasafeapps.com.au', 'Yes', '66778899', 'QLD', '', '', '', '1697674526', 0, '2023-04-18 22:48:04', 'Mr', '2222222', '', 0),
(25, 23, 2, 2, 123, 8395, 123, 0, 'john', 'j', 'keer', '19/04/2023', 'Director', 'three', '', '', '', '', '', '', '', '', 'No', '', '', '', 'Yes', '', '', '', '', '', '1681858084', 0, '2023-04-18 22:48:04', 'Mr', '90-8-9898', '', 0),
(26, 24, 2, 2, 124, 394, 124, 0, 'DavidLaw', 'Law', 'Holwerda', '03/12/1961', 'Director', 'one', '', '', '', '', '', '', '', '', 'No', '0418208914', '', 'david@datasafeapps.com.au', 'No', '2345678', 'QLD', '900,000', 'freedom Mortgages', '250,000', '1689901174', 1, '2023-07-18 03:20:33', 'Mr', '131313', 'Pending', 0),
(27, 22, 2, 2, 122, 8296, 122, 0, 'fddfg', '', 'reteter', '', 'Director', 'two', '', '', 'rterter', 'gfdgfdg', 'ACT', '3454', '', '', 'No', '', '', '', 'Yes', '', '', '', '', '', '1696841454', 0, '2023-10-09 05:06:50', 'Mr', '', '', 0),
(28, 25, 2, 2, 125, 1103, 125, 0, 'kerry', 'j', 'regan', '05/10/1951', 'Director', 'one', '', '', '', '', '', '', '', '', 'Yes', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'Yes', '1234567890', 'QLD', '5,000,000', 'Better Home Finance', '4,500,000', '1697443352', 0, '2023-10-09 05:07:04', 'Mr', '1234567890', 'Pending', 0),
(29, 25, 2, 2, 125, 1296, 125, 0, 'David ', 'L ', 'Holwerda', '3/12/196', 'Director', 'two', '', '', '', '', '', '', '', '', 'No', '0418208914', '', 'david@datasafeapps.com.au', 'Yes', '66778899', 'QLD', '', '', '', '1697443352', 0, '2023-10-09 05:07:04', 'Mr', '2222222', '', 0),
(30, 26, 3, 2, 126, 1103, 126, 0, 'kerry', 'j', 'regan', '05/10/1951', 'Director', 'one', '', '', '', '', '', '', '', '', 'Yes', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'Yes', '1234567890', 'QLD', '5,000,000', 'Better Home Finance', '4,500,000', '1696829732', 0, '2023-10-09 05:35:32', 'Mr', '1234567890', 'Pending', 0),
(31, 26, 3, 2, 126, 1296, 126, 0, 'David ', 'L ', 'Holwerda', '3/12/196', 'Director', 'two', '', '', '', '', '', '', '', '', 'No', '0418208914', '', 'david@datasafeapps.com.au', 'Yes', '66778899', 'QLD', '', '', '', '1696829732', 0, '2023-10-09 05:35:32', 'Mr', '2222222', '', 0),
(32, 27, 3, 2, 127, 1103, 127, 0, 'kerry', 'j', 'regan', '05/10/1951', 'Director', 'one', '', '', '', '', '', '', '', '', 'Yes', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'Yes', '1234567890', 'QLD', '5,000,000', 'Better Home Finance', '4,500,000', '1696830162', 0, '2023-10-09 05:42:42', 'Mr', '1234567890', 'Pending', 0),
(33, 27, 3, 2, 127, 1296, 127, 0, 'David ', 'L ', 'Holwerda', '3/12/196', 'Director', 'two', '', '', '', '', '', '', '', '', 'No', '0418208914', '', 'david@datasafeapps.com.au', 'Yes', '66778899', 'QLD', '', '', '', '1696830162', 0, '2023-10-09 05:42:42', 'Mr', '2222222', '', 0),
(34, 28, 3, 2, 128, 1103, 128, 0, 'kerry', 'j', 'regan', '05/10/1951', 'Director', 'one', '', '', '', '', '', '', '', '', 'Yes', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'Yes', '1234567890', 'QLD', '5,000,000', 'Better Home Finance', '4,500,000', '1696830325', 0, '2023-10-09 05:45:25', 'Mr', '1234567890', 'Pending', 0),
(35, 28, 3, 2, 128, 1296, 128, 0, 'David ', 'L ', 'Holwerda', '3/12/196', 'Director', 'two', '', '', '', '', '', '', '', '', 'No', '0418208914', '', 'david@datasafeapps.com.au', 'Yes', '66778899', 'QLD', '', '', '', '1696830325', 0, '2023-10-09 05:45:25', 'Mr', '2222222', '', 0),
(36, 29, 3, 2, 129, 1103, 129, 0, 'kerry', 'j', 'regan', '05/10/1951', 'Director', 'one', '', '', '', '', '', '', '', '', 'Yes', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'Yes', '1234567890', 'QLD', '5,000,000', 'Better Home Finance', '4,500,000', '1696830464', 0, '2023-10-09 05:47:44', 'Mr', '1234567890', 'Pending', 0),
(37, 29, 3, 2, 129, 1296, 129, 0, 'David ', 'L ', 'Holwerda', '3/12/196', 'Director', 'two', '', '', '', '', '', '', '', '', 'No', '0418208914', '', 'david@datasafeapps.com.au', 'Yes', '66778899', 'QLD', '', '', '', '1696830464', 0, '2023-10-09 05:47:44', 'Mr', '2222222', '', 0),
(38, 30, 3, 2, 130, 1103, 130, 0, 'kerry', 'j', 'regan', '05/10/1951', 'Director', 'one', '', '', '', '', '', '', '', '', 'Yes', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'Yes', '1234567890', 'QLD', '5,000,000', 'Better Home Finance', '4,500,000', '1696831003', 0, '2023-10-09 05:56:43', 'Mr', '1234567890', 'Pending', 0),
(39, 30, 3, 2, 130, 1296, 130, 0, 'David ', 'L ', 'Holwerda', '3/12/196', 'Director', 'two', '', '', '', '', '', '', '', '', 'No', '0418208914', '', 'david@datasafeapps.com.au', 'Yes', '66778899', 'QLD', '', '', '', '1696831003', 0, '2023-10-09 05:56:43', 'Mr', '2222222', '', 0),
(40, 31, 3, 2, 131, 1103, 131, 0, 'kerry', 'j', 'regan', '05/10/1951', 'Director', 'one', '', '', '', '', '', '', '', '', 'Yes', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'Yes', '1234567890', 'QLD', '5,000,000', 'Better Home Finance', '4,500,000', '1696831560', 0, '2023-10-09 06:06:00', 'Mr', '1234567890', 'Pending', 0),
(41, 31, 3, 2, 131, 1296, 131, 0, 'David ', 'L ', 'Holwerda', '3/12/196', 'Director', 'two', '', '', '', '', '', '', '', '', 'No', '0418208914', '', 'david@datasafeapps.com.au', 'Yes', '66778899', 'QLD', '', '', '', '1696831560', 0, '2023-10-09 06:06:00', 'Mr', '2222222', '', 0),
(42, 32, 3, 2, 132, 1103, 132, 0, 'kerry', 'j', 'regan', '05/10/1951', 'Director', 'one', '', '', '', '', '', '', '', '', 'Yes', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'Yes', '1234567890', 'QLD', '5,000,000', 'Better Home Finance', '4,500,000', '1696831611', 0, '2023-10-09 06:06:51', 'Mr', '1234567890', 'Pending', 0),
(43, 32, 3, 2, 132, 1296, 132, 0, 'David ', 'L ', 'Holwerda', '3/12/196', 'Director', 'two', '', '', '', '', '', '', '', '', 'No', '0418208914', '', 'david@datasafeapps.com.au', 'Yes', '66778899', 'QLD', '', '', '', '1696831611', 0, '2023-10-09 06:06:51', 'Mr', '2222222', '', 0),
(44, 33, 3, 2, 133, 1103, 133, 0, 'kerry', 'j', 'regan', '05/10/1951', 'Director', 'one', '', '', '', '', '', '', '', '', 'Yes', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'Yes', '1234567890', 'QLD', '5,000,000', 'Better Home Finance', '4,500,000', '1696832017', 0, '2023-10-09 06:13:37', 'Mr', '1234567890', 'Pending', 0),
(45, 33, 3, 2, 133, 1296, 133, 0, 'David ', 'L ', 'Holwerda', '3/12/196', 'Director', 'two', '', '', '', '', '', '', '', '', 'No', '0418208914', '', 'david@datasafeapps.com.au', 'Yes', '66778899', 'QLD', '', '', '', '1696832017', 0, '2023-10-09 06:13:37', 'Mr', '2222222', '', 0),
(46, 34, 3, 2, 134, 1103, 134, 0, 'kerry', 'j', 'regan', '05/10/1951', 'Director', 'one', '', '', '', '', '', '', '', '', 'Yes', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'Yes', '1234567890', 'QLD', '5,000,000', 'Better Home Finance', '4,500,000', '1696832114', 0, '2023-10-09 06:15:14', 'Mr', '1234567890', 'Pending', 0),
(47, 34, 3, 2, 134, 1296, 134, 0, 'David ', 'L ', 'Holwerda', '3/12/196', 'Director', 'two', '', '', '', '', '', '', '', '', 'No', '0418208914', '', 'david@datasafeapps.com.au', 'Yes', '66778899', 'QLD', '', '', '', '1696832114', 0, '2023-10-09 06:15:14', 'Mr', '2222222', '', 0),
(48, 35, 3, 2, 135, 1103, 135, 0, 'kerry', 'j', 'regan', '05/10/1951', 'Director', 'one', '', '', '', '', '', '', '', '', 'Yes', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'Yes', '1234567890', 'QLD', '5,000,000', 'Better Home Finance', '4,500,000', '1697411934', 0, '2023-10-09 06:16:11', 'Mr', '1234567890', 'Pending', 0),
(49, 35, 3, 2, 135, 1296, 135, 0, 'David ', 'L ', 'Holwerda', '3/12/196', 'Director', 'two', '', '', '', '', '', '', '', '', 'No', '0418208914', '', 'david@datasafeapps.com.au', 'Yes', '66778899', 'QLD', '', '', '', '1697411934', 0, '2023-10-09 06:16:11', 'Mr', '2222222', '', 0),
(50, 36, 3, 2, 136, 1103, 136, 0, 'kerry', 'j', 'regan', '05/10/1951', 'Director', 'one', '', '', '', '', '', '', '', '', 'Yes', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'Yes', '1234567890', 'QLD', '5,000,000', 'Better Home Finance', '4,500,000', '1700700518', 0, '2023-10-09 07:30:31', 'Mr', '1234567890', 'Pending', 0),
(51, 36, 3, 2, 136, 1296, 136, 0, 'David ', 'L ', 'Holwerda', '3/12/196', 'Director', 'two', '', '', '', '', '', '', '', '', 'No', '0418208914', '', 'david@datasafeapps.com.au', 'Yes', '66778899', 'QLD', '', '', '', '1700700519', 0, '2023-10-09 07:30:31', 'Mr', '2222222', '', 0),
(52, 37, 3, 2, 137, 1103, 137, 0, 'kerry', 'j', 'regan', '05/10/1951', 'Director', 'one', '', '', '', '', '', '', '', '', 'Yes', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'Yes', '1234567890', 'QLD', '5,000,000', 'Better Home Finance', '4,500,000', '1701417293', 0, '2023-10-09 07:33:27', 'Mr', '1234567890', 'Pending', 0),
(53, 37, 3, 2, 137, 3321, 137, 0, 'David', 'L', 'Holwerda', '03/12/1961', 'Director', 'two', '', '', '', '', '', '', '', '', 'No', '0418208914', '', 'david@datasafeapps.com.au', 'Yes', '3345678', 'QLD', '', '', '', '1701417293', 0, '2023-10-09 07:33:27', 'Mr', '33445566', '', 0),
(54, 6, 3, 2, 106, 403, 106, 0, 'werwerwe', 'rewr', 'ewrewrewr', '', 'Director', 'two', '', '', '', '', '', '', '', '', 'No', '', '', '', 'Yes', '', '', '', '', '', '1696843714', 0, '2023-10-09 09:28:14', 'Mr', '', '', 0);

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

--
-- Table structure for table `business_directors_address`
--

CREATE TABLE `business_directors_address` (
  `id` int(11) NOT NULL,
  `director_id` int(11) NOT NULL,
  `home_address` varchar(200) NOT NULL,
  `suburb` varchar(50) NOT NULL,
  `state` varchar(20) NOT NULL,
  `postcode` varchar(20) NOT NULL,
  `year` varchar(11) NOT NULL,
  `month` varchar(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_directors_address`
--

INSERT INTO `business_directors_address` (`id`, `director_id`, `home_address`, `suburb`, `state`, `postcode`, `year`, `month`) VALUES
(51, 1, 'sadsadasd', '', '', '1231', '', ''),
(53, 2, 'ssfdfdfd', '', '', '1561', '', ''),
(58, 4, 'fgdfdsfghdghhfbbb  gghggb  fdfgfgdffgd  ', '', '', '4989', '', ''),
(70, 5, 'dfdfgdg', '', '', '4242', '', ''),
(74, 3, 'fgdfdsfghdghhfbbb  gghggb  fdfgfgdffgd  ', '', '', '4989', '', ''),
(76, 8, 'sdasasa', '', '', '0656', '', ''),
(79, 9, 'adaada', '', '', '1044', '', ''),
(82, 10, 'sdfdff', '', '', '52', '', ''),
(96, 11, 'erhgtbr', 'dfs', 'ACT', '2345', '', ''),
(117, 12, 'dfghrturu', 'vzas', 'ACT', '3634', '', ''),
(120, 13, 'asgvavg', 'zbzasba', 'ACT', '5734', '', ''),
(121, 15, 'dfghrturu', 'vzas', 'ACT', '3634', '', ''),
(129, 17, 'asgvavg', 'zbzasba', 'ACT', '5734', '', ''),
(132, 14, 'dfydtu', 'safsa', 'NSW', '3462', '', ''),
(145, 19, 'xczxcxccx', '', '', '9559', '2018', '09'),
(151, 20, 'zxvbzd', 'dbgz', 'ACT', '3462', '', ''),
(152, 16, 'dfydtu', 'safsa', 'NSW', '3462', '', ''),
(154, 18, 'klklklmklm', 'Pathankoy', '', '1450', '', ''),
(179, 21, 'erhgtbr', 'dfs', 'ACT', '2345', '', ''),
(180, 7, '415/66 Sickle Ave', 'Hope Island', 'QLD', '4210', '2023', '08'),
(183, 25, '21 rat heap', 'oxenford', 'QLD', '4210', '', ''),
(203, 26, '23 fifth ave ', 'Palmbeach', 'QLD', '4221', '2015', '01'),
(265, 30, '615/66 Sickle Ave ', 'Hope Island', 'QLD', '4212', '2023', '10'),
(266, 31, '2/54 Sarawak Ave', 'Palm Beach', 'QLD', '4221', '2010', '01'),
(273, 32, '615/66 Sickle Ave ', 'Hope Island', 'QLD', '4212', '2023', '10'),
(274, 33, '2/54 Sarawak Ave', 'Palm Beach', 'QLD', '4221', '2010', '01'),
(275, 34, '615/66 Sickle Ave ', 'Hope Island', 'QLD', '4212', '2023', '10'),
(276, 35, '2/54 Sarawak Ave', 'Palm Beach', 'QLD', '4221', '2010', '01'),
(277, 36, '615/66 Sickle Ave ', 'Hope Island', 'QLD', '4212', '2023', '10'),
(278, 37, '2/54 Sarawak Ave', 'Palm Beach', 'QLD', '4221', '2010', '01'),
(279, 38, '615/66 Sickle Ave ', 'Hope Island', 'QLD', '4212', '2023', '10'),
(280, 39, '2/54 Sarawak Ave', 'Palm Beach', 'QLD', '4221', '2010', '01'),
(281, 40, '615/66 Sickle Ave ', 'Hope Island', 'QLD', '4212', '2023', '10'),
(282, 41, '2/54 Sarawak Ave', 'Palm Beach', 'QLD', '4221', '2010', '01'),
(283, 42, '615/66 Sickle Ave ', 'Hope Island', 'QLD', '4212', '2023', '10'),
(284, 43, '2/54 Sarawak Ave', 'Palm Beach', 'QLD', '4221', '2010', '01'),
(286, 44, '615/66 Sickle Ave ', 'Hope Island', 'QLD', '4212', '2023', '10'),
(287, 45, '2/54 Sarawak Ave', 'Palm Beach', 'QLD', '4221', '2010', '01'),
(288, 46, '615/66 Sickle Ave ', 'Hope Island', 'QLD', '4212', '2023', '10'),
(289, 47, '2/54 Sarawak Ave', 'Palm Beach', 'QLD', '4221', '2010', '01'),
(342, 27, 'gdfgfd', '', '', '3454', '', ''),
(343, 22, 'dasaf', 'safsa', 'ACT', '3462', '', ''),
(352, 6, 'dfh', '', '', '5555', '', ''),
(353, 54, 'ewrwerewr', 'dfgdf', 'ACT', '2343', '', ''),
(370, 48, '615/66 Sickle Ave ', 'Hope Island', 'QLD', '4212', '2023', '10'),
(371, 49, '2/54 Sarawak Ave', 'Palm Beach', 'QLD', '4221', '2010', '01'),
(376, 28, '615/66 Sickle Ave ', 'Hope Island', 'QLD', '4212', '2023', '10'),
(377, 29, '2/54 Sarawak Ave', 'Palm Beach', 'QLD', '4221', '2010', '01'),
(396, 23, '615/66 Sickle Ave ', 'Hope Island', 'QLD', '4212', '2023', '10'),
(397, 24, '2/54 Sarawak Ave', 'Palm Beach', 'QLD', '4221', '2010', '01'),
(400, 50, '615/66 Sickle Ave ', 'Hope Island', 'QLD', '4212', '2023', '10'),
(401, 51, '2/54 Sarawak Ave', 'Palm Beach', 'QLD', '4221', '2010', '01'),
(410, 52, '615/66 Sickle Ave ', 'Hope Island', 'QLD', '4212', '2023', '10'),
(411, 53, '2/33 sarawahave', 'palm beach', 'QLD', '4221', '2010', '10');

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

--
-- Table structure for table `business_finance`
--

CREATE TABLE `business_finance` (
  `id` int(11) NOT NULL,
  `business_id` int(11) NOT NULL,
  `director_id` int(11) NOT NULL,
  `financier` varchar(255) NOT NULL,
  `company_name` varchar(255) NOT NULL,
  `firstname` varchar(200) NOT NULL,
  `lastname` varchar(200) NOT NULL,
  `phone` varchar(150) NOT NULL,
  `mobile` varchar(150) NOT NULL,
  `email` varchar(150) NOT NULL,
  `website` varchar(255) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_finance`
--

INSERT INTO `business_finance` (`id`, `business_id`, `director_id`, `financier`, `company_name`, `firstname`, `lastname`, `phone`, `mobile`, `email`, `website`, `created_at`) VALUES
(1, 23, 23, '', '', '', '', '', '', '', '', '2023-04-18 22:48:04'),
(2, 25, 28, '', 'Better Home Loans', 'John', 'Smith', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'www.datasafeapps.com.au', '2023-10-09 05:07:04'),
(3, 26, 30, '', '', '', '', '', '', '', '', '2023-10-09 05:35:32'),
(4, 27, 32, '', '', '', '', '', '', '', '', '2023-10-09 05:42:42'),
(5, 28, 34, '', '', '', '', '', '', '', '', '2023-10-09 05:45:25'),
(6, 29, 36, '', '', '', '', '', '', '', '', '2023-10-09 05:47:44'),
(7, 30, 38, '', '', '', '', '', '', '', '', '2023-10-09 05:56:43'),
(8, 31, 40, '', '', '', '', '', '', '', '', '2023-10-09 06:06:00'),
(9, 32, 42, '', '', '', '', '', '', '', '', '2023-10-09 06:06:51'),
(10, 33, 44, '', '', '', '', '', '', '', '', '2023-10-09 06:13:37'),
(11, 34, 46, '', '', '', '', '', '', '', '', '2023-10-09 06:15:14'),
(12, 35, 48, '', '', '', '', '', '', '', '', '2023-10-09 06:16:11'),
(13, 36, 50, '', '', '', '', '', '', '', '', '2023-10-09 07:30:31'),
(14, 37, 52, '', '', '', '', '', '', '', '', '2023-10-09 07:33:27');

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

--
-- Table structure for table `business_finance_address`
--

CREATE TABLE `business_finance_address` (
  `id` int(11) NOT NULL,
  `finance_id` int(11) NOT NULL,
  `address` varchar(150) NOT NULL,
  `suburb` varchar(100) NOT NULL,
  `state` varchar(100) NOT NULL,
  `postcode` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_finance_address`
--

INSERT INTO `business_finance_address` (`id`, `finance_id`, `address`, `suburb`, `state`, `postcode`) VALUES
(48, 2, '21 Smith Street', 'Coomera', 'QLD', '4213');

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

--
-- Table structure for table `business_finance_detail`
--

CREATE TABLE `business_finance_detail` (
  `id` int(11) NOT NULL,
  `business_id` int(11) NOT NULL,
  `director_id` int(11) NOT NULL,
  `annual_revenue` varchar(200) NOT NULL,
  `net_profit` varchar(200) NOT NULL,
  `directors_remuneration` varchar(200) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_finance_detail`
--

INSERT INTO `business_finance_detail` (`id`, `business_id`, `director_id`, `annual_revenue`, `net_profit`, `directors_remuneration`, `created_at`) VALUES
(1, 23, 23, '1,000,000', '300,000', '100,000', '2023-04-18 22:48:04'),
(2, 25, 28, '1,000,000', '300,000', '100,000', '2023-10-09 05:07:04'),
(3, 26, 30, '1,000,000', '300,000', '100,000', '2023-10-09 05:35:32'),
(4, 27, 32, '1,000,000', '300,000', '100,000', '2023-10-09 05:42:42'),
(5, 28, 34, '1,000,000', '300,000', '100,000', '2023-10-09 05:45:25'),
(6, 29, 36, '1,000,000', '300,000', '100,000', '2023-10-09 05:47:44'),
(7, 30, 38, '1,000,000', '300,000', '100,000', '2023-10-09 05:56:43'),
(8, 31, 40, '1,000,000', '300,000', '100,000', '2023-10-09 06:06:00'),
(9, 32, 42, '1,000,000', '300,000', '100,000', '2023-10-09 06:06:51'),
(10, 33, 44, '1,000,000', '300,000', '100,000', '2023-10-09 06:13:37'),
(11, 34, 46, '1,000,000', '300,000', '100,000', '2023-10-09 06:15:14'),
(12, 35, 48, '1,000,000', '300,000', '100,000', '2023-10-09 06:16:11'),
(13, 36, 50, '1,000,000', '300,000', '100,000', '2023-10-09 07:30:31'),
(14, 37, 52, '1,000,000', '300,000', '100,000', '2023-10-09 07:33:27');

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

--
-- Table structure for table `business_legal_detail`
--

CREATE TABLE `business_legal_detail` (
  `id` int(11) NOT NULL,
  `business_id` int(11) NOT NULL,
  `director_id` int(11) NOT NULL,
  `company_name` varchar(255) NOT NULL,
  `firstname` varchar(200) NOT NULL,
  `lastname` varchar(200) NOT NULL,
  `phone` varchar(50) NOT NULL,
  `mobile` varchar(50) NOT NULL,
  `email` varchar(150) NOT NULL,
  `website` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_legal_detail`
--

INSERT INTO `business_legal_detail` (`id`, `business_id`, `director_id`, `company_name`, `firstname`, `lastname`, `phone`, `mobile`, `email`, `website`) VALUES
(1, 23, 23, 'Brett Law', 'Brett', 'Ken', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'www.datasafeapps.com.au'),
(2, 25, 28, 'Brett Law', 'Brett', 'Ken', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'www.datasafeapps.com.au'),
(3, 26, 30, 'Brett Law', 'Brett', 'Ken', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'www.datasafeapps.com.au'),
(4, 27, 32, 'Brett Law', 'Brett', 'Ken', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'www.datasafeapps.com.au'),
(5, 28, 34, 'Brett Law', 'Brett', 'Ken', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'www.datasafeapps.com.au'),
(6, 29, 36, 'Brett Law', 'Brett', 'Ken', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'www.datasafeapps.com.au'),
(7, 30, 38, 'Brett Law', 'Brett', 'Ken', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'www.datasafeapps.com.au'),
(8, 31, 40, 'Brett Law', 'Brett', 'Ken', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'www.datasafeapps.com.au'),
(9, 32, 42, 'Brett Law', 'Brett', 'Ken', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'www.datasafeapps.com.au'),
(10, 33, 44, 'Brett Law', 'Brett', 'Ken', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'www.datasafeapps.com.au'),
(11, 34, 46, 'Brett Law', 'Brett', 'Ken', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'www.datasafeapps.com.au'),
(12, 35, 48, 'Brett Law', 'Brett', 'Ken', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'www.datasafeapps.com.au'),
(13, 36, 50, 'Brett Law', 'Brett', 'Ken', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'www.datasafeapps.com.au'),
(14, 37, 52, 'Brett Law', 'Brett', 'Ken', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'www.datasafeapps.com.au');

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

--
-- Table structure for table `business_legal_detail_address`
--

CREATE TABLE `business_legal_detail_address` (
  `id` int(11) NOT NULL,
  `legal_id` int(11) NOT NULL,
  `business_address` varchar(250) NOT NULL,
  `suburb` varchar(150) NOT NULL,
  `state` varchar(100) NOT NULL,
  `postcode` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_legal_detail_address`
--

INSERT INTO `business_legal_detail_address` (`id`, `legal_id`, `business_address`, `suburb`, `state`, `postcode`) VALUES
(67, 3, '21a Smith Street', 'Oxenford', 'QLD', '4212'),
(68, 4, '21a Smith Street', 'Oxenford', 'QLD', '4212'),
(69, 5, '21a Smith Street', 'Oxenford', 'QLD', '4212'),
(70, 6, '21a Smith Street', 'Oxenford', 'QLD', '4212'),
(71, 7, '21a Smith Street', 'Oxenford', 'QLD', '4212'),
(72, 8, '21a Smith Street', 'Oxenford', 'QLD', '4212'),
(73, 9, '21a Smith Street', 'Oxenford', 'QLD', '4212'),
(75, 10, '21a Smith Street', 'Oxenford', 'QLD', '4212'),
(76, 11, '21a Smith Street', 'Oxenford', 'QLD', '4212'),
(93, 12, '21a Smith Street', 'Oxenford', 'QLD', '4212'),
(96, 2, '21a Smith Street', 'Oxenford', 'QLD', '4212'),
(106, 1, '21a Smith Street', 'Oxenford', 'QLD', '4212'),
(108, 13, '21a Smith Street', 'Oxenford', 'QLD', '4212'),
(113, 14, '21a Smith Street', 'Oxenford', 'QLD', '4212');

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

--
-- Table structure for table `business_long_asset`
--

CREATE TABLE `business_long_asset` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `land` varchar(100) NOT NULL,
  `building` varchar(100) NOT NULL,
  `furniture` varchar(100) NOT NULL,
  `total_fixed_asset` varchar(100) NOT NULL,
  `total_asset` varchar(100) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_long_asset`
--

INSERT INTO `business_long_asset` (`id`, `RentalID`, `land`, `building`, `furniture`, `total_fixed_asset`, `total_asset`, `status`, `timestamp`, `created_at`) VALUES
(1, 101, '', '', '', '', '', 0, '1673958840', '2023-01-17 12:34:00'),
(2, 103, '', '', '', '', '', 0, '1675142378', '2023-01-31 05:19:38'),
(3, 107, '', '', '', '', '', 0, '1677671309', '2023-03-01 11:48:29'),
(4, 110, '', '', '', '', '', 0, '1677819191', '2023-03-03 04:53:11'),
(5, 111, '', '', '', '', '', 0, '1678081735', '2023-03-06 05:48:55'),
(6, 112, '', '', '', '', '', 0, '1678342784', '2023-03-09 06:19:44'),
(7, 113, '', '', '', '', '', 0, '1678358520', '2023-03-09 10:42:00'),
(8, 116, '', '', '', '', '', 0, '1678699983', '2023-03-13 09:33:03'),
(9, 119, '', '', '', '', '', 0, '1678770532', '2023-03-14 05:08:52'),
(10, 120, '', '', '', '', '', 0, '1678779987', '2023-03-14 07:46:27'),
(11, 122, '', '', '', '', '', 0, '1678965380', '2023-03-16 11:16:20'),
(12, 123, '500,000', '1,000,000', '', '1,500,000', '1,762,000', 0, '1687768025', '2023-06-26 08:27:05'),
(13, 124, '', '', '', '', '', 0, '1689740309', '2023-07-19 04:18:29'),
(14, 137, '900,000', '1,500,000', '150,000', '2,550,000', '2,810,000', 0, '1696894486', '2023-10-09 23:34:46'),
(15, 136, '', '', '', '', '', 0, '1697411850', '2023-10-15 23:17:30');

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

--
-- Table structure for table `business_long_liability`
--

CREATE TABLE `business_long_liability` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `loan` varchar(100) NOT NULL,
  `total_long_liability` varchar(100) NOT NULL,
  `total_liability` varchar(100) NOT NULL,
  `timestamp` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_long_liability`
--

INSERT INTO `business_long_liability` (`id`, `RentalID`, `loan`, `total_long_liability`, `total_liability`, `timestamp`, `status`, `created_at`) VALUES
(1, 101, '', '', '', '1673958840', 0, '2023-01-17 12:34:00'),
(2, 103, '', '', '', '1675142378', 0, '2023-01-31 05:19:38'),
(3, 107, '', '', '', '1677671309', 0, '2023-03-01 11:48:29'),
(4, 110, '', '', '', '1677819191', 0, '2023-03-03 04:53:11'),
(5, 111, '', '', '', '1678081735', 0, '2023-03-06 05:48:55'),
(6, 112, '', '', '', '1678342784', 0, '2023-03-09 06:19:44'),
(7, 113, '', '', '', '1678358520', 0, '2023-03-09 10:42:00'),
(8, 116, '', '', '', '1678699983', 0, '2023-03-13 09:33:03'),
(9, 119, '', '', '', '1678770532', 0, '2023-03-14 05:08:52'),
(10, 120, '', '', '', '1678779987', 0, '2023-03-14 07:46:27'),
(11, 122, '', '', '', '1678965380', 0, '2023-03-16 11:16:20'),
(12, 123, '10,000', '10,000', '101,000', '1687768025', 0, '2023-06-26 08:27:05'),
(13, 124, '', '', '', '1689740309', 0, '2023-07-19 04:18:29'),
(14, 137, '220,000', '220,000', '520,000', '1696894486', 0, '2023-10-09 23:34:46'),
(15, 136, '', '', '', '1697411850', 0, '2023-10-15 23:17:30');

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

--
-- Table structure for table `business_other_asset`
--

CREATE TABLE `business_other_asset` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `asset_id` int(11) NOT NULL,
  `other_text` varchar(100) NOT NULL,
  `other_amt` varchar(100) NOT NULL,
  `asset_type` varchar(50) NOT NULL COMMENT 'current, long',
  `status` int(11) NOT NULL DEFAULT '0',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `business_other_liability_owner`
--

CREATE TABLE `business_other_liability_owner` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `liability_id` int(11) NOT NULL,
  `other_text` varchar(100) NOT NULL,
  `amount` varchar(100) NOT NULL,
  `other_type` varchar(50) NOT NULL COMMENT 'current,long,owner',
  `status` int(11) NOT NULL DEFAULT '0',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_other_liability_owner`
--

INSERT INTO `business_other_liability_owner` (`id`, `RentalID`, `liability_id`, `other_text`, `amount`, `other_type`, `status`, `created_at`) VALUES
(1, 119, 9, '', '', 'current', 0, '2023-03-14 10:38:06');

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

--
-- Table structure for table `business_owner_equity`
--

CREATE TABLE `business_owner_equity` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `capital` varchar(100) NOT NULL,
  `total_owner` varchar(100) NOT NULL,
  `total_liability_owner` varchar(100) NOT NULL,
  `timestamp` varchar(50) NOT NULL,
  `staus` int(11) NOT NULL DEFAULT '0',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_owner_equity`
--

INSERT INTO `business_owner_equity` (`id`, `RentalID`, `capital`, `total_owner`, `total_liability_owner`, `timestamp`, `staus`, `created_at`) VALUES
(1, 101, '', '', '', '1673958840', 0, '2023-01-17 12:34:00'),
(2, 103, '', '', '', '1675142378', 0, '2023-01-31 05:19:38'),
(3, 107, '', '', '', '1677671309', 0, '2023-03-01 11:48:29'),
(4, 110, '', '', '', '1677819191', 0, '2023-03-03 04:53:11'),
(5, 111, '', '', '', '1678081735', 0, '2023-03-06 05:48:55'),
(6, 112, '', '', '', '1678342784', 0, '2023-03-09 06:19:44'),
(7, 113, '', '', '', '1678358520', 0, '2023-03-09 10:42:00'),
(8, 116, '', '', '', '1678699983', 0, '2023-03-13 09:33:03'),
(9, 119, '', '', '', '1678770532', 0, '2023-03-14 05:08:52'),
(10, 120, '', '', '', '1678779987', 0, '2023-03-14 07:46:27'),
(11, 122, '', '', '', '1678965380', 0, '2023-03-16 11:16:20'),
(12, 123, '500,000', '500,000', '601,000', '1687768025', 0, '2023-06-26 08:27:05'),
(13, 124, '', '', '', '1689740309', 0, '2023-07-19 04:18:29'),
(14, 137, '500,000', '500,000', '1,020,000', '1696894486', 0, '2023-10-09 23:34:46'),
(15, 136, '', '', '', '1697411850', 0, '2023-10-15 23:17:30');

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

--
-- Table structure for table `business_profit_loss`
--

CREATE TABLE `business_profit_loss` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `agentID` int(11) NOT NULL,
  `sales` varchar(50) NOT NULL,
  `goods_cost` varchar(50) NOT NULL,
  `other_income` varchar(50) NOT NULL,
  `closing_stock` varchar(50) NOT NULL,
  `add_cost` varchar(50) NOT NULL,
  `expenses` varchar(50) NOT NULL,
  `add_backs` varchar(50) NOT NULL,
  `net_profit_loss` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_profit_loss`
--

INSERT INTO `business_profit_loss` (`id`, `RentalID`, `agentID`, `sales`, `goods_cost`, `other_income`, `closing_stock`, `add_cost`, `expenses`, `add_backs`, `net_profit_loss`, `status`, `delete_status`, `created_at`) VALUES
(1, 123, 2, '1,000,000', '500,000', '300,000', '250,000', '0', '300,000', '30,000', '980,000', 0, 0, '2023-04-18 23:16:06');

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

--
-- Table structure for table `business_profit_loss_other`
--

CREATE TABLE `business_profit_loss_other` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `profit_id` int(11) NOT NULL,
  `type` varchar(50) NOT NULL COMMENT 'add,backs,other',
  `text` varchar(150) NOT NULL,
  `amount` varchar(50) NOT NULL,
  `timestamp` varchar(50) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_profit_loss_other`
--

INSERT INTO `business_profit_loss_other` (`id`, `RentalID`, `profit_id`, `type`, `text`, `amount`, `timestamp`, `created_at`) VALUES
(1, 123, 1, 'other', 'Sales', '200000', '1696816976', '2023-10-09 02:02:56');

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

--
-- Table structure for table `business_supplier_detail`
--

CREATE TABLE `business_supplier_detail` (
  `id` int(11) NOT NULL,
  `business_id` int(11) NOT NULL,
  `director_id` int(11) NOT NULL,
  `business_name` varchar(100) NOT NULL,
  `first_name` varchar(50) NOT NULL,
  `last_name` varchar(50) NOT NULL,
  `mobile` varchar(15) NOT NULL,
  `phone` varchar(15) NOT NULL,
  `email` varchar(150) NOT NULL,
  `accredited` varchar(50) NOT NULL,
  `abn_number` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_supplier_detail`
--

INSERT INTO `business_supplier_detail` (`id`, `business_id`, `director_id`, `business_name`, `first_name`, `last_name`, `mobile`, `phone`, `email`, `accredited`, `abn_number`) VALUES
(1, 23, 23, 'Suppliers Company', 'Peter', 'Fryer', '0418229816', '0418229816', 'kerry@datasafeapps.com.au', 'Yes', '123123123');

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

--
-- Table structure for table `business_supplier_detail_address`
--

CREATE TABLE `business_supplier_detail_address` (
  `id` int(11) NOT NULL,
  `suplier_id` int(11) NOT NULL,
  `business_address` varchar(50) NOT NULL,
  `suburb` varchar(40) NOT NULL,
  `state` varchar(20) NOT NULL,
  `postcode` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_supplier_detail_address`
--

INSERT INTO `business_supplier_detail_address` (`id`, `suplier_id`, `business_address`, `suburb`, `state`, `postcode`) VALUES
(77, 1, '23 Rent street', 'Oxenford', 'QLD', '4210');

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

--
-- Table structure for table `business_trade_detail`
--

CREATE TABLE `business_trade_detail` (
  `id` int(11) NOT NULL,
  `business_id` int(11) NOT NULL,
  `director_id` int(11) NOT NULL,
  `business_name` varchar(50) NOT NULL,
  `first_name` varchar(40) NOT NULL,
  `last_name` varchar(40) NOT NULL,
  `phone` varchar(15) NOT NULL,
  `email` varchar(150) NOT NULL,
  `trade_number` varchar(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_trade_detail`
--

INSERT INTO `business_trade_detail` (`id`, `business_id`, `director_id`, `business_name`, `first_name`, `last_name`, `phone`, `email`, `trade_number`) VALUES
(1, 23, 23, 'ABC Advantage Pty Ltd', 'Renee', 'J ', '0418229816', 'kerry@abcadvantage.com.au', 'one'),
(2, 25, 28, 'ABC Advantage Pty Ltd', 'Renee', 'J ', '0418229816', 'kerry@abcadvantage.com.au', 'one'),
(3, 26, 30, 'ABC Advantage Pty Ltd', 'Renee', 'J ', '0418229816', 'kerry@abcadvantage.com.au', 'one'),
(4, 27, 32, 'ABC Advantage Pty Ltd', 'Renee', 'J ', '0418229816', 'kerry@abcadvantage.com.au', 'one'),
(5, 28, 34, 'ABC Advantage Pty Ltd', 'Renee', 'J ', '0418229816', 'kerry@abcadvantage.com.au', 'one'),
(6, 29, 36, 'ABC Advantage Pty Ltd', 'Renee', 'J ', '0418229816', 'kerry@abcadvantage.com.au', 'one'),
(7, 30, 38, 'ABC Advantage Pty Ltd', 'Renee', 'J ', '0418229816', 'kerry@abcadvantage.com.au', 'one'),
(8, 31, 40, 'ABC Advantage Pty Ltd', 'Renee', 'J ', '0418229816', 'kerry@abcadvantage.com.au', 'one'),
(9, 32, 42, 'ABC Advantage Pty Ltd', 'Renee', 'J ', '0418229816', 'kerry@abcadvantage.com.au', 'one'),
(10, 33, 44, 'ABC Advantage Pty Ltd', 'Renee', 'J ', '0418229816', 'kerry@abcadvantage.com.au', 'one'),
(11, 34, 46, 'ABC Advantage Pty Ltd', 'Renee', 'J ', '0418229816', 'kerry@abcadvantage.com.au', 'one'),
(12, 35, 48, 'ABC Advantage Pty Ltd', 'Renee', 'J ', '0418229816', 'kerry@abcadvantage.com.au', 'one'),
(13, 36, 50, 'ABC Advantage Pty Ltd', 'Renee', 'J ', '0418229816', 'kerry@abcadvantage.com.au', 'one'),
(14, 37, 52, 'ABC Advantage Pty Ltd', 'Renee', 'J ', '0418229816', 'kerry@abcadvantage.com.au', 'one');

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

--
-- Table structure for table `business_trade_detail_address`
--

CREATE TABLE `business_trade_detail_address` (
  `id` int(11) NOT NULL,
  `business_trade_id` int(11) NOT NULL,
  `business_address` varchar(40) NOT NULL,
  `state` varchar(30) NOT NULL,
  `suburb` varchar(20) NOT NULL,
  `postcode` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `business_trade_detail_address`
--

INSERT INTO `business_trade_detail_address` (`id`, `business_trade_id`, `business_address`, `state`, `suburb`, `postcode`) VALUES
(72, 3, '21a 100-106 bOld Pacific Highway', 'NSW', 'oxenford', '4210'),
(73, 4, '21a 100-106 bOld Pacific Highway', 'NSW', 'oxenford', '4210'),
(74, 5, '21a 100-106 bOld Pacific Highway', 'NSW', 'oxenford', '4210'),
(75, 6, '21a 100-106 bOld Pacific Highway', 'NSW', 'oxenford', '4210'),
(76, 7, '21a 100-106 bOld Pacific Highway', 'NSW', 'oxenford', '4210'),
(77, 8, '21a 100-106 bOld Pacific Highway', 'NSW', 'oxenford', '4210'),
(78, 9, '21a 100-106 bOld Pacific Highway', 'NSW', 'oxenford', '4210'),
(80, 10, '21a 100-106 bOld Pacific Highway', 'NSW', 'oxenford', '4210'),
(81, 11, '21a 100-106 bOld Pacific Highway', 'NSW', 'oxenford', '4210'),
(98, 12, '21a 100-106 bOld Pacific Highway', 'NSW', 'oxenford', '4210'),
(101, 2, '21a 100-106 bOld Pacific Highway', 'NSW', 'oxenford', '4210'),
(111, 1, '21a 100-106 bOld Pacific Highway', 'NSW', 'oxenford', '4210'),
(113, 13, '21a 100-106 bOld Pacific Highway', 'NSW', 'oxenford', '4210'),
(118, 14, '21a 100-106 bOld Pacific Highway', 'NSW', 'oxenford', '4210');

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

--
-- Table structure for table `category_factors`
--

CREATE TABLE `category_factors` (
  `id` int(11) NOT NULL,
  `agentID` int(11) NOT NULL,
  `category_id` int(11) NOT NULL,
  `category_name` varchar(80) NOT NULL,
  `terms` text NOT NULL,
  `factor_values` text NOT NULL,
  `wk_26` double NOT NULL DEFAULT '0',
  `wk_52` double NOT NULL DEFAULT '0',
  `wk_78` double NOT NULL DEFAULT '0',
  `wk_104` double NOT NULL DEFAULT '0',
  `wk_130` double NOT NULL DEFAULT '0',
  `wk_156` double NOT NULL DEFAULT '0',
  `wk_208` double NOT NULL DEFAULT '0',
  `wk_260` double NOT NULL DEFAULT '0',
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `category_factors`
--

INSERT INTO `category_factors` (`id`, `agentID`, `category_id`, `category_name`, `terms`, `factor_values`, `wk_26`, `wk_52`, `wk_78`, `wk_104`, `wk_130`, `wk_156`, `wk_208`, `wk_260`, `delete_status`, `timestamp`, `updated_at`) VALUES
(1, 2, 1, 'Furniture ', '26,52,78,104,9999', '2,2.3,2.5,2.6,2.6', 2, 2.3, 2.5, 2.6, 0, 0, 0, 0, 0, '2023-01-05 11:24:24', ''),
(2, 2, 3, 'Home Entertainment', '52,78,104,156,9999', '2,2.4,2.9,3.4,3.4', 0, 2, 2.4, 2.9, 0, 3.4, 0, 0, 0, '2023-01-05 11:24:24', ''),
(3, 2, 6, 'Mobile Phones', '26,52,78,104,9999', '1.4,2.25,3.4,4.1,4.1', 1.4, 2.25, 3.4, 4.1, 0, 0, 0, 0, 0, '2023-01-05 11:24:24', ''),
(4, 2, 7, 'White Goods', '52,104,156,204,9999', '1.38,1.5,1.85,2.1,2.1', 0, 1.38, 0, 1.5, 0, 1.85, 0, 0, 0, '2023-01-05 11:24:24', ''),
(5, 2, 12, 'Motor Vehicle', '2,4,6,8,9999', '10.4,20.8,31.2,41.6,41.6', 0, 0, 0, 0, 0, 0, 0, 0, 0, '2023-01-05 11:24:24', ''),
(6, 2, 15, 'Tools', '4,8,12,9999', '1.2,1.4,1.6,1.6', 0, 0, 0, 0, 0, 0, 0, 0, 0, '2023-01-05 11:24:24', ''),
(7, 2, 19, 'Washing Machines', '26,52,78,104,9999', '1.65,2,3,3.8,3.8', 1.65, 2, 3, 3.8, 0, 0, 0, 0, 0, '2023-01-05 11:24:24', ''),
(8, 2, 20, 'Televisions', '26,52,78,104,9999', '1.8,3.5,5.2,6.75,6.75', 1.8, 3.5, 5.2, 6.75, 0, 0, 0, 0, 0, '2023-01-05 11:24:24', ''),
(9, 2, 24, 'Tablets', '26,52,78,104,9999', '2,2.5,3,3.5,3.5', 2, 2.5, 3, 3.5, 0, 0, 0, 0, 0, '2023-01-05 11:24:24', ''),
(10, 2, 27, 'Bedding', '26,52,78,104,9999', '2,2.15,2.25,2.35,2.35', 2, 2.15, 2.25, 2.35, 0, 0, 0, 0, 0, '2023-01-05 11:24:24', ''),
(11, 2, 28, 'Sporting Equipment', '26,52,78,104,9999', '2,2.2,2.5,2.75,2.75', 2, 2.2, 2.5, 2.75, 0, 0, 0, 0, 0, '2023-01-05 11:24:24', '');

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

--
-- Table structure for table `centrelink`
--

CREATE TABLE `centrelink` (
  `ClientID` int(6) NOT NULL,
  `CentrelinkNumber` varchar(15) NOT NULL,
  `CentrelinkName` varchar(40) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `children_client1`
--

CREATE TABLE `children_client1` (
  `children_id` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(150) NOT NULL COMMENT 'loan/rent',
  `clothes` varchar(250) NOT NULL,
  `child_care` varchar(200) NOT NULL,
  `school_sport` varchar(200) NOT NULL,
  `presents` varchar(250) NOT NULL,
  `pocket_money` varchar(200) NOT NULL,
  `maintenance` varchar(255) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `children_client2`
--

CREATE TABLE `children_client2` (
  `children_id` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(100) NOT NULL COMMENT 'loan/rent',
  `clothes` varchar(250) NOT NULL,
  `child_care` varchar(200) NOT NULL,
  `school_sport` varchar(200) NOT NULL,
  `presents` varchar(200) NOT NULL,
  `pocket_money` varchar(200) NOT NULL,
  `maintenance` varchar(200) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `client1_employer`
--

CREATE TABLE `client1_employer` (
  `id` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(255) NOT NULL COMMENT 'loan/rent',
  `employer` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `phone` varchar(255) NOT NULL,
  `address` varchar(255) NOT NULL,
  `suburb` varchar(255) NOT NULL,
  `state` varchar(255) NOT NULL,
  `postcode` varchar(255) NOT NULL,
  `income_frequency` varchar(100) NOT NULL,
  `employer_status` varchar(100) NOT NULL,
  `facebook_emp` varchar(100) DEFAULT NULL,
  `website_emp` varchar(100) DEFAULT NULL,
  `year` varchar(255) NOT NULL,
  `month` varchar(255) NOT NULL,
  `occupation` varchar(255) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `client1_property`
--

CREATE TABLE `client1_property` (
  `id` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(255) NOT NULL COMMENT 'loan/rent',
  `real_estate_agent` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `phone` varchar(255) NOT NULL,
  `real_owner` varchar(150) NOT NULL,
  `home_loan_provider` varchar(150) NOT NULL,
  `address` varchar(255) NOT NULL,
  `suburb` varchar(255) NOT NULL,
  `state` varchar(255) NOT NULL,
  `postcode` varchar(255) NOT NULL,
  `year` varchar(255) NOT NULL,
  `month` varchar(255) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `client2_employer`
--

CREATE TABLE `client2_employer` (
  `id` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(255) NOT NULL COMMENT 'loan/rent',
  `employer` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `phone` varchar(255) NOT NULL,
  `address` varchar(255) NOT NULL,
  `suburb` varchar(255) NOT NULL,
  `state` varchar(255) NOT NULL,
  `postcode` varchar(255) NOT NULL,
  `year` varchar(255) NOT NULL,
  `month` varchar(255) NOT NULL,
  `occupation` varchar(255) NOT NULL,
  `employer_status` varchar(100) NOT NULL,
  `income_frequency` varchar(100) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `client2_property`
--

CREATE TABLE `client2_property` (
  `id` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(100) NOT NULL COMMENT 'loan/rent',
  `real_estate_agent` varchar(200) NOT NULL,
  `name` varchar(200) NOT NULL,
  `phone` varchar(200) NOT NULL,
  `real_owner` varchar(150) NOT NULL,
  `home_loan_provider` varchar(150) NOT NULL,
  `address` varchar(255) NOT NULL,
  `suburb` varchar(255) NOT NULL,
  `state` varchar(200) NOT NULL,
  `postcode` varchar(200) NOT NULL,
  `year` varchar(200) NOT NULL,
  `month` varchar(200) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `client_1`
--

CREATE TABLE `client_1` (
  `ClientID` int(6) NOT NULL,
  `AgentID` int(6) NOT NULL,
  `RentalID` int(6) NOT NULL,
  `client_id` varchar(25) NOT NULL,
  `agent_user_id` int(11) NOT NULL,
  `crb_no` varchar(25) NOT NULL,
  `minit_client_id` int(10) DEFAULT NULL,
  `client_status` varchar(150) NOT NULL,
  `Type` varchar(15) NOT NULL,
  `Status` varchar(15) NOT NULL DEFAULT '0',
  `minit_status` int(11) NOT NULL DEFAULT '0',
  `Title` varchar(4) NOT NULL,
  `FirstName` varchar(150) NOT NULL,
  `MiddleName` varchar(150) NOT NULL,
  `LastName` varchar(150) NOT NULL,
  `DOB` varchar(10) NOT NULL,
  `year` int(11) NOT NULL,
  `month` varchar(3) NOT NULL,
  `current_year` varchar(10) NOT NULL DEFAULT '0',
  `current_month` varchar(10) NOT NULL DEFAULT '0',
  `DriverLicense` varchar(100) NOT NULL,
  `Gender` varchar(6) NOT NULL,
  `Marital` varchar(9) NOT NULL,
  `Children` int(2) NOT NULL,
  `HomePhone` varchar(20) NOT NULL,
  `Work` varchar(20) NOT NULL,
  `Mobile` varchar(20) NOT NULL,
  `Email` varchar(100) NOT NULL,
  `Address` varchar(150) NOT NULL,
  `postal_address` varchar(255) NOT NULL,
  `Suburb` varchar(20) NOT NULL,
  `postal_suburb` varchar(150) NOT NULL,
  `State` varchar(3) NOT NULL,
  `postal_state` varchar(150) NOT NULL,
  `postal_postcode` varchar(4) NOT NULL,
  `Postcode` varchar(4) NOT NULL,
  `previous_address` varchar(200) NOT NULL,
  `previous_suburb` varchar(150) NOT NULL,
  `previous_state` varchar(100) NOT NULL,
  `previous_postcode` varchar(4) NOT NULL,
  `Date` varchar(25) NOT NULL,
  `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` int(11) NOT NULL DEFAULT '0',
  `active_user` int(11) NOT NULL DEFAULT '0',
  `updated_at` varchar(50) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `client_1_property_history`
--

CREATE TABLE `client_1_property_history` (
  `ClientID` int(6) NOT NULL,
  `HowLong` int(11) NOT NULL,
  `RentingFrom` varchar(11) NOT NULL,
  `Phone2` int(11) NOT NULL,
  `MortgageWith` varchar(30) NOT NULL,
  `Phone3` int(10) NOT NULL,
  `PreviousAddress` varchar(40) NOT NULL,
  `Suburb2` varchar(20) NOT NULL,
  `Postcode2` int(4) NOT NULL,
  `State1a` varchar(3) NOT NULL,
  `HowLong2` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `client_2`
--

CREATE TABLE `client_2` (
  `ClientID` int(6) NOT NULL,
  `AgentID` int(6) NOT NULL,
  `RentalID` int(6) NOT NULL,
  `client_id` varchar(25) NOT NULL,
  `agent_user_id` int(11) NOT NULL,
  `crb_no` varchar(25) NOT NULL,
  `minit_client_id` int(10) DEFAULT NULL,
  `client_status` varchar(150) NOT NULL,
  `Type` varchar(15) NOT NULL,
  `Status2` varchar(15) NOT NULL DEFAULT '0',
  `Title2` varchar(4) NOT NULL,
  `FirstName2` varchar(100) NOT NULL,
  `MiddleName2` varchar(100) NOT NULL,
  `LastName2` varchar(100) NOT NULL,
  `DOB2` varchar(10) NOT NULL,
  `DriversLicense2` varchar(150) NOT NULL,
  `Gender2` varchar(6) NOT NULL,
  `Marital2` varchar(9) NOT NULL,
  `Children2` int(2) NOT NULL,
  `HomePhone2` varchar(20) NOT NULL,
  `Workphone2` varchar(20) NOT NULL,
  `Mobile2` varchar(20) NOT NULL,
  `Email2` varchar(100) NOT NULL,
  `Address4` varchar(150) NOT NULL,
  `postal_address` varchar(255) NOT NULL,
  `Suburb4` varchar(20) NOT NULL,
  `State2` varchar(3) NOT NULL,
  `Postcode3` varchar(4) NOT NULL,
  `year` int(11) NOT NULL,
  `month` varchar(3) NOT NULL,
  `current_year` varchar(10) NOT NULL DEFAULT '0',
  `current_month` varchar(10) NOT NULL DEFAULT '0',
  `postal_suburb` varchar(150) NOT NULL,
  `postal_state` varchar(50) NOT NULL,
  `postal_postcode` varchar(4) NOT NULL,
  `previous_address` varchar(200) NOT NULL,
  `previous_suburb` varchar(150) NOT NULL,
  `previous_state` varchar(100) NOT NULL,
  `previous_postcode` varchar(10) NOT NULL,
  `date` varchar(25) NOT NULL,
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` varchar(50) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `client_2_property_history`
--

CREATE TABLE `client_2_property_history` (
  `ClientID` int(6) NOT NULL,
  `HowLong3` int(11) NOT NULL,
  `RentingFrom2` varchar(30) NOT NULL,
  `Phone6` int(10) NOT NULL,
  `MortgageWith2` varchar(30) NOT NULL,
  `Phone7` int(10) NOT NULL,
  `PreviousAddress3` varchar(30) NOT NULL,
  `Suburb3` varchar(20) NOT NULL,
  `Postcode4` int(4) NOT NULL,
  `State1b` varchar(3) NOT NULL,
  `HowLong4` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `client_expenses`
--

CREATE TABLE `client_expenses` (
  `ClientID` int(6) NOT NULL,
  `RentalID` varchar(35) NOT NULL,
  `LoanID` varchar(35) NOT NULL,
  `RentOrBoard` int(6) NOT NULL,
  `RentOrBoard2` int(6) NOT NULL,
  `Mortgage` int(6) NOT NULL,
  `Mortgage2` int(6) NOT NULL,
  `Rates` int(6) NOT NULL,
  `Rates2` int(6) NOT NULL,
  `Electricity` int(6) NOT NULL,
  `Electricity2` int(6) NOT NULL,
  `Gas` int(6) NOT NULL,
  `Gas2` int(6) NOT NULL,
  `WeekleyExpensesPhone` int(6) NOT NULL,
  `WeekleyExpensesPhone2` int(6) NOT NULL,
  `Internet` int(6) NOT NULL,
  `Internet2` int(6) NOT NULL,
  `WeeklyExpensesMobile` int(6) NOT NULL,
  `WeeklyExpensesMobile2` int(6) NOT NULL,
  `Spare1` varchar(35) NOT NULL,
  `Spare2` varchar(35) NOT NULL,
  `SpareFibin1` varchar(36) NOT NULL,
  `SpareFibin5` varchar(36) NOT NULL,
  `SpareFibin6` varchar(36) NOT NULL,
  `SpareFibin7` varchar(37) NOT NULL,
  `SpareFibin8` varchar(38) NOT NULL,
  `SpareFibin9` varchar(39) NOT NULL,
  `RentalGoods` int(6) NOT NULL,
  `RentalGoods2` int(6) NOT NULL,
  `Centrelink1` int(6) NOT NULL,
  `Centrelink12` int(6) NOT NULL,
  `Centrelink2` int(6) NOT NULL,
  `Centrelink22` int(6) NOT NULL,
  `Centrelink3` int(6) NOT NULL,
  `Centrelink32` int(6) NOT NULL,
  `CreditCard` int(6) NOT NULL,
  `CreditCard2` int(6) NOT NULL,
  `Loan1` int(6) NOT NULL,
  `Loan12` int(6) NOT NULL,
  `Loan2` int(6) NOT NULL,
  `Loan21` int(6) NOT NULL,
  `Loan3` int(6) NOT NULL,
  `Loan32` int(6) NOT NULL,
  `CarLoan` int(6) NOT NULL,
  `Carloan2` int(6) NOT NULL,
  `StateDebt` int(6) NOT NULL,
  `StateDebt2` int(6) NOT NULL,
  `Groceries` int(6) NOT NULL,
  `Groceries2` int(6) NOT NULL,
  `Takeaway` int(6) NOT NULL,
  `Takeaway2` int(6) NOT NULL,
  `Clothes` int(6) NOT NULL,
  `Clothes2` int(6) NOT NULL,
  `Smokes` int(6) NOT NULL,
  `Smokes2` int(6) NOT NULL,
  `Drinks` int(6) NOT NULL,
  `Drinks2` int(6) NOT NULL,
  `Other` int(6) NOT NULL,
  `Other2` int(6) NOT NULL,
  `ClothesB` int(6) NOT NULL,
  `ClothesB2` int(6) NOT NULL,
  `ChildCare` int(6) NOT NULL,
  `ChildCare2` int(6) NOT NULL,
  `SchoolSport` int(6) NOT NULL,
  `SchoolSport2` int(6) NOT NULL,
  `Presents` int(6) NOT NULL,
  `Presents2` int(6) NOT NULL,
  `PocketMoney` int(6) NOT NULL,
  `PocketMoney2` int(6) NOT NULL,
  `Maint` int(6) NOT NULL,
  `Maint2` int(6) NOT NULL,
  `ChildrenBlank` varchar(39) NOT NULL,
  `ChildrenBlank1` int(6) NOT NULL,
  `ChildrenBlank2` int(6) NOT NULL,
  `XmasHamper` int(6) NOT NULL,
  `XmasHamper2` int(6) NOT NULL,
  `Foxtel` int(6) NOT NULL,
  `Foxtel2` int(6) NOT NULL,
  `RentBuyDvd` int(6) NOT NULL,
  `RentBuyDvd2` int(6) NOT NULL,
  `LottoEtc` int(6) NOT NULL,
  `LottoEtc2` int(6) NOT NULL,
  `PrivateMedical` int(6) NOT NULL,
  `PrivateMedical2` int(6) NOT NULL,
  `MedicalExp` int(6) NOT NULL,
  `MedicalExp2` int(6) NOT NULL,
  `HouseInsure` int(6) NOT NULL,
  `HouseInsure2` int(6) NOT NULL,
  `FuneralFund` int(6) NOT NULL,
  `FuneralFund2` int(6) NOT NULL,
  `CarInsurance` int(6) NOT NULL,
  `CarInsurance2` int(6) NOT NULL,
  `Registration` int(6) NOT NULL,
  `Registration2` int(6) NOT NULL,
  `Petrol` int(6) NOT NULL,
  `Petrol2` int(6) NOT NULL,
  `TyresMaint` int(6) NOT NULL,
  `TyresMaint2` int(6) NOT NULL,
  `BusTrainTaxi` int(6) NOT NULL,
  `BusTrainTaxi2` int(6) NOT NULL,
  `OtherOther` int(6) NOT NULL,
  `OtherOther2` int(6) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `client_income`
--

CREATE TABLE `client_income` (
  `ClientID` int(6) NOT NULL,
  `RentalID` int(6) NOT NULL,
  `LoanID` int(6) NOT NULL,
  `Fulltime` int(6) NOT NULL,
  `Fulltime2` int(6) NOT NULL,
  `Parttime` int(6) NOT NULL,
  `Partime2` int(6) NOT NULL,
  `Casual` int(6) NOT NULL,
  `Casual2` int(6) NOT NULL,
  `WeeklyIncomeSpare` varchar(35) NOT NULL,
  `WeeklyIncome1` int(6) NOT NULL,
  `WeeklyIncome2` int(6) NOT NULL,
  `Newstart` int(6) NOT NULL,
  `Newstart2` int(6) NOT NULL,
  `SpareBudget2` varchar(35) NOT NULL,
  `Benefits` int(6) NOT NULL,
  `Benefits2` int(6) NOT NULL,
  `MatureAge` int(6) NOT NULL,
  `MatureAge2` int(6) NOT NULL,
  `Sparebudget3` varchar(35) NOT NULL,
  `MatureAgBB1` int(6) NOT NULL,
  `MatureAgeB2` int(6) NOT NULL,
  `Carer` int(6) NOT NULL,
  `Carer2` int(6) NOT NULL,
  `Carer3` int(6) NOT NULL,
  `Carer4` int(6) NOT NULL,
  `Disability` int(6) NOT NULL,
  `Disability2` int(6) NOT NULL,
  `SpareBudget4` varchar(35) NOT NULL,
  `Disability3` int(6) NOT NULL,
  `Disability4` int(6) NOT NULL,
  `Parenting` int(6) NOT NULL,
  `Parenting2` int(6) NOT NULL,
  `LargeFamily` int(6) NOT NULL,
  `LargeFamily2` int(6) NOT NULL,
  `FamilyA` int(6) NOT NULL,
  `FamilyA2` int(6) NOT NULL,
  `FamilyB1` int(6) NOT NULL,
  `FamilyB2` int(6) NOT NULL,
  `SpareBudget5` varchar(35) NOT NULL,
  `FamilyB3` int(6) NOT NULL,
  `FamilyB4` int(6) NOT NULL,
  `RentAssist` int(6) NOT NULL,
  `RentAssist2` int(6) NOT NULL,
  `Pharmacy` int(6) NOT NULL,
  `Pharmacy2` int(6) NOT NULL,
  `Supliment` int(6) NOT NULL,
  `Supliment2` int(6) NOT NULL,
  `SpareBudget6` varchar(35) NOT NULL,
  `Supliment3` int(6) NOT NULL,
  `Supliment4` int(6) NOT NULL,
  `PhoneBudget` int(6) NOT NULL,
  `PhoneBudget2` int(6) NOT NULL,
  `SpareBudget7` varchar(35) NOT NULL,
  `PhoneBudget3` int(6) NOT NULL,
  `PhoneBudget4` int(6) NOT NULL,
  `ChildMaint` int(6) NOT NULL,
  `ChildMaint2` int(6) NOT NULL,
  `Board` int(6) NOT NULL,
  `Board2` int(6) NOT NULL,
  `OtherIncome` varchar(35) NOT NULL,
  `OtherIncomeB` varchar(35) NOT NULL,
  `OtherIncome1` int(6) NOT NULL,
  `OtherIncome2` int(6) NOT NULL,
  `OtherIncomeB1` int(6) NOT NULL,
  `OtherIncomeB2` int(6) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `client_product`
--

CREATE TABLE `client_product` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `type` varchar(20) NOT NULL,
  `purpose` varchar(255) NOT NULL,
  `feature` varchar(150) NOT NULL,
  `product_type` varchar(150) NOT NULL,
  `product_purpose` varchar(250) NOT NULL,
  `security` varchar(200) NOT NULL,
  `other_feature` varchar(200) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `client_refrences`
--

CREATE TABLE `client_refrences` (
  `ClientID` int(6) NOT NULL,
  `AgentID` int(6) NOT NULL,
  `Type` varchar(15) NOT NULL,
  `RentalID` int(6) NOT NULL,
  `LoanID` int(6) NOT NULL,
  `reference_number1` varchar(25) NOT NULL,
  `reference_number2` varchar(25) NOT NULL,
  `reference_number3` varchar(25) NOT NULL,
  `Status` int(11) NOT NULL,
  `Refrence_Name1` varchar(15) NOT NULL,
  `Refrence_LastName1` varchar(15) NOT NULL,
  `Refrence_LastName2` varchar(15) NOT NULL,
  `Refrence_LastName3` varchar(15) NOT NULL,
  `Refrence_Relationshion1` varchar(15) NOT NULL,
  `Reference_StreetAddress1` varchar(40) NOT NULL,
  `Refrence_Mobile1` varchar(10) NOT NULL,
  `Refrence_email1` varchar(150) NOT NULL,
  `Refrence_Name2` varchar(15) NOT NULL,
  `Refrence_Relationshion2` varchar(15) NOT NULL,
  `Reference_StreetAddress2` varchar(40) NOT NULL,
  `Refrence_Mobile1_1` varchar(20) NOT NULL,
  `Refrence_email2` varchar(150) NOT NULL,
  `Refrence_Name3` varchar(15) NOT NULL,
  `Refrence_Relationshion3` varchar(15) NOT NULL,
  `Reference_StreetAddress3` varchar(40) NOT NULL,
  `Refrence_Mobile1_2` varchar(10) NOT NULL,
  `Refrence_email3` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `client_verification_list`
--

CREATE TABLE `client_verification_list` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `type` varchar(50) NOT NULL,
  `source_type` varchar(70) NOT NULL,
  `income_source` varchar(50) NOT NULL,
  `loan_payment` varchar(50) NOT NULL,
  `inc_expense` varchar(50) NOT NULL,
  `credit_history` varchar(50) NOT NULL,
  `liabilities` varchar(50) NOT NULL,
  `personal_circum` varchar(50) NOT NULL,
  `foreseable` varchar(50) NOT NULL,
  `other_factor` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `clp_climant`
--

CREATE TABLE `clp_climant` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `f_name` varchar(20) DEFAULT NULL,
  `m_name` varchar(20) DEFAULT NULL,
  `l_name` varchar(20) DEFAULT NULL,
  `matter_no` varchar(50) DEFAULT NULL,
  `matter_type` varchar(20) DEFAULT NULL,
  `est_date` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `clp_invoice`
--

CREATE TABLE `clp_invoice` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `climant_id` int(11) NOT NULL,
  `invoice_date` date DEFAULT NULL,
  `invoice_number` varchar(20) DEFAULT NULL,
  `invoice_amount` int(20) DEFAULT NULL,
  `purpose` varchar(30) DEFAULT NULL,
  `payee` varchar(50) DEFAULT NULL,
  `account_name` varchar(50) DEFAULT NULL,
  `amount` int(20) DEFAULT NULL,
  `payment_type` varchar(50) DEFAULT NULL,
  `bsb` varchar(50) DEFAULT NULL,
  `account_number` int(50) DEFAULT NULL,
  `refrence` varchar(50) DEFAULT NULL,
  `contact_email` varchar(50) DEFAULT NULL,
  `invoice` varchar(50) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `clp_notes`
--

CREATE TABLE `clp_notes` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `cliamant_id` int(11) NOT NULL,
  `notes` varchar(255) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `companies`
--

CREATE TABLE `companies` (
  `id` int(11) NOT NULL,
  `name` varchar(64) NOT NULL,
  `email` varchar(64) NOT NULL,
  `phone` varchar(16) DEFAULT NULL,
  `business_logo` varchar(255) DEFAULT NULL,
  `reminders` enum('On','Off') NOT NULL DEFAULT 'On'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `companies`
--

INSERT INTO `companies` (`id`, `name`, `email`, `phone`, `business_logo`, `reminders`) VALUES
(24, 'sadasdads', 'kerry@datasafeapps.com.au', '3243242342', NULL, 'Off'),
(25, 'Providior Company Pvt Ltd.', 'david@priorityfund.com.au', '4543535', 'AolL2IPXkFiNBU2dlWeWVwDXHzIymw1i.png', 'Off'),
(29, 'Anubhav & Co.', 'anubhav.immanentsolutions123@gmail.com', '453543535', NULL, 'Off'),
(33, 'ABC Advantage Pty Ltd', 'admin@abcadvantage.com.au', NULL, NULL, 'Off'),
(34, 'Providior Company Pvt Ltd.', 'anubhav.immanentsolutions@gmail.com', '4232424242', NULL, 'On'),
(39, 'Priority Funding Corporation Pty Ltd', 'david@priorityfund.com.au', NULL, NULL, 'On'),
(92, 'Lawzy Loans', 'anubhav@yopmail.com', '2343242442', NULL, 'On'),
(93, 'gfdggfg', 'df@gmail.com', NULL, NULL, 'Off');

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

--
-- Table structure for table `company_id`
--

CREATE TABLE `company_id` (
  `company_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `contacts`
--

CREATE TABLE `contacts` (
  `id` int(11) NOT NULL,
  `Full_Name` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Business_Phone` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Email` varchar(255) NOT NULL,
  `Account_Company_Name` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Accreditation_Date` varchar(255) NOT NULL,
  `Address` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Address1` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Address1_City` varchar(255) NOT NULL,
  `Address1_Country` varchar(255) NOT NULL,
  `Address1_State` varchar(255) NOT NULL,
  `Address1_Street_1` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Address1_Street_2` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Address1_Postal_Code` varchar(255) NOT NULL,
  `Address2` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Address2_Address_Type` varchar(255) NOT NULL,
  `Address2_City` varchar(255) NOT NULL,
  `Address2_Country` varchar(255) NOT NULL,
  `Address2_Freight_Terms` varchar(255) NOT NULL,
  `Address2_Shipping_Method` varchar(255) NOT NULL,
  `Address2_State` varchar(255) NOT NULL,
  `Address2_Street_1` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Address2_Street_2` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Address2_Street_3` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Address2_Postal_Code` varchar(255) NOT NULL,
  `Address3` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Address3_City` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Address3_Country` varchar(255) NOT NULL,
  `Address3_State` varchar(255) NOT NULL,
  `Address3_Street_1` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Address3_Street_2` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Address3_Postal_Code` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Annual_Pre_Tax_Income` varchar(255) NOT NULL,
  `Australian_Citizenship_Status` varchar(255) NOT NULL,
  `Back_Office_Customer` varchar(255) NOT NULL,
  `Birthday` varchar(255) NOT NULL,
  `Blacklisted` varchar(255) NOT NULL,
  `Business_Phone_2` varchar(255) NOT NULL,
  `Card_Colour` varchar(255) NOT NULL,
  `Card_Number` varchar(255) NOT NULL,
  `City` varchar(255) NOT NULL,
  `Company_Name` varchar(255) NOT NULL,
  `Country` varchar(255) NOT NULL,
  `Created_By` varchar(255) NOT NULL,
  `Created_By_Id` varchar(255) NOT NULL,
  `Created_On` varchar(255) NOT NULL,
  `Credit_Hold` varchar(255) NOT NULL,
  `Currency` varchar(255) NOT NULL,
  `Customer_Size` varchar(255) NOT NULL,
  `Department` varchar(255) NOT NULL,
  `Dependants` varchar(255) NOT NULL,
  `Description` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Do_not_allow_Bulk_Emails` varchar(255) NOT NULL,
  `Do_not_allow_Bulk_Mails` varchar(255) NOT NULL,
  `Do_not_allow_Emails` varchar(255) NOT NULL,
  `Do_not_allow_Faxes` varchar(255) NOT NULL,
  `Do_not_allow_Mails` varchar(255) NOT NULL,
  `Do_not_allow_Phone_Calls` varchar(255) NOT NULL,
  `Driver_License` varchar(255) NOT NULL,
  `Drivers_License_Expiry` varchar(255) NOT NULL,
  `Drivers_License_State` varchar(255) NOT NULL,
  `Education` varchar(255) NOT NULL,
  `Email_Address_2` varchar(255) NOT NULL,
  `Employer_Address` varchar(255) NOT NULL,
  `Employer_Company` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Employer_Contact_Name` varchar(255) NOT NULL,
  `Employer_Phone` varchar(255) NOT NULL,
  `Employer_Previous_Address` varchar(255) NOT NULL,
  `Employment` varchar(255) NOT NULL,
  `Exchange_Rate` varchar(255) NOT NULL,
  `Expiry_Month` varchar(255) NOT NULL,
  `Expiry_Year` varchar(255) NOT NULL,
  `Family_Reference` varchar(255) NOT NULL,
  `Fax` varchar(255) NOT NULL,
  `First_Name` varchar(255) NOT NULL,
  `Follow_Email_Activity` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Friend_Reference` varchar(255) NOT NULL,
  `GDPR_Optout` varchar(255) NOT NULL,
  `Gender` varchar(255) CHARACTER SET utf8 NOT NULL,
  `GM_Account_No` varchar(255) NOT NULL,
  `Has_Children` varchar(255) NOT NULL,
  `Home` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Home_Ownership` varchar(255) NOT NULL,
  `Home_Phone` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Home_Value_month` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Home_Value_month_Base` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Home_Value_1` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Home_Value_1_Base` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Cont_Id` varchar(255) NOT NULL,
  `Income` varchar(255) NOT NULL,
  `Income_Base` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Invalid_Email` varchar(255) NOT NULL,
  `Is_Primary_Contact` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Job_Title` varchar(255) NOT NULL,
  `Last_Name` varchar(255) NOT NULL,
  `Lead_Source` varchar(255) CHARACTER SET utf8 NOT NULL,
  `leadQualifycreated` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Loans` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Loans_Value` varchar(255) NOT NULL,
  `Loans_Value_Base` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Marital_Status` varchar(255) NOT NULL,
  `Marketing_Only` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Medicare_Position` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Middle_Name` varchar(255) NOT NULL,
  `Mobile_Phone` varchar(255) NOT NULL,
  `Modified_By` varchar(255) NOT NULL,
  `Modified_By_Delegate` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Modified_On` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Monthly_Payment` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Monthly_Payment_Base` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Mortgage_Balance_1` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Mortgage_Balance_1_Base` varchar(255) NOT NULL,
  `Name_displayed_Driver_License` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Name_dis_Med_Card` varchar(255) NOT NULL,
  `Not_at_Company_Flag` varchar(255) NOT NULL,
  `Old_Account_ID` varchar(255) NOT NULL,
  `Old_Id` varchar(255) NOT NULL,
  `Originating_Lead` varchar(255) NOT NULL,
  `Other_Income` varchar(255) NOT NULL,
  `Other_Income_Value_month` varchar(255) NOT NULL,
  `Other_Income_Value_month_Base` varchar(255) NOT NULL,
  `Owned` varchar(255) NOT NULL,
  `Owner` varchar(255) NOT NULL,
  `Pager` varchar(255) NOT NULL,
  `Post_Code` varchar(255) NOT NULL,
  `Preferred_Method_of_Contact` varchar(255) NOT NULL,
  `Preferred_Time` varchar(255) NOT NULL,
  `Previous_Address` varchar(255) NOT NULL,
  `Record_Created_On` varchar(255) NOT NULL,
  `Related_Loan` varchar(255) NOT NULL,
  `Relationship_Type` varchar(255) NOT NULL,
  `Salutation` varchar(255) NOT NULL,
  `Send_Marketing_Materials` varchar(255) NOT NULL,
  `Shipping_Method` varchar(255) NOT NULL,
  `State` varchar(255) NOT NULL,
  `Status` varchar(255) NOT NULL,
  `Status_Reason` varchar(255) NOT NULL,
  `Street2` varchar(255) NOT NULL,
  `Street1` varchar(255) NOT NULL,
  `Sync_With_SendInBlue` varchar(255) NOT NULL,
  `Telephone3` varchar(255) NOT NULL,
  `Territory` varchar(255) NOT NULL,
  `Time_at_Address` varchar(255) NOT NULL,
  `Time_Employed` varchar(255) NOT NULL,
  `Website` varchar(255) NOT NULL,
  `Years_at_Address` varchar(255) NOT NULL,
  `Years_at_Previous_Address` varchar(255) NOT NULL,
  `Yomi_Full_Name` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `contact_admin`
--

CREATE TABLE `contact_admin` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `agentID` int(11) NOT NULL,
  `receiver_id` int(11) NOT NULL DEFAULT '0',
  `description` text NOT NULL,
  `type` varchar(50) NOT NULL DEFAULT 'public',
  `message_type` varchar(30) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `date_timestamp` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0' COMMENT '(0=new,1=arcive)'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `credit_guide_mortgage`
--

CREATE TABLE `credit_guide_mortgage` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `credit_guide` text NOT NULL,
  `overview` text NOT NULL,
  `suitable_of_loans` text NOT NULL,
  `lender_and_products` text NOT NULL,
  `fee_charges_commission_disclosures` text NOT NULL,
  `complaints_one` text NOT NULL,
  `complaints_two` text NOT NULL,
  `things_you_should_know` text NOT NULL,
  `status` int(11) NOT NULL DEFAULT '1',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `credit_liability`
--

CREATE TABLE `credit_liability` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `lender` varchar(150) NOT NULL,
  `prop_limit` varchar(50) NOT NULL,
  `payment` varchar(70) NOT NULL,
  `description` varchar(200) NOT NULL,
  `balance` varchar(50) NOT NULL,
  `value` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `director_number` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `credit_liability`
--

INSERT INTO `credit_liability` (`id`, `RentalID`, `lender`, `prop_limit`, `payment`, `description`, `balance`, `value`, `status`, `timestamp`, `date`, `director_number`) VALUES
(1, 101, '', '', '', '', '', '', 0, '1674026546', '2023-01-10 11:10:39', 'one'),
(2, 102, '', '', '', '', '', '', 0, '1674212372', '2023-01-20 10:59:32', 'one'),
(3, 103, '', '', '', '', '', '', 0, '1674564245', '2023-01-24 12:44:05', 'one'),
(4, 105, '', '', '', '', '', '', 0, '1677653647', '2023-03-01 06:54:07', 'one'),
(5, 106, '', '', '', '', '', '', 0, '1677664242', '2023-03-01 09:50:34', 'one'),
(6, 111, '', '', '', '', '', '', 0, '1678099367', '2023-03-06 05:49:14', 'one'),
(7, 112, '', '', '', '', '', '', 0, '1678362010', '2023-03-09 04:15:29', 'one'),
(8, 113, '', '', '', '', '', '', 0, '1678361005', '2023-03-09 10:33:07', 'one'),
(9, 115, '', '', '', '', '', '', 0, '1678423301', '2023-03-10 04:41:41', 'one'),
(10, 114, '', '', '', '', '', '', 0, '1678687664', '2023-03-13 06:07:44', 'one'),
(11, 116, '', '', '', '', '', '', 0, '1678700692', '2023-03-13 09:15:43', 'one'),
(12, 119, '', '', '', '', '', '', 0, '1678790107', '2023-03-13 12:26:17', 'one'),
(13, 120, '', '', '', '', '', '', 0, '1678859740', '2023-03-14 07:46:38', 'one'),
(14, 121, '', '', '', '', '', '', 0, '1678953095', '2023-03-16 07:51:35', 'one'),
(15, 122, '', '', '', '', '', '', 0, '1679050568', '2023-03-17 00:08:03', 'one'),
(16, 107, '', '', '', '', '', '', 0, '1681787755', '2023-04-18 03:15:55', 'one'),
(17, 123, 'master card', '30,000', '300', 'asde', 'no', '10,000', 0, '1697453008', '2023-04-18 23:29:07', 'one'),
(18, 124, '', '', '', '', '', '', 0, '1689901421', '2023-07-18 11:18:18', 'one'),
(19, 123, '', '', '', '', '', '', 0, '1695885761', '2023-09-28 07:22:41', 'three'),
(20, 123, 'Commonweath bank', '10,000', '', '', '', '10,000', 0, '1696827610', '2023-10-09 04:24:23', 'two'),
(21, 125, '', '', '', '', '', '', 0, '1696828570', '2023-10-09 05:16:10', 'one'),
(22, 137, '', '', '', '', '', '', 0, '1701316855', '2023-11-30 00:35:12', 'one'),
(23, 137, '', '', '', '', '', '', 0, '1701316855', '2023-11-30 04:00:55', 'one');

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

--
-- Table structure for table `credit_proposal_mortgage`
--

CREATE TABLE `credit_proposal_mortgage` (
  `id` int(11) NOT NULL,
  `company_id` int(11) NOT NULL,
  `preliminary_assessment` text NOT NULL,
  `about_us` text NOT NULL,
  `requirements_objectives` text NOT NULL,
  `lender_product` text NOT NULL,
  `assessment` text NOT NULL,
  `monthly_expense` text NOT NULL,
  `financial_position` text NOT NULL,
  `funding_position` text NOT NULL,
  `fee_summary` text NOT NULL,
  `other_fees_one` text NOT NULL,
  `other_fees_two` text NOT NULL,
  `other_fees_three` text NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `datasafe_sessions`
--

CREATE TABLE `datasafe_sessions` (
  `id` varchar(40) NOT NULL DEFAULT '0',
  `ip_address` varchar(45) NOT NULL DEFAULT '0',
  `timestamp` varchar(255) NOT NULL,
  `data` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `datasafe_sessions`
--

INSERT INTO `datasafe_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES
('039c8db58477f110aeb333b645e9abb76c6d903d', '172.70.142.236', '1701417309', 'first_name|s:6:\"puneet\";User_type|s:9:\"qualified\";user_level_type|s:1:\"1\";last_name|s:6:\"thakur\";company_id|s:1:\"2\";user_id|s:1:\"3\";logo_name|s:18:\"1678863449logo.png\";store_code|s:3:\"A&C\";store_name|s:14:\"Anubhav & Com.\";short_name|s:6:\"puneet\";database_username|s:4:\"demo\";__ci_last_regenerate|i:1701417276;logos3|s:173:\"https://s3.ap-southeast-2.amazonaws.com/upload-admin/1678863449logo.png?AWSAccessKeyId=AKIA2ZBAYR4YLXJQEXQN&Expires=1701418509&Signature=6j1ZL5%2FaUtA3A%2BrKuVAvxM8lg%2FE%3D\";rental_id2|s:3:\"137\";rentalID2|s:3:\"137\";contract_id|s:0:\"\";'),
('057f9616aa9f5758752278c797fbbdc1688a2a9a', '172.68.84.185', '1701417315', '__ci_last_regenerate|i:1701417315;'),
('0b6f686d019195e1f2cf041b0026f4dfe706cb26', '172.71.151.64', '1701417263', '__ci_last_regenerate|i:1701417263;'),
('1c3964e49cd872351af19bcf70b3ecc9e31cb803', '172.68.84.185', '1701417267', '__ci_last_regenerate|i:1701417267;'),
('22bcedb758216f09267dd133bf5c9d876f1a2550', '172.69.222.48', '1701417263', '__ci_last_regenerate|i:1701417263;'),
('2ec179878da0f46a69c2fbcc10da70a214f14288', '162.158.163.98', '1701416952', '__ci_last_regenerate|i:1701416952;'),
('30ab488d23abdd2e19a408fd165b88a4a0a62f97', '172.69.162.162', '1701417269', '__ci_last_regenerate|i:1701417269;'),
('315a3134d6645550641f65c18a8c4658c71f422b', '162.158.162.25', '1701420851', '__ci_last_regenerate|i:1701420851;first_name|s:7:\"Anubhav\";User_type|s:9:\"qualified\";user_level_type|s:1:\"1\";last_name|s:7:\"Sawhney\";company_id|s:1:\"2\";user_id|s:1:\"2\";logo_name|s:18:\"1678863449logo.png\";store_code|s:3:\"A&C\";store_name|s:14:\"Anubhav & Com.\";short_name|s:2:\"AS\";database_username|s:4:\"demo\";logos3|s:169:\"https://s3.ap-southeast-2.amazonaws.com/upload-admin/1678863449logo.png?AWSAccessKeyId=AKIA2ZBAYR4YLXJQEXQN&Expires=1701422051&Signature=a6ALU0jlgwwZE5pjFvm%2By9INgsQ%3D\";'),
('3731c2dc2585ea9efe7adabb17832f49d60287a5', '172.70.142.59', '1701416925', '__ci_last_regenerate|i:1701416921;'),
('4967a50aac6f2f7f217a1e053a2c36f3f15e4e04', '162.158.162.24', '1701420842', '__ci_last_regenerate|i:1701420842;'),
('4ddb6df0e1802f9af87aa26064175ac91e847d4f', '172.69.165.9', '1701420628', '__ci_last_regenerate|i:1701420628;'),
('55b83bbfbcdc4f3791652cd3016790e61aea6ceb', '162.158.162.252', '1701407846', '__ci_last_regenerate|i:1701407846;'),
('56cd638efddd0bfec8d34498c1e1c33e60bd2d93', '172.70.142.253', '1701421142', 'first_name|s:6:\"puneet\";User_type|s:9:\"qualified\";user_level_type|s:1:\"1\";last_name|s:6:\"thakur\";company_id|s:1:\"2\";user_id|s:1:\"3\";logo_name|s:18:\"1678863449logo.png\";store_code|s:3:\"A&C\";store_name|s:14:\"Anubhav & Com.\";short_name|s:6:\"puneet\";database_username|s:4:\"demo\";__ci_last_regenerate|i:1701421141;logos3|s:171:\"https://s3.ap-southeast-2.amazonaws.com/upload-admin/1678863449logo.png?AWSAccessKeyId=AKIA2ZBAYR4YLXJQEXQN&Expires=1701422342&Signature=Fh74t7ci0Pvmb%2F1%2FvKSoBCXifw0%3D\";rentalID2|s:3:\"137\";contract_id|s:0:\"\";'),
('6f2c2818dd5238c7fb70ed3a10803ec2912eb2e0', '172.69.162.146', '1701417314', '__ci_last_regenerate|i:1701417314;'),
('7adebcdf4952f49fb91f9f7f6d82d5efae50d7b0', '172.70.142.91', '1701416969', '__ci_last_regenerate|i:1701416969;'),
('9e1b2e515555b99b2b47073561dcdb483bc9ec71', '162.158.162.63', '1701420873', 'first_name|s:7:\"Anubhav\";User_type|s:9:\"qualified\";user_level_type|s:1:\"1\";last_name|s:7:\"Sawhney\";company_id|s:1:\"2\";user_id|s:1:\"2\";logo_name|s:18:\"1678863449logo.png\";store_code|s:3:\"A&C\";store_name|s:14:\"Anubhav & Com.\";short_name|s:2:\"AS\";database_username|s:4:\"demo\";'),
('a917cc524e95020c57a7f18d3935d5ce874682db', '162.158.162.25', '1701420873', '__ci_last_regenerate|i:1701420865;'),
('b1a12e4eb713b3bdc50010bbe6e9fa3b1dc94385', '162.158.162.252', '1701407782', '__ci_last_regenerate|i:1701407782;'),
('bb0f0e101c1999a4df769e0563431456e3712664', '172.70.142.86', '1701421138', 'first_name|s:6:\"puneet\";User_type|s:9:\"qualified\";user_level_type|s:1:\"1\";last_name|s:6:\"thakur\";company_id|s:1:\"2\";user_id|s:1:\"3\";logo_name|s:18:\"1678863449logo.png\";store_code|s:3:\"A&C\";store_name|s:14:\"Anubhav & Com.\";short_name|s:6:\"puneet\";database_username|s:4:\"demo\";__ci_last_regenerate|i:1701420480;logos3|s:169:\"https://s3.ap-southeast-2.amazonaws.com/upload-admin/1678863449logo.png?AWSAccessKeyId=AKIA2ZBAYR4YLXJQEXQN&Expires=1701421680&Signature=HulJY%2FI52BYy8CXQ5zEB4dD06WE%3D\";rental_id2|s:3:\"137\";rentalID2|s:3:\"137\";contract_id|s:0:\"\";'),
('c84f231f1d04d268ef69e78eadeb19bd3c2ce7f3', '162.158.163.97', '1701417055', '__ci_last_regenerate|i:1701417055;'),
('e3a6101277ea6761267011001003eeadf208edd6', '162.158.163.111', '1701404891', 'first_name|s:6:\"puneet\";User_type|s:9:\"qualified\";user_level_type|s:1:\"1\";last_name|s:6:\"thakur\";company_id|s:1:\"2\";user_id|s:1:\"3\";logo_name|s:18:\"1678863449logo.png\";store_code|s:3:\"A&C\";store_name|s:14:\"Anubhav & Com.\";short_name|s:6:\"puneet\";database_username|s:4:\"demo\";__ci_last_regenerate|i:1701404885;logos3|s:169:\"https://s3.ap-southeast-2.amazonaws.com/upload-admin/1678863449logo.png?AWSAccessKeyId=AKIA2ZBAYR4YLXJQEXQN&Expires=1701406091&Signature=vSjoOWYLEwYB67pgTnixW0HP%2BgE%3D\";rental_id2|s:3:\"137\";rentalID2|s:3:\"137\";contract_id|s:0:\"\";');

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

--
-- Table structure for table `departments`
--

CREATE TABLE `departments` (
  `id` int(11) NOT NULL,
  `company` int(11) NOT NULL,
  `name` varchar(32) NOT NULL,
  `email` varchar(64) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `discloser_polices`
--

CREATE TABLE `discloser_polices` (
  `id` int(11) NOT NULL,
  `type` varchar(30) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `store_id` int(11) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '1' COMMENT '1=>active , 0->inactive',
  `statustype` varchar(225) NOT NULL,
  `file` text NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0' COMMENT '1=>deleted, 0->not deleted'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `document_files`
--

CREATE TABLE `document_files` (
  `id` int(11) NOT NULL,
  `document_key` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `origional_file_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `file_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `pdf_count` int(4) NOT NULL DEFAULT '0',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `document_files`
--

INSERT INTO `document_files` (`id`, `document_key`, `origional_file_name`, `file_name`, `pdf_count`, `created_at`) VALUES
(1, 'm9AT0v0RUP1rYcqszXa6S3UGIG5ryZga', '107_dummy_(1)503.pdf', '167879258570.pdf', 1, '2023-03-16 10:33:04'),
(2, 'GMAWdi5TJOpQBSuAaUnqbeLxl4wba1OW', '107_dummy_(1)503.pdf', '167879258570.pdf', 1, '2023-03-16 10:35:39'),
(3, 'GMAWdi5TJOpQBSuAaUnqbeLxl4wba1OW', 'Finance Application', 'bJX0FZeHYvjgCIzUGYlMAlspcNqxRPdl.pdf', 1, '2023-03-16 10:35:40'),
(4, '81PyWj6taO0GNkf7NIFHG8YYhbc6Hxqs', '', '167877820839720.pdf', 1, '2023-03-16 10:37:19'),
(5, '81PyWj6taO0GNkf7NIFHG8YYhbc6Hxqs', '', '167895808048108.pdf', 1, '2023-03-16 10:37:19'),
(6, '4oRbaffkqnCV85VbjhDgRz2n2yqXeQJa', 'Finance Application', 'cTcjwNYgpEYBVBJzj4fRngtwxb6qJxdN.pdf', 1, '2023-03-17 04:21:30'),
(7, '4oRbaffkqnCV85VbjhDgRz2n2yqXeQJa', 'Signing Documentst', 'VAHwQnpIoBoWoixqi09VZtLaV9UX9YzG.pdf', 2, '2023-03-17 04:21:31'),
(8, 'x1x0kgV2lBgR2xis5YzrGWwgqiJFR3gV', 'Finance Quote', 'LFchRFYo29sNOffdAgSu66pzgs2P8XfS.pdf', 2, '2023-03-17 09:31:08'),
(9, 'X7XxrhpSLl4xRxcEwd2z9Lz1qmdqntDH', 'Application', '54wBa46ujpV15YTzSt3FX6YxNrVUgVWy.pdf', 4, '2023-04-18 02:27:36'),
(10, 'oQ8nPH9isBhJrueKJuUAVAXKLZ1XkD01', 'Finance Quote', 'nyCMqxRTkHiIn24CFUXL7nZbbj1gUlzj.pdf', 2, '2023-04-18 23:31:40'),
(11, 'oQ8nPH9isBhJrueKJuUAVAXKLZ1XkD01', 'Finance Application', 'WQGu8oekRls7No89nBiyTFmmLRL7RnJR.pdf', 1, '2023-04-18 23:31:41'),
(12, 'WLy6qkkw5MIQWM8K4FjhzgGSTeuGyMOc', 'Finance Application', 'eLnkEUQ5KJYb7T1bzQrbHoLW8ZOSOXMp.pdf', 1, '2023-09-25 04:14:54'),
(13, 'kXAuDejZbYxFkx4GVMQl1wzHWRq20miH', 'Finance Quote', 'AiwsnikNbF1Bw2UqktroBhidAcDIDCcC.pdf', 2, '2023-11-23 00:51:49'),
(14, 'kXAuDejZbYxFkx4GVMQl1wzHWRq20miH', 'Finance Application', '6yiqI3Jk7osDOVWO2wzaTrjSoiZs9eNQ.pdf', 1, '2023-11-23 00:51:50'),
(15, 'KjV6RkgrkvGwAo5fXjn0hNXTIcRTq7wb', 'Finance Quote', 'qoVQp674HxsS8S4nsgEx3eaaWLvJjfVy.pdf', 2, '2023-11-23 00:52:10'),
(16, 'KjV6RkgrkvGwAo5fXjn0hNXTIcRTq7wb', 'Finance Application', '2qfVaY8Ie3JdIyRv3nrT2U2xgYSKK1BA.pdf', 1, '2023-11-23 00:52:11'),
(17, 'DmrJ9ZCkEWLh9gWkLMeMgM6e9qnrVtUn', 'Finance Quote', 'btvMSDiE6SqZWmbTmFj8JKKCULfpFFsq.pdf', 2, '2023-11-23 00:52:37'),
(18, 'E48BQcENp4dLwi59Z6zINTlBmeIN4QfF', '137_CONTRACTS_&amp;_COMPLIANCE_DOCUMENTS965.pdf', '170132305021251.pdf', 1, '2023-11-30 05:44:25'),
(19, '80LkkFIamrr1KziSEr3QNi3J7m0PFInI', '137_CONTRACTS_&amp;_COMPLIANCE_DOCUMENTS965.pdf', '170132305021251.pdf', 1, '2023-11-30 05:44:40');

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

--
-- Table structure for table `entertainment_client1`
--

CREATE TABLE `entertainment_client1` (
  `entertainment_id` int(11) NOT NULL,
  `type` varchar(100) NOT NULL COMMENT 'loan/rent',
  `loan_rent_id` int(11) NOT NULL,
  `xmas_hampera` varchar(200) NOT NULL,
  `pay_tv` varchar(200) NOT NULL,
  `entertainment_gambling` varchar(200) NOT NULL,
  `other_expenses_or_downloads` varchar(200) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `entertainment_client2`
--

CREATE TABLE `entertainment_client2` (
  `entertainment_id` int(11) NOT NULL,
  `type` varchar(150) NOT NULL COMMENT 'loan/rent',
  `loan_rent_id` int(11) NOT NULL,
  `xmas_hampera` varchar(200) NOT NULL,
  `pay_tv` varchar(200) NOT NULL,
  `entertainment_gambling` varchar(200) NOT NULL,
  `other_expenses_or_downloads` varchar(200) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `fields`
--

CREATE TABLE `fields` (
  `id` int(11) NOT NULL,
  `company` int(11) NOT NULL,
  `user` int(11) NOT NULL,
  `label` text NOT NULL,
  `value` text NOT NULL,
  `type` enum('custom','input','stamp') NOT NULL DEFAULT 'custom'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `files`
--

CREATE TABLE `files` (
  `id` int(11) NOT NULL,
  `uniqId` varchar(256) DEFAULT NULL,
  `company` int(11) NOT NULL,
  `folder` int(11) NOT NULL,
  `uploaded_by` int(11) NOT NULL,
  `rental_id` int(11) DEFAULT NULL,
  `uploaded_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `subject` varchar(255) DEFAULT NULL,
  `message` text,
  `name` varchar(256) NOT NULL,
  `file_type` varchar(256) DEFAULT NULL,
  `recipients_name` text,
  `chain_emails_records` text,
  `is_chain` varchar(256) DEFAULT NULL,
  `is_all_signed` int(11) NOT NULL DEFAULT '0',
  `sent_for_sign` varchar(256) DEFAULT NULL,
  `filename` varchar(256) NOT NULL,
  `full_filename` varchar(256) DEFAULT NULL,
  `prefix_name` varchar(50) DEFAULT NULL,
  `file_number` int(11) NOT NULL DEFAULT '0',
  `extension` varchar(16) NOT NULL DEFAULT 'pdf',
  `size` int(11) NOT NULL DEFAULT '0',
  `document_key` varchar(32) NOT NULL,
  `pdfs_count` varchar(100) DEFAULT NULL,
  `status` enum('Unsigned','Signed') NOT NULL DEFAULT 'Unsigned',
  `editted` enum('Yes','No') NOT NULL DEFAULT 'No',
  `is_template` enum('No','Yes') NOT NULL DEFAULT 'No',
  `template_fields` text,
  `sign_reason` text,
  `accessibility` enum('Everyone','Departments','Only Me') NOT NULL DEFAULT 'Everyone',
  `public_permissions` enum('read_only','sign_edit','disabled') NOT NULL DEFAULT 'sign_edit',
  `departments` varchar(256) DEFAULT NULL,
  `status_type` int(11) NOT NULL DEFAULT '0' COMMENT '(0=default,1=new,2=expire)',
  `type` varchar(255) DEFAULT NULL,
  `doc` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `files`
--

INSERT INTO `files` (`id`, `uniqId`, `company`, `folder`, `uploaded_by`, `rental_id`, `uploaded_on`, `subject`, `message`, `name`, `file_type`, `recipients_name`, `chain_emails_records`, `is_chain`, `is_all_signed`, `sent_for_sign`, `filename`, `full_filename`, `prefix_name`, `file_number`, `extension`, `size`, `document_key`, `pdfs_count`, `status`, `editted`, `is_template`, `template_fields`, `sign_reason`, `accessibility`, `public_permissions`, `departments`, `status_type`, `type`, `doc`) VALUES
(1, NULL, 2, 1, 2, 107, '2023-03-15 22:33:05', NULL, NULL, 'Documents', 'Original Copy', 'kerry j regan', 'kerry@datasafeapps.com.au', NULL, 0, NULL, 'VpvzOGWqcACYatPpfDb3aQHHqku1GH4x.pdf', NULL, 'VpvzOGWqcACYatPpfDb3aQHHqku1GH4x', 0, 'pdf', 40, 'm9AT0v0RUP1rYcqszXa6S3UGIG5ryZga', '1', 'Unsigned', 'No', 'No', NULL, NULL, 'Everyone', 'sign_edit', NULL, 0, 'id', '167879258570.pdf'),
(2, '6412f088a1681', 2, 1, 2, 107, '2023-03-15 22:33:44', 'dsfsf', '', 'Documents', 'Request Copy', '[\"kuldeep\"]', '[\"kuldeep@yopmail.com\"]', 'Yes', 1, 'kuldeep@yopmail.com', 'XUb8wxdyjzzPE6x8biH8yHDJnVvqvMYn.pdf', 'XUb8wxdyjzzPE6x8biH8yHDJnVvqvMYn.pdf', NULL, 0, 'pdf', 40, 'rKg6ggBLLtmhwg6tNeoOEYRsLBidPEVp', '1', 'Signed', 'Yes', 'No', NULL, NULL, 'Everyone', 'sign_edit', NULL, 0, 'id', '167879258570.pdf'),
(3, NULL, 2, 1, 2, 107, '2023-03-15 22:35:41', NULL, NULL, 'Documents', 'Original Copy', 'kerry j regan', 'kerry@datasafeapps.com.au', NULL, 0, NULL, 'wZrITTIg1CslG4DNMMM9vHyHogxXdFhm.pdf', NULL, 'wZrITTIg1CslG4DNMMM9vHyHogxXdFhm', 0, 'pdf', 40, 'GMAWdi5TJOpQBSuAaUnqbeLxl4wba1OW', '1,1', 'Unsigned', 'No', 'No', NULL, NULL, 'Everyone', 'sign_edit', NULL, 0, 'id,cd', '167879258570.pdf,bJX0FZeHYvjgCIzUGYlMAlspcNqxRPdl.pdf'),
(4, '6412f111d38fc', 2, 1, 2, 107, '2023-03-15 22:36:02', 'dsadasd', '', 'Documents', 'Request Copy', '[\"kuldeep\"]', '[\"kuldeep@yopmail.com\"]', 'Yes', 1, 'kuldeep@yopmail.com', 'm4rA3Y4rbsNcoJwqMU9Ce7Ls6WQUtT6v.pdf', 'm4rA3Y4rbsNcoJwqMU9Ce7Ls6WQUtT6v.pdf', NULL, 0, 'pdf', 40, 'fU2azJmfTjnpU70WiLPkuooTIXXKZ21q', '1,1', 'Signed', 'Yes', 'No', NULL, NULL, 'Everyone', 'sign_edit', NULL, 0, 'id,cd', '167879258570.pdf,bJX0FZeHYvjgCIzUGYlMAlspcNqxRPdl.pdf'),
(5, NULL, 2, 1, 2, 107, '2023-03-15 22:37:20', NULL, NULL, 'Documents', 'Original Copy', 'kerry j regan', 'kerry@datasafeapps.com.au', NULL, 0, NULL, 'ic4AOu6d83ZiXbFSVUF2kMIpeLHcecJh.pdf', NULL, 'ic4AOu6d83ZiXbFSVUF2kMIpeLHcecJh', 0, 'pdf', 40, '81PyWj6taO0GNkf7NIFHG8YYhbc6Hxqs', '1,1', 'Unsigned', 'No', 'No', NULL, NULL, 'Everyone', 'sign_edit', NULL, 0, 'bank,bank', '167877820839720.pdf,167895808048108.pdf'),
(6, '6412f18114935', 2, 1, 2, 107, '2023-03-15 22:37:53', 'sdfsdf', '', 'Documents', 'Request Copy', '[\"kuldeep\"]', '[\"kuldeep@yopmail.com\"]', 'Yes', 1, 'kuldeep@yopmail.com', 'hy8qP3YdIIOyTw03nIFWw08yps9fjEjR.pdf', 'hy8qP3YdIIOyTw03nIFWw08yps9fjEjR.pdf', NULL, 0, 'pdf', 40, 'y4klkzMJmtmn5Wtv5q3hycLoQWoynf8t', '1,1', 'Signed', 'Yes', 'No', NULL, NULL, 'Everyone', 'sign_edit', NULL, 0, 'bank,bank', '167877820839720.pdf,167895808048108.pdf'),
(7, NULL, 2, 1, 2, 106, '2023-03-16 16:21:33', NULL, NULL, 'Documents', 'Original Copy', 'sdg sfh fhd', '', NULL, 0, NULL, 'nDTNwISa1jwez3PR71ubOpKQwuy4tAQA.pdf', NULL, 'nDTNwISa1jwez3PR71ubOpKQwuy4tAQA', 0, 'pdf', 40, '4oRbaffkqnCV85VbjhDgRz2n2yqXeQJa', '1,2', 'Unsigned', 'No', 'No', NULL, NULL, 'Everyone', 'sign_edit', NULL, 0, 'cd,cd', 'cTcjwNYgpEYBVBJzj4fRngtwxb6qJxdN.pdf,VAHwQnpIoBoWoixqi09VZtLaV9UX9YzG.pdf'),
(8, '6413eb0b9ed80', 2, 1, 2, 106, '2023-03-16 16:22:35', 'dgsytwe ', '', 'Documents', 'Request Copy', '[\"puneet\"]', '[\"puneet@yopmail.com\"]', 'Yes', 1, 'puneet@yopmail.com', 'VUsgJuKaka3xnrlH3E9MlNkNP7DDhaRS.pdf', 'VUsgJuKaka3xnrlH3E9MlNkNP7DDhaRS.pdf', NULL, 0, 'pdf', 40, 'CRyjV7NLLv2GgYHwWoXLAYQ7S2TrTtTz', '1,2', 'Signed', 'Yes', 'No', NULL, NULL, 'Everyone', 'sign_edit', NULL, 0, 'cd,cd', 'cTcjwNYgpEYBVBJzj4fRngtwxb6qJxdN.pdf,VAHwQnpIoBoWoixqi09VZtLaV9UX9YzG.pdf'),
(9, NULL, 2, 1, 3, 122, '2023-03-16 21:31:10', NULL, NULL, 'Documents', 'Original Copy', 'zsdgeg  sdgasdg', '', NULL, 0, NULL, '8juKwFAP8HcqZ5QRMZivvD6ieTotjkfD.pdf', NULL, '8juKwFAP8HcqZ5QRMZivvD6ieTotjkfD', 0, 'pdf', 40, 'x1x0kgV2lBgR2xis5YzrGWwgqiJFR3gV', '2', 'Unsigned', 'No', 'No', NULL, NULL, 'Everyone', 'sign_edit', NULL, 0, 'cd', 'LFchRFYo29sNOffdAgSu66pzgs2P8XfS.pdf'),
(10, '6414337d959f9', 2, 1, 3, 122, '2023-03-16 21:31:41', 'zx', '', 'Documents', 'Request Copy', '[\"zsdgeg  sdgasdg\"]', '[\"anubhav@yopmail.com\"]', 'Yes', 1, 'anubhav@yopmail.com', '7BNle0PtxOunRKypLYvlHdBNRPy22syB.pdf', '7BNle0PtxOunRKypLYvlHdBNRPy22syB.pdf', NULL, 0, 'pdf', 40, 'VFbRmMQabEfdqFDWNMJE0YxUtlmCJVyG', '2', 'Signed', 'Yes', 'No', NULL, NULL, 'Everyone', 'sign_edit', NULL, 0, 'cd', 'LFchRFYo29sNOffdAgSu66pzgs2P8XfS.pdf'),
(11, NULL, 2, 1, 2, NULL, '2023-10-09 23:06:29', NULL, NULL, '', 'Original Copy', '', '', NULL, 0, NULL, 'gBh3j37aBcmWcNwIYmV2TX8JionAukmj.pdf', NULL, NULL, 0, 'pdf', 0, 'EFkayw2xb129jhTZdIP8FgXbI1X0GyL0', NULL, 'Unsigned', 'No', 'No', NULL, NULL, 'Everyone', 'sign_edit', NULL, 0, 'single', NULL),
(12, NULL, 2, 1, 2, NULL, '2023-10-09 23:06:47', NULL, NULL, '', 'Original Copy', '', '', NULL, 0, NULL, 'PlLz1zsZOTFAU384oR7KJ5EpYTMnstq9.pdf', NULL, NULL, 0, 'pdf', 0, 'PslaUziSJliKsD3nzQML2KgQyWsv6Q3R', NULL, 'Unsigned', 'No', 'No', NULL, NULL, 'Everyone', 'sign_edit', NULL, 0, 'single', NULL);

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

--
-- Table structure for table `folders`
--

CREATE TABLE `folders` (
  `id` int(11) NOT NULL,
  `company` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `name` varchar(256) NOT NULL,
  `folder` int(11) NOT NULL DEFAULT '1',
  `accessibility` enum('Everyone','Departments','Only Me') NOT NULL DEFAULT 'Everyone',
  `departments` varchar(256) DEFAULT NULL,
  `password` varchar(256) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `home_assets`
--

CREATE TABLE `home_assets` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `description` varchar(250) NOT NULL,
  `make_modal` varchar(150) NOT NULL,
  `ownership` varchar(150) NOT NULL,
  `value` varchar(150) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `director_number` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `home_assets`
--

INSERT INTO `home_assets` (`id`, `RentalID`, `description`, `make_modal`, `ownership`, `value`, `status`, `timestamp`, `date`, `director_number`) VALUES
(1, 101, '', '', '', '', 0, '1674026546', '2023-01-10 11:10:39', 'one'),
(2, 102, '', '', '', '', 0, '1674212372', '2023-01-20 10:59:32', 'one'),
(3, 103, '', '', '', '', 0, '1674564245', '2023-01-24 12:44:05', 'one'),
(4, 105, '', '', '', '', 0, '1677653647', '2023-03-01 06:54:07', 'one'),
(5, 106, '', '', '', '', 0, '1677664242', '2023-03-01 09:50:34', 'one'),
(6, 111, '', '', '', '', 0, '1678099367', '2023-03-06 05:49:14', 'one'),
(7, 112, '', '', '', '', 0, '1678362010', '2023-03-09 04:15:29', 'one'),
(8, 113, '', '', '', '', 0, '1678361005', '2023-03-09 10:33:07', 'one'),
(9, 115, '', '', '', '', 0, '1678423301', '2023-03-10 04:41:41', 'one'),
(10, 114, '', '', '', '', 0, '1678687664', '2023-03-13 06:07:44', 'one'),
(11, 114, '', '', '', '', 0, '1678687664', '2023-03-13 06:07:44', 'one'),
(12, 116, '', '', '', '', 0, '1678700692', '2023-03-13 09:15:43', 'one'),
(13, 119, '', '', '', '', 0, '1678790107', '2023-03-13 12:26:17', 'one'),
(14, 120, '', '', '', '', 0, '1678859740', '2023-03-14 07:46:38', 'one'),
(15, 121, '', '', '', '', 0, '1678953095', '2023-03-16 07:51:35', 'one'),
(16, 122, '', '', '', '', 0, '1679050568', '2023-03-17 00:08:03', 'one'),
(17, 107, '', '', '', '', 0, '1681787755', '2023-04-18 03:15:55', 'one'),
(18, 123, 'Home - All', 'All', '100', '100,000', 0, '1697453008', '2023-04-18 23:29:07', 'one'),
(19, 124, '', '', '', '', 0, '1689901421', '2023-07-18 11:18:18', 'one'),
(20, 123, '', '', '', '', 0, '1695885761', '2023-09-28 07:22:41', 'three'),
(21, 123, 'Home all', '', '100', '65,000', 0, '1696827610', '2023-10-09 04:24:23', 'two'),
(22, 125, '', '', '', '', 0, '1696828570', '2023-10-09 05:16:10', 'one'),
(23, 137, '', '', '', '', 0, '1701316855', '2023-11-30 00:35:12', 'one'),
(24, 137, '', '', '', '', 0, '1701316855', '2023-11-30 04:00:55', 'one');

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

--
-- Table structure for table `Images`
--

CREATE TABLE `Images` (
  `ID` int(15) NOT NULL,
  `AgentID` int(15) NOT NULL,
  `RentalID` int(15) NOT NULL,
  `Status` int(11) NOT NULL DEFAULT '0',
  `Type` varchar(15) NOT NULL,
  `Images` text NOT NULL,
  `actual_name` text NOT NULL,
  `doc_type` varchar(150) NOT NULL COMMENT 'id=Quote,bank=Identification,income=Financials,privacy=Company Search,miscell=Credit Report,bankstate=Bank Statements,contract=Approval Advice,further=Invoice,receipt=Contract,contract_signed=Contract (Signed),conditions,receipts,miscellaneous,archive',
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `Images`
--

INSERT INTO `Images` (`ID`, `AgentID`, `RentalID`, `Status`, `Type`, `Images`, `actual_name`, `doc_type`, `delete_status`) VALUES
(1, 2, 101, 0, 'Loan', '167358509533001.pdf,167359153891951.pdf', '101_dummy676.pdf~#~101_dummy811.pdf', 'id', 0),
(2, 2, 101, 0, 'Loan', '167358513365062.pdf,167411327777859.pdf', '101_dummy252.pdf~#~101_dummy281.pdf', 'bank', 0),
(3, 2, 101, 0, 'Loan', '167359151266872.pdf', '101_dummy356.pdf', 'income', 0),
(4, 2, 101, 0, 'Loan', '167404425889266.pdf', '101_dummy986.pdf', 'privacy', 0),
(5, 2, 101, 0, 'Loan', '167410115954555.pdf', '101_dummy45.pdf', 'miscell', 0),
(6, 2, 101, 0, 'Loan', '16741011689687.pdf', '101_dummy327.pdf', 'bankstate', 0),
(7, 2, 101, 0, 'Loan', '16741185268725.pdf', '101_dummy615.pdf', 'contract', 0),
(8, 2, 101, 0, 'Loan', '', '', 'miscellaneous', 0),
(9, 2, 101, 0, 'Loan', '16741012137937.pdf', '101_dummy782.pdf', 'further', 0),
(10, 2, 101, 0, 'Loan', '167410122230789.pdf,167412089958667.pdf', '101_dummy37.pdf~#~101_dummy861.pdf', 'receipt', 0),
(11, 2, 101, 0, 'Loan', '167411322572775.pdf', '101_dummy447.pdf', 'archive', 0),
(12, 2, 101, 0, 'Loan', '167412087182286.pdf', '101_dummy554.pdf', 'conditions', 0),
(13, 2, 103, 0, 'Loan', '167447707799439.pdf', '103_dummy405.pdf', 'id', 0),
(14, 2, 106, 0, 'Loan', '167767032038299.pdf', '106_dummy510.pdf', 'id', 0),
(15, 2, 107, 0, 'Loan', '167877820839720.pdf,167895808048108.pdf', '107_dummy835.pdf~#~107_dummy736.pdf', 'bank', 0),
(16, 2, 107, 0, 'Loan', '16776714887168.pdf', '107_Bank_Stmt_#1528.pdf', 'income', 0),
(17, 2, 107, 0, 'Loan', '16789483398465.pdf', '107_dummy945.pdf', 'privacy', 0),
(18, 2, 107, 0, 'Loan', '167767151535893.pdf', '107_Receipt_#1873.pdf', 'miscell', 0),
(19, 2, 113, 0, 'Loan', '167835801311688.pdf', '113_dummy225.pdf', 'income', 0),
(20, 2, 114, 0, 'Loan', '167868784842031.pdf', '114_dummy457.pdf', 'id', 0),
(21, 2, 107, 0, 'Loan', '167879258570.pdf', '107_dummy_(1)503.pdf', 'id', 0),
(22, 2, 120, 0, 'Loan', '167887149036071.pdf', '120_dummy895.pdf', 'id', 1),
(23, 2, 121, 0, 'Loan', '167892986917529.pdf', '121_PaymentSubmission_-_2023-03-10T163439260.pdf', 'bank', 0),
(24, 2, 123, 0, 'Loan', '16963177909079.pdf', '123_#1_IDENTIFICATION_#284.pdf', 'id', 0),
(25, 2, 123, 0, 'Loan', '169682651845393.pdf', '123_Licence_1514.pdf', 'bank', 0),
(26, 2, 125, 0, 'Loan', '16963177909079.pdf', '123_#1_IDENTIFICATION_#284.pdf', 'id', 0),
(27, 2, 125, 0, 'Loan', '169631779039061.pdf,169682651845393.pdf', '123_#1_IDENTIFICATION_#943.pdf~#~123_Licence_1514.pdf', 'bank', 0),
(28, 2, 126, 0, 'Loan', '16963177909079.pdf', '123_#1_IDENTIFICATION_#284.pdf', 'id', 0),
(29, 2, 126, 0, 'Loan', '169631779039061.pdf,169682651845393.pdf', '123_#1_IDENTIFICATION_#943.pdf~#~123_Licence_1514.pdf', 'bank', 0),
(30, 2, 127, 0, 'Loan', '16963177909079.pdf', '123_#1_IDENTIFICATION_#284.pdf', 'id', 0),
(31, 2, 127, 0, 'Loan', '169631779039061.pdf,169682651845393.pdf', '123_#1_IDENTIFICATION_#943.pdf~#~123_Licence_1514.pdf', 'bank', 0),
(32, 2, 128, 0, 'Loan', '16963177909079.pdf', '123_#1_IDENTIFICATION_#284.pdf', 'id', 0),
(33, 2, 128, 0, 'Loan', '169631779039061.pdf,169682651845393.pdf', '123_#1_IDENTIFICATION_#943.pdf~#~123_Licence_1514.pdf', 'bank', 0),
(34, 2, 129, 0, 'Loan', '16963177909079.pdf', '123_#1_IDENTIFICATION_#284.pdf', 'id', 0),
(35, 2, 129, 0, 'Loan', '169631779039061.pdf,169682651845393.pdf', '123_#1_IDENTIFICATION_#943.pdf~#~123_Licence_1514.pdf', 'bank', 0),
(36, 2, 130, 0, 'Loan', '16963177909079.pdf', '123_#1_IDENTIFICATION_#284.pdf', 'id', 0),
(37, 2, 130, 0, 'Loan', '169631779039061.pdf,169682651845393.pdf', '123_#1_IDENTIFICATION_#943.pdf~#~123_Licence_1514.pdf', 'bank', 0),
(38, 2, 131, 0, 'Loan', '16963177909079.pdf', '123_#1_IDENTIFICATION_#284.pdf', 'id', 0),
(39, 2, 131, 0, 'Loan', '169631779039061.pdf,169682651845393.pdf', '123_#1_IDENTIFICATION_#943.pdf~#~123_Licence_1514.pdf', 'bank', 0),
(40, 2, 132, 0, 'Loan', '16963177909079.pdf', '123_#1_IDENTIFICATION_#284.pdf', 'id', 0),
(41, 2, 132, 0, 'Loan', '169631779039061.pdf,169682651845393.pdf', '123_#1_IDENTIFICATION_#943.pdf~#~123_Licence_1514.pdf', 'bank', 0),
(42, 2, 123, 0, 'Loan', '', '', 'income', 0),
(43, 2, 133, 0, 'Loan', '16963177909079.pdf', '123_#1_IDENTIFICATION_#284.pdf', 'id', 0),
(44, 2, 133, 0, 'Loan', '169631779039061.pdf,169682651845393.pdf', '123_#1_IDENTIFICATION_#943.pdf~#~123_Licence_1514.pdf', 'bank', 0),
(45, 2, 133, 0, 'Loan', '169683181789227.pdf', '123_dummy694.pdf', 'income', 0),
(46, 2, 134, 0, 'Loan', '16963177909079.pdf', '123_#1_IDENTIFICATION_#284.pdf', 'id', 0),
(47, 2, 134, 0, 'Loan', '169631779039061.pdf,169682651845393.pdf', '123_#1_IDENTIFICATION_#943.pdf~#~123_Licence_1514.pdf', 'bank', 0),
(48, 2, 134, 0, 'Loan', '169683181789227.pdf', '123_dummy694.pdf', 'income', 0),
(49, 2, 135, 0, 'Loan', '16963177909079.pdf', '123_#1_IDENTIFICATION_#284.pdf', 'id', 0),
(50, 2, 135, 0, 'Loan', '169631779039061.pdf,169682651845393.pdf', '123_#1_IDENTIFICATION_#943.pdf~#~123_Licence_1514.pdf', 'bank', 0),
(51, 2, 135, 0, 'Loan', '169683181789227.pdf', '123_dummy694.pdf', 'income', 0),
(52, 2, 136, 0, 'Loan', '16963177909079.pdf', '123_#1_IDENTIFICATION_#284.pdf', 'id', 0),
(53, 2, 136, 0, 'Loan', '169631779039061.pdf,169682651845393.pdf', '123_#1_IDENTIFICATION_#943.pdf~#~123_Licence_1514.pdf', 'bank', 0),
(54, 2, 136, 0, 'Loan', '169683181789227.pdf', '123_dummy694.pdf', 'income', 0),
(55, 2, 137, 0, 'Loan', '', '', 'id', 0),
(56, 2, 137, 0, 'Loan', '169631779039061.pdf,170132301473686.pdf', '123_#1_IDENTIFICATION_#943.pdf~#~137_#1_IDENTIFICATION_#317.pdf', 'bank', 0),
(57, 2, 137, 0, 'Loan', '169683181789227.pdf', '123_dummy694.pdf', 'income', 0),
(58, 2, 137, 0, 'Loan', '170132305021251.pdf', '137_CONTRACTS_&_COMPLIANCE_DOCUMENTS965.pdf', 'receipt', 0);

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

--
-- Table structure for table `invoices`
--

CREATE TABLE `invoices` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `agentID` int(11) NOT NULL,
  `invoice_type` varchar(255) NOT NULL,
  `ContactID` varchar(255) NOT NULL,
  `Name` varchar(255) NOT NULL,
  `Date` varchar(255) NOT NULL,
  `DueDate` varchar(255) NOT NULL,
  `LineAmountTypes` varchar(255) NOT NULL,
  `InvoiceNumber` varchar(255) NOT NULL,
  `CurrencyCode` varchar(255) NOT NULL,
  `CurrencyRate` varchar(255) NOT NULL,
  `invoiceStatus` varchar(255) NOT NULL,
  `SubTotal` varchar(255) NOT NULL,
  `TotalTax` varchar(255) NOT NULL,
  `Total` varchar(255) NOT NULL,
  `InvoiceID` varchar(255) NOT NULL,
  `AmountDue` varchar(255) NOT NULL,
  `HasAttachments` varchar(255) NOT NULL,
  `AmountPaid` varchar(255) NOT NULL,
  `AmountCredited` varchar(255) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `letters_fourth`
--

CREATE TABLE `letters_fourth` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `supplier` varchar(100) NOT NULL,
  `fax` varchar(100) NOT NULL,
  `date_latter` varchar(30) NOT NULL,
  `approvel_advice` varchar(100) NOT NULL,
  `supplier_name` varchar(100) NOT NULL,
  `supplier_email` varchar(100) NOT NULL,
  `director_name` varchar(50) NOT NULL,
  `correct_info` text NOT NULL,
  `full_spacific` text NOT NULL,
  `note` text NOT NULL,
  `bankdetail` text NOT NULL,
  `nbapprove` text NOT NULL,
  `finance_company_name` text NOT NULL,
  `finance_company_address` text NOT NULL,
  `serial_number` varchar(250) NOT NULL,
  `gst_inc` varchar(12) NOT NULL,
  `gst_ex` varchar(12) NOT NULL,
  `loan_account_name` varchar(250) NOT NULL,
  `loan_trading_name` varchar(250) NOT NULL,
  `loan_trading_address` text NOT NULL,
  `loan_trading_abn` varchar(20) NOT NULL,
  `bill_check` varchar(20) NOT NULL,
  `information_check` varchar(20) NOT NULL,
  `bank_check` varchar(20) NOT NULL,
  `note_check` varchar(20) NOT NULL,
  `goods_check` varchar(20) NOT NULL,
  `identifiers_check` varchar(20) NOT NULL,
  `specification_check` varchar(20) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `letters_fourth`
--

INSERT INTO `letters_fourth` (`id`, `RentalID`, `supplier`, `fax`, `date_latter`, `approvel_advice`, `supplier_name`, `supplier_email`, `director_name`, `correct_info`, `full_spacific`, `note`, `bankdetail`, `nbapprove`, `finance_company_name`, `finance_company_address`, `serial_number`, `gst_inc`, `gst_ex`, `loan_account_name`, `loan_trading_name`, `loan_trading_address`, `loan_trading_abn`, `bill_check`, `information_check`, `bank_check`, `note_check`, `goods_check`, `identifiers_check`, `specification_check`, `date`) VALUES
(1, 101, '', '', '05 Jan 2023', 'Approval Advice and Invoice Request -', '', '', 'Qeqwewq Sadasdaa', 'Your correct information: \nLegal Name, ABN, Address and Contact Details.', 'Full equipment specifications and price per item:', 'A note that:\n“ALL EQUIPMENT IS NEW/USED”, If “USED” then: Year of Manufacture.', 'Please provide a copy of a deposit slip/Bank statement to confirm the bank details for payment. This needs to show Bank name, Bank account name/ Bank account number and BSB Number.', 'N.B! This approval is subject to all conditions being met by the client before delivery of the goods will be authorised.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '2023-01-05 11:29:37'),
(2, 104, '', '', '23 Jan 2023', 'Approval Advice and Invoice Request -', '', '', 'Fgdfdfgdfg Fgdhfhd', 'Your correct information: \nLegal Name, ABN, Address and Contact Details.', 'Full equipment specifications and price per item:', 'A note that:\n“ALL EQUIPMENT IS NEW/USED”, If “USED” then: Year of Manufacture.', 'Please provide a copy of a deposit slip/Bank statement to confirm the bank details for payment. This needs to show Bank name, Bank account name/ Bank account number and BSB Number.', 'N.B! This approval is subject to all conditions being met by the client before delivery of the goods will be authorised.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '2023-01-23 08:45:58'),
(3, 103, '+62+2++2+2++62+2+62030', 'ooiomomom416515', '23 Jan 2023', 'Approval Advice and Invoice Request -', '5+5+5+5++232', '+6+6+2+20006', 'Fgdfdfgdfg Fgdhfhd', 'Your correct information: \nLegal Name, ABN, Address and Contact Details.', 'Full equipment specifications and price per item:', 'A note that:\n“ALL EQUIPMENT IS NEW/USED”, If “USED” then: Year of Manufacture.', 'Please provide a copy of a deposit slip/Bank statement to confirm the bank details for payment. This needs to show Bank name, Bank account name/ Bank account number and BSB Number.', 'N.B! This approval is subject to all conditions being met by the client before delivery of the goods will be authorised.', '', '', '', '', '', '', '', '', '', 'checked', 'checked', 'checked', 'checked', 'checked', 'checked', 'checked', '2023-01-23 12:31:03'),
(4, 105, '', '', '01 Mar 2023', 'Approval Advice and Invoice Request -', '', '', 'Dfgdf Dfdfgdf', 'Your correct information: \nLegal Name, ABN, Address and Contact Details.', 'Full equipment specifications and price per item:', 'A note that:\n“ALL EQUIPMENT IS NEW/USED”, If “USED” then: Year of Manufacture.', 'Please provide a copy of a deposit slip/Bank statement to confirm the bank details for payment. This needs to show Bank name, Bank account name/ Bank account number and BSB Number.', 'N.B! This approval is subject to all conditions being met by the client before delivery of the goods will be authorised.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '2023-03-01 06:54:19'),
(5, 106, '', '', '01 Mar 2023', 'Approval Advice and Invoice Request -Gfdh', '', '', 'Sdg Fhd', 'Your correct information: \nLegal Name, ABN, Address and Contact Details.', 'Full equipment specifications and price per item:', 'A note that:\n“ALL EQUIPMENT IS NEW/USED”, If “USED” then: Year of Manufacture.', 'Please provide a copy of a deposit slip/Bank statement to confirm the bank details for payment. This needs to show Bank name, Bank account name/ Bank account number and BSB Number.', 'N.B! This approval is subject to all conditions being met by the client before delivery of the goods will be authorised.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '2023-03-01 09:50:58'),
(6, 107, '', '', '16 Mar 2023', '', '', '', '', 'Your correct information: \nLegal Name, ABN, Address and Contact Details.', 'Full equipment specifications and price per item:', 'A note that:\n“ALL EQUIPMENT IS NEW/USED”, If “USED” then: Year of Manufacture.', 'Please provide a copy of a deposit slip/Bank statement to confirm the bank details for payment. This needs to show Bank name, Bank account name/ Bank account number and BSB Number.', 'N.B! This approval is subject to all conditions being met by the client before delivery of the goods will be authorised.', '', '', '', '10,000', '9,090.91', '', '', '', '', '', '', '', '', '', '', '', '2023-03-01 11:49:21'),
(7, 108, '', '', '01 Mar 2023', 'Approval Advice and Invoice Request -', '', '', 'WdaWDA DA', 'Your correct information: \nLegal Name, ABN, Address and Contact Details.', 'Full equipment specifications and price per item:', 'A note that:\n“ALL EQUIPMENT IS NEW/USED”, If “USED” then: Year of Manufacture.', 'Please provide a copy of a deposit slip/Bank statement to confirm the bank details for payment. This needs to show Bank name, Bank account name/ Bank account number and BSB Number.', 'N.B! This approval is subject to all conditions being met by the client before delivery of the goods will be authorised.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '2023-03-01 11:57:09'),
(8, 109, '', '', '02 Mar 2023', 'Approval Advice and Invoice Request -', '', '', 'Fdcdcdd Jhghfghjh', 'Your correct information: \nLegal Name, ABN, Address and Contact Details.', 'Full equipment specifications and price per item:', 'A note that:\n“ALL EQUIPMENT IS NEW/USED”, If “USED” then: Year of Manufacture.', 'Please provide a copy of a deposit slip/Bank statement to confirm the bank details for payment. This needs to show Bank name, Bank account name/ Bank account number and BSB Number.', 'N.B! This approval is subject to all conditions being met by the client before delivery of the goods will be authorised.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '2023-03-02 04:13:33'),
(9, 111, '', '', '06 Mar 2023', 'Approval Advice and Invoice Request -', '', '', 'Grte Hnrhg', 'Your correct information: \nLegal Name, ABN, Address and Contact Details.', 'Full equipment specifications and price per item:', 'A note that:\n“ALL EQUIPMENT IS NEW/USED”, If “USED” then: Year of Manufacture.', 'Please provide a copy of a deposit slip/Bank statement to confirm the bank details for payment. This needs to show Bank name, Bank account name/ Bank account number and BSB Number.', 'N.B! This approval is subject to all conditions being met by the client before delivery of the goods will be authorised.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '2023-03-06 06:06:24'),
(10, 112, '', '', '09 Mar 2023', 'Approval Advice and Invoice Request -', '', '', '463434 Eryt', 'Your correct information: \nLegal Name, ABN, Address and Contact Details.', 'Full equipment specifications and price per item:', 'A note that:\n“ALL EQUIPMENT IS NEW/USED”, If “USED” then: Year of Manufacture.', 'Please provide a copy of a deposit slip/Bank statement to confirm the bank details for payment. This needs to show Bank name, Bank account name/ Bank account number and BSB Number.', 'N.B! This approval is subject to all conditions being met by the client before delivery of the goods will be authorised.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '2023-03-09 04:15:38'),
(11, 113, '', '', '09 Mar 2023', 'Approval Advice and Invoice Request -', '', '', 'Urytk Yrukr', 'Your correct information: \nLegal Name, ABN, Address and Contact Details.', 'Full equipment specifications and price per item:', 'A note that:\n“ALL EQUIPMENT IS NEW/USED”, If “USED” then: Year of Manufacture.', 'Please provide a copy of a deposit slip/Bank statement to confirm the bank details for payment. This needs to show Bank name, Bank account name/ Bank account number and BSB Number.', 'N.B! This approval is subject to all conditions being met by the client before delivery of the goods will be authorised.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '2023-03-09 10:33:15'),
(12, 115, '', '', '10 Mar 2023', 'Approval Advice and Invoice Request -', '', '', 'Djhrj Fgdj', 'Your correct information: \nLegal Name, ABN, Address and Contact Details.', 'Full equipment specifications and price per item:', 'A note that:\n“ALL EQUIPMENT IS NEW/USED”, If “USED” then: Year of Manufacture.', 'Please provide a copy of a deposit slip/Bank statement to confirm the bank details for payment. This needs to show Bank name, Bank account name/ Bank account number and BSB Number.', 'N.B! This approval is subject to all conditions being met by the client before delivery of the goods will be authorised.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '2023-03-10 04:42:25'),
(13, 114, '', '', '13 Mar 2023', 'Approval Advice and Invoice Request -', '', '', 'Sdsdfh 347tdytts', 'Your correct information: \nLegal Name, ABN, Address and Contact Details.', 'Full equipment specifications and price per item:', 'A note that:\n“ALL EQUIPMENT IS NEW/USED”, If “USED” then: Year of Manufacture.', 'Please provide a copy of a deposit slip/Bank statement to confirm the bank details for payment. This needs to show Bank name, Bank account name/ Bank account number and BSB Number.', 'N.B! This approval is subject to all conditions being met by the client before delivery of the goods will be authorised.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '2023-03-13 06:08:06'),
(14, 118, '', '', '13 Mar 2023', 'Approval Advice and Invoice Request -', '', '', 'Pppmp Ppmklm', 'Your correct information: \nLegal Name, ABN, Address and Contact Details.', 'Full equipment specifications and price per item:', 'A note that:\n“ALL EQUIPMENT IS NEW/USED”, If “USED” then: Year of Manufacture.', 'Please provide a copy of a deposit slip/Bank statement to confirm the bank details for payment. This needs to show Bank name, Bank account name/ Bank account number and BSB Number.', 'N.B! This approval is subject to all conditions being met by the client before delivery of the goods will be authorised.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '2023-03-13 08:46:57'),
(15, 116, '', '', '13 Mar 2023', 'Approval Advice and Invoice Request -', '', '', 'Shjhj Trsdts', 'Your correct information: \nLegal Name, ABN, Address and Contact Details.', 'Full equipment specifications and price per item:', 'A note that:\n“ALL EQUIPMENT IS NEW/USED”, If “USED” then: Year of Manufacture.', 'Please provide a copy of a deposit slip/Bank statement to confirm the bank details for payment. This needs to show Bank name, Bank account name/ Bank account number and BSB Number.', 'N.B! This approval is subject to all conditions being met by the client before delivery of the goods will be authorised.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '2023-03-13 09:54:50'),
(16, 119, '', '', '13 Mar 2023', 'Approval Advice and Invoice Request -', '', '', 'Dxzxz Cdcvcxc', 'Your correct information: \nLegal Name, ABN, Address and Contact Details.', 'Full equipment specifications and price per item:', 'A note that:\n“ALL EQUIPMENT IS NEW/USED”, If “USED” then: Year of Manufacture.', 'Please provide a copy of a deposit slip/Bank statement to confirm the bank details for payment. This needs to show Bank name, Bank account name/ Bank account number and BSB Number.', 'N.B! This approval is subject to all conditions being met by the client before delivery of the goods will be authorised.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '2023-03-13 10:46:24'),
(17, 120, '', '', '14 Mar 2023', 'Approval Advice and Invoice Request -', '', '', '2yawtg Sga', 'Your correct information: \nLegal Name, ABN, Address and Contact Details.', 'Full equipment specifications and price per item:', 'A note that:\n“ALL EQUIPMENT IS NEW/USED”, If “USED” then: Year of Manufacture.', 'Please provide a copy of a deposit slip/Bank statement to confirm the bank details for payment. This needs to show Bank name, Bank account name/ Bank account number and BSB Number.', 'N.B! This approval is subject to all conditions being met by the client before delivery of the goods will be authorised.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '2023-03-14 10:59:10'),
(18, 121, '', '', '15 Mar 2023', 'Approval Advice and Invoice Request -', '', '', 'Erys Juerts', 'Your correct information: \nLegal Name, ABN, Address and Contact Details.', 'Full equipment specifications and price per item:', 'A note that:\n“ALL EQUIPMENT IS NEW/USED”, If “USED” then: Year of Manufacture.', 'Please provide a copy of a deposit slip/Bank statement to confirm the bank details for payment. This needs to show Bank name, Bank account name/ Bank account number and BSB Number.', 'N.B! This approval is subject to all conditions being met by the client before delivery of the goods will be authorised.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '2023-03-15 12:11:21'),
(19, 122, '', '', '16 Mar 2023', 'Approval Advice and Invoice Request -', '', '', 'Zsdgeg Sdgasdg', 'Your correct information: \nLegal Name, ABN, Address and Contact Details.', 'Full equipment specifications and price per item:', 'A note that:\n“ALL EQUIPMENT IS NEW/USED”, If “USED” then: Year of Manufacture.', 'Please provide a copy of a deposit slip/Bank statement to confirm the bank details for payment. This needs to show Bank name, Bank account name/ Bank account number and BSB Number.', 'N.B! This approval is subject to all conditions being met by the client before delivery of the goods will be authorised.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '2023-03-16 04:25:14'),
(20, 123, 'Suppliers Company', '', '19 Apr 2023', 'Approval Advice and Invoice Request -Dataafe Apps', 'Peter Fryer', 'kerry@datasafeapps.com.au', 'Kerry Regan', 'Your correct information: \nLegal Name, ABN, Address and Contact Details.', 'Full equipment specifications and price per item:2019-$10,000.', 'A note that:\n“ALL EQUIPMENT IS NEW/USED”, If “USED” then: Year of Manufacture.', 'Please provide a copy of a deposit slip/Bank statement to confirm the bank details for payment. This needs to show Bank name, Bank account name/ Bank account number and BSB Number.', 'N.B! This approval is subject to all conditions being met by the client before delivery of the goods will be authorised.', '', '', '2019', '24,234', '22,030.91', '', '', '', '', '', '', '', '', '', '', '', '2023-04-18 23:30:43'),
(21, 124, 'Ebiketrack Company', '', '18 Jul 2023', 'Approval Advice and Invoice Request -Competition E Bike Parts', 'Peter Redder', 'david@datasafeapps.com.au', 'DavidLaw Holwerda', 'Your correct information: \nLegal Name, ABN, Address and Contact Details.', 'Full equipment specifications and price per item:Porsche-$300,000.', 'A note that:\n“ALL EQUIPMENT IS NEW/USED”, If “USED” then: Year of Manufacture.', 'Please provide a copy of a deposit slip/Bank statement to confirm the bank details for payment. This needs to show Bank name, Bank account name/ Bank account number and BSB Number.', 'N.B! This approval is subject to all conditions being met by the client before delivery of the goods will be authorised.', '', '', 'Porsche', '300,000', '272,727.27', '', '', '', '', '', '', '', '', '', '', '', '2023-07-18 11:38:05'),
(22, 125, '', '', '09 Oct 2023', 'Approval Advice and Invoice Request -Datasafe Apps', '', '', 'Kerry Regan', 'Your correct information: \nLegal Name, ABN, Address and Contact Details.', 'Full equipment specifications and price per item:', 'A note that:\n“ALL EQUIPMENT IS NEW/USED”, If “USED” then: Year of Manufacture.', 'Please provide a copy of a deposit slip/Bank statement to confirm the bank details for payment. This needs to show Bank name, Bank account name/ Bank account number and BSB Number.', 'N.B! This approval is subject to all conditions being met by the client before delivery of the goods will be authorised.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '2023-10-09 05:16:17'),
(23, 135, '', '', '09 Oct 2023', 'Approval Advice and Invoice Request -', '', '', 'Kerry Regan', 'Your correct information: \nLegal Name, ABN, Address and Contact Details.', 'Full equipment specifications and price per item:', 'A note that:\n“ALL EQUIPMENT IS NEW/USED”, If “USED” then: Year of Manufacture.', 'Please provide a copy of a deposit slip/Bank statement to confirm the bank details for payment. This needs to show Bank name, Bank account name/ Bank account number and BSB Number.', 'N.B! This approval is subject to all conditions being met by the client before delivery of the goods will be authorised.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '2023-10-09 06:16:29'),
(24, 137, '', '', '10 Oct 2023', 'Approval Advice and Invoice Request -', '', '', 'Kerry Regan', 'Your correct information: \nLegal Name, ABN, Address and Contact Details.', 'Full equipment specifications and price per item:', 'A note that:\n“ALL EQUIPMENT IS NEW/USED”, If “USED” then: Year of Manufacture.', 'Please provide a copy of a deposit slip/Bank statement to confirm the bank details for payment. This needs to show Bank name, Bank account name/ Bank account number and BSB Number.', 'N.B! This approval is subject to all conditions being met by the client before delivery of the goods will be authorised.', '', '', '', '10,000', '9,090.91', '', '', '', '', '', '', '', '', '', '', '', '2023-10-09 23:15:10'),
(25, 136, '', '', '16 Oct 2023', 'Approval Advice and Invoice Request -', '', '', 'Kerry Regan', 'Your correct information: \nLegal Name, ABN, Address and Contact Details.', 'Full equipment specifications and price per item:', 'A note that:\n“ALL EQUIPMENT IS NEW/USED”, If “USED” then: Year of Manufacture.', 'Please provide a copy of a deposit slip/Bank statement to confirm the bank details for payment. This needs to show Bank name, Bank account name/ Bank account number and BSB Number.', 'N.B! This approval is subject to all conditions being met by the client before delivery of the goods will be authorised.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '2023-10-15 23:17:32');

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

--
-- Table structure for table `letters_second`
--

CREATE TABLE `letters_second` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `annual_revenue` varchar(20) NOT NULL,
  `remuneration` varchar(30) NOT NULL,
  `net_profit` varchar(20) NOT NULL,
  `broker` varchar(250) NOT NULL,
  `broker_contact` varchar(250) NOT NULL,
  `cost_price_gst` varchar(250) NOT NULL,
  `brokerage_fee` varchar(250) NOT NULL,
  `cost_of_funding` varchar(250) NOT NULL,
  `cost_price_inc` varchar(250) NOT NULL,
  `brokerage_rate` varchar(250) NOT NULL,
  `customer_rate` varchar(250) NOT NULL,
  `monthly_payment` text NOT NULL,
  `residual` varchar(250) NOT NULL,
  `background_comment` text NOT NULL,
  `comment` text NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `letters_second`
--

INSERT INTO `letters_second` (`id`, `RentalID`, `annual_revenue`, `remuneration`, `net_profit`, `broker`, `broker_contact`, `cost_price_gst`, `brokerage_fee`, `cost_of_funding`, `cost_price_inc`, `brokerage_rate`, `customer_rate`, `monthly_payment`, `residual`, `background_comment`, `comment`, `date`) VALUES
(1, 106, '', '', '', 'Priority Funding', 'David Prior', '0', '', '', '0', '', '', '', '0', '', '', '2023-03-01 11:32:32'),
(2, 107, '', '', '', 'Priority Funding', 'David Prior', '9,090.91', '', '', '10,000.00', '%', '%', '$ 0.00 Ex GST/ $ 0.00 Inc GST', '0', '', '', '2023-03-13 06:42:14'),
(3, 123, '', '', '', 'Priority Funding', 'David Prior', '9,090.91', '', '', '10,000.00', '0%', '%', '$ 0.00 Ex GST/ $ 0.00 Inc GST', '545.46 (10 %)', '', '	It is a big ask\n\n	to sell bannanas.\n', '2023-10-04 07:12:24');

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

--
-- Table structure for table `letters_third`
--

CREATE TABLE `letters_third` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `first_payment` varchar(30) NOT NULL,
  `checkbox_one` varchar(20) NOT NULL,
  `checkbox_one_detail` text NOT NULL,
  `checkbox_two` varchar(20) NOT NULL,
  `checkbox_two_detail` text NOT NULL,
  `checkbox_three` varchar(20) NOT NULL,
  `checkbox_three_detail` text NOT NULL,
  `checkbox_four` varchar(20) NOT NULL,
  `checkbox_four_detail` text NOT NULL,
  `checkbox_five` varchar(20) NOT NULL,
  `checkbox_five_detail` text NOT NULL,
  `Insurer` varchar(30) NOT NULL,
  `PolicyNumber` varchar(30) NOT NULL,
  `expiry_date` varchar(30) NOT NULL,
  `structured` text NOT NULL,
  `documentation` text NOT NULL,
  `structured_others` text NOT NULL,
  `documentation_others` text NOT NULL,
  `other_being_limit` int(11) NOT NULL,
  `check_insurance` varchar(30) NOT NULL,
  `insurance_detail` varchar(250) NOT NULL,
  `check_insurance_others` text NOT NULL,
  `insurance_detail_others` text NOT NULL,
  `other_insurance_limit` int(11) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `letters_third`
--

INSERT INTO `letters_third` (`id`, `RentalID`, `first_payment`, `checkbox_one`, `checkbox_one_detail`, `checkbox_two`, `checkbox_two_detail`, `checkbox_three`, `checkbox_three_detail`, `checkbox_four`, `checkbox_four_detail`, `checkbox_five`, `checkbox_five_detail`, `Insurer`, `PolicyNumber`, `expiry_date`, `structured`, `documentation`, `structured_others`, `documentation_others`, `other_being_limit`, `check_insurance`, `insurance_detail`, `check_insurance_others`, `insurance_detail_others`, `other_insurance_limit`, `date`) VALUES
(1, 101, '', '', 'Please sign the agreement where indicated (X) as Renter or Customer and have your signatures witnessed by an unrelated third party, who is over 18 years. Please DO NOT witness each other’s signatures.', '', 'First payment of $ incl. GST will be direct debited from your nominated account on the Direct Debit form.', '', 'A Clear Certified copy of your Driver’s Licence (front and back with current address) in the name of Qeqwewq Sadasdaa.', '', 'Provide copy of deposit slip/Bank statement for account of  to confirm bank details you enter on the Direct Debit form this needs to show Bank name, Bank account name/ Bank account number and BSB Number.', '', 'Insurance details for the Premises where the goods are to be held', '', '', '', '', '', 'null', 'null', 0, '', '', 'null', 'null', 0, '2023-01-05 11:29:37'),
(2, 104, '', '', 'Please sign the agreement where indicated (X) as Renter or Customer and have your signatures witnessed by an unrelated third party, who is over 18 years. Please DO NOT witness each other’s signatures.', '', 'First payment of $ incl. GST will be direct debited from your nominated account on the Direct Debit form.', '', 'A Clear Certified copy of your Driver’s Licence (front and back with current address) in the name of Fgdfdfgdfg Fgdhfhd.', '', 'Provide copy of deposit slip/Bank statement for account of Dfdfgdfgdgffg to confirm bank details you enter on the Direct Debit form this needs to show Bank name, Bank account name/ Bank account number and BSB Number.', '', 'Insurance details for the Premises where the goods are to be held', '', '', '', '', '', 'null', 'null', 0, '', '', 'null', 'null', 0, '2023-01-23 08:45:58'),
(3, 103, '', 'checked', 'Please sign the agreement where indicated (X) as Renter or Customer and have your signatures witnessed by an unrelated third party, who is over 18 years. Please DO NOT witness each other’s signatures.', 'checked', 'First payment of $ incl. GST will be direct debited from your nominated account on the Direct Debit form.', '', 'A Clear Certified copy of your Driver’s Licence (front and back with current address) in the name of Fgdfdfgdfg Fgdhfhd.', 'checked', 'Provide copy of deposit slip/Bank statement for account of Dfdfgdfgdgffg to confirm bank details you enter on the Direct Debit form this needs to show Bank name, Bank account name/ Bank account number and BSB Number.', '', 'Insurance details for the Premises where the goods are to be held', '', '', '', '', '', 'null', 'null', 0, '', '', 'null', 'null', 0, '2023-01-23 12:31:03'),
(4, 105, '', '', 'Please sign the agreement where indicated (X) as Renter or Customer and have your signatures witnessed by an unrelated third party, who is over 18 years. Please DO NOT witness each other’s signatures.', '', 'First payment of $ incl. GST will be direct debited from your nominated account on the Direct Debit form.', '', 'A Clear Certified copy of your Driver’s Licence (front and back with current address) in the name of Dfgdf Dfdfgdf.', '', 'Provide copy of deposit slip/Bank statement for account of  to confirm bank details you enter on the Direct Debit form this needs to show Bank name, Bank account name/ Bank account number and BSB Number.', '', 'Insurance details for the Premises where the goods are to be held', '', '', '', '', '', 'null', 'null', 0, '', '', 'null', 'null', 0, '2023-03-01 06:54:19'),
(5, 106, '', '', 'Please sign the agreement where indicated (X) as Renter or Customer and have your signatures witnessed by an unrelated third party, who is over 18 years. Please DO NOT witness each other’s signatures.', '', 'First payment of $ incl. GST will be direct debited from your nominated account on the Direct Debit form.', '', 'A Clear Certified copy of your Driver’s Licence (front and back with current address) in the name of Sdg Fhd.', '', 'Provide copy of deposit slip/Bank statement for account of  to confirm bank details you enter on the Direct Debit form this needs to show Bank name, Bank account name/ Bank account number and BSB Number.', '', 'Insurance details for the Premises where the goods are to be held', '', '', '', '', '', 'null', 'null', 0, '', '', 'null', 'null', 0, '2023-03-01 09:50:58'),
(6, 107, '', '', 'Please sign the agreement where indicated (X) as Renter or Customer and have your signatures witnessed by an unrelated third party, who is over 18 years. Please DO NOT witness each other’s signatures.', '', 'First payment of $ incl. GST will be direct debited from your nominated account on the Direct Debit form.', '', 'A Clear Certified copy of your Driver’s Licence (front and back with current address) in the name of Kerry Regan.', '', 'Provide copy of deposit slip/Bank statement for account of DataSAfe to confirm bank details you enter on the Direct Debit form this needs to show Bank name, Bank account name/ Bank account number and BSB Number.', '', 'Insurance details for the Premises where the goods are to be held', '', '', '', '', '', 'null', 'null', 0, '', '', 'null', 'null', 0, '2023-03-01 11:49:21'),
(7, 108, '', '', 'Please sign the agreement where indicated (X) as Renter or Customer and have your signatures witnessed by an unrelated third party, who is over 18 years. Please DO NOT witness each other’s signatures.', '', 'First payment of $ incl. GST will be direct debited from your nominated account on the Direct Debit form.', '', 'A Clear Certified copy of your Driver’s Licence (front and back with current address) in the name of WdaWDA DA.', '', 'Provide copy of deposit slip/Bank statement for account of  to confirm bank details you enter on the Direct Debit form this needs to show Bank name, Bank account name/ Bank account number and BSB Number.', '', 'Insurance details for the Premises where the goods are to be held', '', '', '', '', '', 'null', 'null', 0, '', '', 'null', 'null', 0, '2023-03-01 11:57:08'),
(8, 109, '', '', 'Please sign the agreement where indicated (X) as Renter or Customer and have your signatures witnessed by an unrelated third party, who is over 18 years. Please DO NOT witness each other’s signatures.', '', 'First payment of $ incl. GST will be direct debited from your nominated account on the Direct Debit form.', '', 'A Clear Certified copy of your Driver’s Licence (front and back with current address) in the name of Fdcdcdd Jhghfghjh.', '', 'Provide copy of deposit slip/Bank statement for account of  to confirm bank details you enter on the Direct Debit form this needs to show Bank name, Bank account name/ Bank account number and BSB Number.', '', 'Insurance details for the Premises where the goods are to be held', '', '', '', '', '', 'null', 'null', 0, '', '', 'null', 'null', 0, '2023-03-02 04:13:33'),
(9, 111, '', '', 'Please sign the agreement where indicated (X) as Renter or Customer and have your signatures witnessed by an unrelated third party, who is over 18 years. Please DO NOT witness each other’s signatures.', '', 'First payment of $ incl. GST will be direct debited from your nominated account on the Direct Debit form.', '', 'A Clear Certified copy of your Driver’s Licence (front and back with current address) in the name of Grte Hnrhg.', '', 'Provide copy of deposit slip/Bank statement for account of  to confirm bank details you enter on the Direct Debit form this needs to show Bank name, Bank account name/ Bank account number and BSB Number.', '', 'Insurance details for the Premises where the goods are to be held', '', '', '', '', '', 'null', 'null', 0, '', '', 'null', 'null', 0, '2023-03-06 06:06:23'),
(10, 112, '', '', 'Please sign the agreement where indicated (X) as Renter or Customer and have your signatures witnessed by an unrelated third party, who is over 18 years. Please DO NOT witness each other’s signatures.', '', 'First payment of $ incl. GST will be direct debited from your nominated account on the Direct Debit form.', '', 'A Clear Certified copy of your Driver’s Licence (front and back with current address) in the name of 463434 Eryt.', '', 'Provide copy of deposit slip/Bank statement for account of  to confirm bank details you enter on the Direct Debit form this needs to show Bank name, Bank account name/ Bank account number and BSB Number.', '', 'Insurance details for the Premises where the goods are to be held', '', '', '', '', '', 'null', 'null', 0, '', '', 'null', 'null', 0, '2023-03-09 04:15:38'),
(11, 113, '', '', 'Please sign the agreement where indicated (X) as Renter or Customer and have your signatures witnessed by an unrelated third party, who is over 18 years. Please DO NOT witness each other’s signatures.', '', 'First payment of $ incl. GST will be direct debited from your nominated account on the Direct Debit form.', '', 'A Clear Certified copy of your Driver’s Licence (front and back with current address) in the name of Urytk Yrukr.', '', 'Provide copy of deposit slip/Bank statement for account of  to confirm bank details you enter on the Direct Debit form this needs to show Bank name, Bank account name/ Bank account number and BSB Number.', '', 'Insurance details for the Premises where the goods are to be held', '', '', '', '', '', 'null', 'null', 0, '', '', 'null', 'null', 0, '2023-03-09 10:33:15'),
(12, 115, '', '', 'Please sign the agreement where indicated (X) as Renter or Customer and have your signatures witnessed by an unrelated third party, who is over 18 years. Please DO NOT witness each other’s signatures.', '', 'First payment of $ incl. GST will be direct debited from your nominated account on the Direct Debit form.', '', 'A Clear Certified copy of your Driver’s Licence (front and back with current address) in the name of Djhrj Fgdj.', '', 'Provide copy of deposit slip/Bank statement for account of  to confirm bank details you enter on the Direct Debit form this needs to show Bank name, Bank account name/ Bank account number and BSB Number.', '', 'Insurance details for the Premises where the goods are to be held', '', '', '', '', '', 'null', 'null', 0, '', '', 'null', 'null', 0, '2023-03-10 04:42:25'),
(13, 114, '', '', 'Please sign the agreement where indicated (X) as Renter or Customer and have your signatures witnessed by an unrelated third party, who is over 18 years. Please DO NOT witness each other’s signatures.', '', 'First payment of $ incl. GST will be direct debited from your nominated account on the Direct Debit form.', '', 'A Clear Certified copy of your Driver’s Licence (front and back with current address) in the name of Sdsdfh 347tdytts.', '', 'Provide copy of deposit slip/Bank statement for account of  to confirm bank details you enter on the Direct Debit form this needs to show Bank name, Bank account name/ Bank account number and BSB Number.', '', 'Insurance details for the Premises where the goods are to be held', '', '', '', '', '', 'null', 'null', 0, '', '', 'null', 'null', 0, '2023-03-13 06:08:06'),
(14, 118, '', '', 'Please sign the agreement where indicated (X) as Renter or Customer and have your signatures witnessed by an unrelated third party, who is over 18 years. Please DO NOT witness each other’s signatures.', '', 'First payment of $ incl. GST will be direct debited from your nominated account on the Direct Debit form.', '', 'A Clear Certified copy of your Driver’s Licence (front and back with current address) in the name of Pppmp Ppmklm.', '', 'Provide copy of deposit slip/Bank statement for account of  to confirm bank details you enter on the Direct Debit form this needs to show Bank name, Bank account name/ Bank account number and BSB Number.', '', 'Insurance details for the Premises where the goods are to be held', '', '', '', '', '', 'null', 'null', 0, '', '', 'null', 'null', 0, '2023-03-13 08:46:57'),
(15, 116, '', '', 'Please sign the agreement where indicated (X) as Renter or Customer and have your signatures witnessed by an unrelated third party, who is over 18 years. Please DO NOT witness each other’s signatures.', '', 'First payment of $ incl. GST will be direct debited from your nominated account on the Direct Debit form.', '', 'A Clear Certified copy of your Driver’s Licence (front and back with current address) in the name of Shjhj Trsdts.', '', 'Provide copy of deposit slip/Bank statement for account of  to confirm bank details you enter on the Direct Debit form this needs to show Bank name, Bank account name/ Bank account number and BSB Number.', '', 'Insurance details for the Premises where the goods are to be held', '', '', '', '', '', 'null', 'null', 0, '', '', 'null', 'null', 0, '2023-03-13 09:54:50'),
(16, 119, '', '', 'Please sign the agreement where indicated (X) as Renter or Customer and have your signatures witnessed by an unrelated third party, who is over 18 years. Please DO NOT witness each other’s signatures.', '', 'First payment of $ incl. GST will be direct debited from your nominated account on the Direct Debit form.', '', 'A Clear Certified copy of your Driver’s Licence (front and back with current address) in the name of Dxzxz Cdcvcxc.', '', 'Provide copy of deposit slip/Bank statement for account of  to confirm bank details you enter on the Direct Debit form this needs to show Bank name, Bank account name/ Bank account number and BSB Number.', '', 'Insurance details for the Premises where the goods are to be held', '', '', '', '', '', 'null', 'null', 0, '', '', 'null', 'null', 0, '2023-03-13 10:46:24'),
(17, 120, '', '', 'Please sign the agreement where indicated (X) as Renter or Customer and have your signatures witnessed by an unrelated third party, who is over 18 years. Please DO NOT witness each other’s signatures.', '', 'First payment of $ incl. GST will be direct debited from your nominated account on the Direct Debit form.', '', 'A Clear Certified copy of your Driver’s Licence (front and back with current address) in the name of 2yawtg Sgaerhg.', '', 'Provide copy of deposit slip/Bank statement for account of  to confirm bank details you enter on the Direct Debit form this needs to show Bank name, Bank account name/ Bank account number and BSB Number.', '', 'Insurance details for the Premises where the goods are to be held', '', '', '', '', '', 'null', 'null', 0, '', '', 'null', 'null', 0, '2023-03-14 10:59:10'),
(18, 121, '', '', 'Please sign the agreement where indicated (X) as Renter or Customer and have your signatures witnessed by an unrelated third party, who is over 18 years. Please DO NOT witness each other’s signatures.', '', 'First payment of $ incl. GST will be direct debited from your nominated account on the Direct Debit form.', '', 'A Clear Certified copy of your Driver’s Licence (front and back with current address) in the name of Erys Juerts.', '', 'Provide copy of deposit slip/Bank statement for account of  to confirm bank details you enter on the Direct Debit form this needs to show Bank name, Bank account name/ Bank account number and BSB Number.', '', 'Insurance details for the Premises where the goods are to be held', '', '', '', '', '', 'null', 'null', 0, '', '', 'null', 'null', 0, '2023-03-15 12:11:21'),
(19, 122, '', '', 'Please sign the agreement where indicated (X) as Renter or Customer and have your signatures witnessed by an unrelated third party, who is over 18 years. Please DO NOT witness each other’s signatures.', '', 'First payment of $ incl. GST will be direct debited from your nominated account on the Direct Debit form.', '', 'A Clear Certified copy of your Driver’s Licence (front and back with current address) in the name of Zsdgeg Sdgasdg.', '', 'Provide copy of deposit slip/Bank statement for account of  to confirm bank details you enter on the Direct Debit form this needs to show Bank name, Bank account name/ Bank account number and BSB Number.', '', 'Insurance details for the Premises where the goods are to be held', '', '', '', '', '', 'null', 'null', 0, '', '', 'null', 'null', 0, '2023-03-16 04:25:14'),
(20, 123, '', '', 'Please sign the agreement where indicated (X) as Renter or Customer and have your signatures witnessed by an unrelated third party, who is over 18 years. Please DO NOT witness each other’s signatures.', '', 'First payment of $ incl. GST will be direct debited from your nominated account on the Direct Debit form.', '', 'A Clear Certified copy of your Driver’s Licence (front and back with current address) in the name of Kerry Regan, David  Holwerda, John Keer.', '', 'Provide copy of deposit slip/Bank statement for account of DataSAfe to confirm bank details you enter on the Direct Debit form this needs to show Bank name, Bank account name/ Bank account number and BSB Number.', '', 'Insurance details for the Premises where the goods are to be held', 'Swanless', '123123123123', '', '', '', 'null', 'null', 0, '', '', 'null', 'null', 0, '2023-04-18 23:30:43'),
(21, 124, '', '', 'Please sign the agreement where indicated (X) as Renter or Customer and have your signatures witnessed by an unrelated third party, who is over 18 years. Please DO NOT witness each other’s signatures.', '', 'First payment of $ incl. GST will be direct debited from your nominated account on the Direct Debit form.', '', 'A Clear Certified copy of your Driver’s Licence (front and back with current address) in the name of DavidLaw Holwerda.', '', 'Provide copy of deposit slip/Bank statement for account of Competition E Bikes to confirm bank details you enter on the Direct Debit form this needs to show Bank name, Bank account name/ Bank account number and BSB Number.', '', 'Insurance details for the Premises where the goods are to be held', '', '', '', '', '', 'null', 'null', 0, '', '', 'null', 'null', 0, '2023-07-18 11:38:04'),
(22, 125, '', '', 'Please sign the agreement where indicated (X) as Renter or Customer and have your signatures witnessed by an unrelated third party, who is over 18 years. Please DO NOT witness each other’s signatures.', '', 'First payment of $ incl. GST will be direct debited from your nominated account on the Direct Debit form.', '', 'A Clear Certified copy of your Driver’s Licence (front and back with current address) in the name of Kerry Regan, David  Holwerda.', '', 'Provide copy of deposit slip/Bank statement for account of DataSafe to confirm bank details you enter on the Direct Debit form this needs to show Bank name, Bank account name/ Bank account number and BSB Number.', '', 'Insurance details for the Premises where the goods are to be held', '', '', '', '', '', 'null', 'null', 0, '', '', 'null', 'null', 0, '2023-10-09 05:16:17'),
(23, 135, '', '', 'Please sign the agreement where indicated (X) as Renter or Customer and have your signatures witnessed by an unrelated third party, who is over 18 years. Please DO NOT witness each other’s signatures.', '', 'First payment of $ incl. GST will be direct debited from your nominated account on the Direct Debit form.', '', 'A Clear Certified copy of your Driver’s Licence (front and back with current address) in the name of Kerry Regan, David  Holwerda.', '', 'Provide copy of deposit slip/Bank statement for account of DataSafe to confirm bank details you enter on the Direct Debit form this needs to show Bank name, Bank account name/ Bank account number and BSB Number.', '', 'Insurance details for the Premises where the goods are to be held', '', '', '', '', '', 'null', 'null', 0, '', '', 'null', 'null', 0, '2023-10-09 06:16:29'),
(24, 137, '', '', 'Please sign the agreement where indicated (X) as Renter or Customer and have your signatures witnessed by an unrelated third party, who is over 18 years. Please DO NOT witness each other’s signatures.', '', 'First payment of $ incl. GST will be direct debited from your nominated account on the Direct Debit form.', '', 'A Clear Certified copy of your Driver’s Licence (front and back with current address) in the name of Kerry Regan, David Holwerda.', '', 'Provide copy of deposit slip/Bank statement for account of DataSafe to confirm bank details you enter on the Direct Debit form this needs to show Bank name, Bank account name/ Bank account number and BSB Number.', '', 'Insurance details for the Premises where the goods are to be held', '', '', '', '', '', 'null', 'null', 0, '', '', 'null', 'null', 0, '2023-10-09 23:15:10'),
(25, 136, '', '', 'Please sign the agreement where indicated (X) as Renter or Customer and have your signatures witnessed by an unrelated third party, who is over 18 years. Please DO NOT witness each other’s signatures.', '', 'First payment of $ incl. GST will be direct debited from your nominated account on the Direct Debit form.', '', 'A Clear Certified copy of your Driver’s Licence (front and back with current address) in the name of Kerry Regan, David  Holwerda.', '', 'Provide copy of deposit slip/Bank statement for account of DataSafe to confirm bank details you enter on the Direct Debit form this needs to show Bank name, Bank account name/ Bank account number and BSB Number.', '', 'Insurance details for the Premises where the goods are to be held', '', '', '', '', '', 'null', 'null', 0, '', '', 'null', 'null', 0, '2023-10-15 23:17:32');

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

--
-- Table structure for table `lmi_amount`
--

CREATE TABLE `lmi_amount` (
  `id` int(11) NOT NULL,
  `amount` varchar(50) NOT NULL,
  `status` int(11) DEFAULT '0',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `lmi_range`
--

CREATE TABLE `lmi_range` (
  `id` int(11) NOT NULL,
  `percent` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `lmi_range_amount`
--

CREATE TABLE `lmi_range_amount` (
  `id` int(11) NOT NULL,
  `percent_id` int(11) NOT NULL,
  `amount_id` int(11) NOT NULL,
  `per_value` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `loans`
--

CREATE TABLE `loans` (
  `id` int(11) NOT NULL,
  `Topic` text NOT NULL,
  `Account` text NOT NULL,
  `Account_Type` text NOT NULL,
  `Contact` text NOT NULL,
  `Equipment` text NOT NULL,
  `Loan_Amount` varchar(255) NOT NULL,
  `Loan_Value_Inc_GST` varchar(255) NOT NULL,
  `Brokerage_Ex_GST` varchar(255) NOT NULL,
  `Finance_Type` varchar(255) NOT NULL,
  `Description` longtext CHARACTER SET utf8 NOT NULL,
  `Director1` varchar(255) NOT NULL,
  `Director2` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `Loan_calculator`
--

CREATE TABLE `Loan_calculator` (
  `ID` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `Type` varchar(6) NOT NULL,
  `Description` varchar(100) NOT NULL,
  `InterestRate` varchar(200) NOT NULL,
  `Amount` varchar(150) NOT NULL,
  `Duration` varchar(11) NOT NULL,
  `StartDate` varchar(15) NOT NULL,
  `FirstDate` varchar(15) NOT NULL,
  `Daily_Payment_fees` varchar(150) NOT NULL,
  `Up_front_fees` varchar(110) NOT NULL,
  `Payment_frequency` varchar(20) NOT NULL,
  `Percentage_rate` varchar(11) NOT NULL,
  `CompanyNumber` varchar(100) NOT NULL,
  `Transcode` varchar(11) NOT NULL,
  `Monthly_fees` varchar(11) NOT NULL,
  `final_total` varchar(150) NOT NULL,
  `AgentID` int(15) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `Loan_calculator`
--

INSERT INTO `Loan_calculator` (`ID`, `RentalID`, `Type`, `Description`, `InterestRate`, `Amount`, `Duration`, `StartDate`, `FirstDate`, `Daily_Payment_fees`, `Up_front_fees`, `Payment_frequency`, `Percentage_rate`, `CompanyNumber`, `Transcode`, `Monthly_fees`, `final_total`, `AgentID`, `delete_status`) VALUES
(1, 1, 'Loan', 'Small Amount Credit Contract', '', '', '', '', '', '', '', 'Weekly', '', '', '', '', '', 29, 0),
(2, 6, 'Loan', 'Small Amount Credit Contract', '', '', '', '', '', '', '', 'Weekly', '', '', '', '', '', 29, 0),
(3, 8, 'Loan', 'Small Amount Credit Contract', '', '', '', '', '', '', '', 'Weekly', '', '', '', '', '', 29, 0),
(4, 9, 'Loan', 'Small Amount Credit Contract', '', '', '', '', '', '', '', 'Weekly', '', '', '', '', '', 29, 0),
(5, 18, 'Loan', 'Small Amount Credit Contract', '', '', '', '', '', '', '', 'Weekly', '', '', '', '', '', 29, 0);

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

--
-- Table structure for table `loan_calculator_list`
--

CREATE TABLE `loan_calculator_list` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `loan_cal_id` int(11) NOT NULL,
  `loan_type` varchar(150) NOT NULL,
  `date` varchar(200) NOT NULL,
  `cashflow` varchar(200) NOT NULL,
  `interest_added` varchar(200) NOT NULL,
  `balance` varchar(200) NOT NULL,
  `pv_cashflow` varchar(200) NOT NULL,
  `total_pmt` varchar(200) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `loan_number`
--

CREATE TABLE `loan_number` (
  `loan_number` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `loan_rental_images`
--

CREATE TABLE `loan_rental_images` (
  `id` int(6) NOT NULL,
  `RentalID` int(6) NOT NULL,
  `LoanID` int(6) NOT NULL,
  `Term` varchar(15) NOT NULL,
  `images` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mark_archive`
--

CREATE TABLE `mark_archive` (
  `id` int(11) NOT NULL,
  `agentID` int(11) NOT NULL,
  `notes_id` int(11) NOT NULL,
  `reader_id` int(11) NOT NULL,
  `sender_id` int(11) NOT NULL,
  `type` varchar(50) NOT NULL COMMENT 'note/message/bulletin',
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mark_read`
--

CREATE TABLE `mark_read` (
  `id` int(11) NOT NULL,
  `agentID` int(11) NOT NULL,
  `notes_id` int(11) NOT NULL,
  `reader_id` int(11) NOT NULL,
  `sender_id` int(11) NOT NULL,
  `type` varchar(50) NOT NULL COMMENT 'note/message/todo/admin_message',
  `status` int(11) NOT NULL DEFAULT '0' COMMENT '1=>read 0=>unread',
  `timestamp` varchar(50) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mark_read`
--

INSERT INTO `mark_read` (`id`, `agentID`, `notes_id`, `reader_id`, `sender_id`, `type`, `status`, `timestamp`, `create_date`) VALUES
(3, 2, 1, 3, 2, 'todo', 2, '1678929428', '2023-03-16 01:17:08'),
(6, 2, 3, 2, 2, 'note', 2, '1698716196', '2023-10-31 01:36:36'),
(7, 2, 3, 3, 2, 'note', 0, '1698716196', '2023-10-31 01:36:36'),
(9, 2, 4, 4, 2, 'note', 1, '1701300575', '2023-11-29 23:29:35');

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

--
-- Table structure for table `mortgage_child_exp_1`
--

CREATE TABLE `mortgage_child_exp_1` (
  `id` int(11) NOT NULL,
  `cost` varchar(150) NOT NULL,
  `self` varchar(150) NOT NULL,
  `school_fee` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mortgage_child_exp_2`
--

CREATE TABLE `mortgage_child_exp_2` (
  `id` int(11) NOT NULL,
  `cost` varchar(150) NOT NULL,
  `self` varchar(150) NOT NULL,
  `school_fee` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mortgage_education_exp_1`
--

CREATE TABLE `mortgage_education_exp_1` (
  `id` int(11) NOT NULL,
  `self` varchar(150) NOT NULL,
  `child` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mortgage_education_exp_2`
--

CREATE TABLE `mortgage_education_exp_2` (
  `id` int(11) NOT NULL,
  `self` varchar(150) NOT NULL,
  `child` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mortgage_groceries_exp_1`
--

CREATE TABLE `mortgage_groceries_exp_1` (
  `id` int(11) NOT NULL,
  `food` varchar(150) NOT NULL,
  `tobacco` varchar(150) NOT NULL,
  `pet` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mortgage_groceries_exp_2`
--

CREATE TABLE `mortgage_groceries_exp_2` (
  `id` int(11) NOT NULL,
  `food` varchar(150) NOT NULL,
  `tobacco` varchar(150) NOT NULL,
  `pet` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mortgage_health_exp_1`
--

CREATE TABLE `mortgage_health_exp_1` (
  `id` int(11) NOT NULL,
  `private` varchar(150) NOT NULL,
  `perscriptions` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(150) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mortgage_health_exp_2`
--

CREATE TABLE `mortgage_health_exp_2` (
  `id` int(11) NOT NULL,
  `private` varchar(150) NOT NULL,
  `perscriptions` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mortgage_income_1`
--

CREATE TABLE `mortgage_income_1` (
  `id` int(11) NOT NULL,
  `salary` varchar(150) NOT NULL,
  `allowance` varchar(150) NOT NULL,
  `second_income` varchar(150) NOT NULL,
  `third_income` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mortgage_income_2`
--

CREATE TABLE `mortgage_income_2` (
  `id` int(11) NOT NULL,
  `salary` varchar(150) NOT NULL,
  `allowance` varchar(150) NOT NULL,
  `second_income` varchar(150) NOT NULL,
  `third_income` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mortgage_insurance_exp_1`
--

CREATE TABLE `mortgage_insurance_exp_1` (
  `id` int(11) NOT NULL,
  `home` varchar(150) NOT NULL,
  `motor` varchar(150) NOT NULL,
  `boat` varchar(150) NOT NULL,
  `body` varchar(150) NOT NULL,
  `life` varchar(150) NOT NULL,
  `income` varchar(150) NOT NULL,
  `pet` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mortgage_insurance_exp_2`
--

CREATE TABLE `mortgage_insurance_exp_2` (
  `id` int(11) NOT NULL,
  `home` varchar(150) NOT NULL,
  `motor` varchar(150) NOT NULL,
  `boat` varchar(150) NOT NULL,
  `body` varchar(150) NOT NULL,
  `life` varchar(150) NOT NULL,
  `income` varchar(150) NOT NULL,
  `pet` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mortgage_internet_exp_1`
--

CREATE TABLE `mortgage_internet_exp_1` (
  `id` int(11) NOT NULL,
  `home` varchar(150) NOT NULL,
  `mobile` varchar(150) NOT NULL,
  `data` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mortgage_internet_exp_2`
--

CREATE TABLE `mortgage_internet_exp_2` (
  `id` int(11) NOT NULL,
  `home` varchar(150) NOT NULL,
  `mobile` varchar(150) NOT NULL,
  `data` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mortgage_investment_exp_1`
--

CREATE TABLE `mortgage_investment_exp_1` (
  `id` int(11) NOT NULL,
  `building` varchar(150) NOT NULL,
  `utilities` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mortgage_investment_exp_2`
--

CREATE TABLE `mortgage_investment_exp_2` (
  `id` int(11) NOT NULL,
  `building` varchar(150) NOT NULL,
  `utilities` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mortgage_other_exp_1`
--

CREATE TABLE `mortgage_other_exp_1` (
  `id` int(11) NOT NULL,
  `household` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mortgage_other_exp_2`
--

CREATE TABLE `mortgage_other_exp_2` (
  `id` int(11) NOT NULL,
  `household` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mortgage_personal_exp_1`
--

CREATE TABLE `mortgage_personal_exp_1` (
  `id` int(11) NOT NULL,
  `beaulty` varchar(150) NOT NULL,
  `hair` varchar(150) NOT NULL,
  `clothing` varchar(150) NOT NULL,
  `gifts` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mortgage_personal_exp_2`
--

CREATE TABLE `mortgage_personal_exp_2` (
  `id` int(11) NOT NULL,
  `beauty` varchar(150) NOT NULL,
  `hair` varchar(150) NOT NULL,
  `clothing` varchar(150) NOT NULL,
  `gifts` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mortgage_recreation_exp_1`
--

CREATE TABLE `mortgage_recreation_exp_1` (
  `id` int(11) NOT NULL,
  `eating` varchar(150) NOT NULL,
  `subscription` varchar(150) NOT NULL,
  `gym` varchar(150) NOT NULL,
  `hobbies` varchar(150) NOT NULL,
  `club` varchar(150) NOT NULL,
  `gambling` varchar(150) NOT NULL,
  `holidays` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mortgage_recreation_exp_2`
--

CREATE TABLE `mortgage_recreation_exp_2` (
  `id` int(11) NOT NULL,
  `eating` varchar(150) NOT NULL,
  `subscriptions` varchar(150) NOT NULL,
  `gym` varchar(150) NOT NULL,
  `hobbies` varchar(150) NOT NULL,
  `club` varchar(150) NOT NULL,
  `gambling` varchar(150) NOT NULL,
  `holidays` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mortgage_transport_exp_1`
--

CREATE TABLE `mortgage_transport_exp_1` (
  `id` int(11) NOT NULL,
  `fuel` varchar(150) NOT NULL,
  `registration` varchar(150) NOT NULL,
  `servicing` varchar(150) NOT NULL,
  `parking` varchar(150) NOT NULL,
  `tolls` varchar(150) NOT NULL,
  `public` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mortgage_transport_exp_2`
--

CREATE TABLE `mortgage_transport_exp_2` (
  `id` int(11) NOT NULL,
  `fuel` varchar(150) NOT NULL,
  `registration` varchar(150) NOT NULL,
  `servicing` varchar(150) NOT NULL,
  `parking` varchar(150) NOT NULL,
  `tolls` varchar(150) NOT NULL,
  `public` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mortgage_utilities_exp_1`
--

CREATE TABLE `mortgage_utilities_exp_1` (
  `id` int(11) NOT NULL,
  `electricity` varchar(150) NOT NULL,
  `water` varchar(150) NOT NULL,
  `gas` varchar(150) NOT NULL,
  `rates` varchar(150) NOT NULL,
  `rent` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mortgage_utilities_exp_2`
--

CREATE TABLE `mortgage_utilities_exp_2` (
  `id` int(11) NOT NULL,
  `electricity` varchar(150) NOT NULL,
  `water` varchar(150) NOT NULL,
  `gas` varchar(150) NOT NULL,
  `rates` varchar(150) NOT NULL,
  `rent` varchar(150) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `notes`
--

CREATE TABLE `notes` (
  `ClientID` int(6) NOT NULL,
  `AgentID` int(6) NOT NULL,
  `RentalID` int(6) NOT NULL,
  `Type` varchar(15) NOT NULL,
  `note_type` varchar(50) NOT NULL DEFAULT 'Client' COMMENT 'Client/Mortgage/Loan/Rent',
  `future_finance` varchar(20) NOT NULL,
  `credit_history` varchar(20) NOT NULL,
  `bankrupt` varchar(20) NOT NULL,
  `assets_value` varchar(20) NOT NULL,
  `information` varchar(20) NOT NULL,
  `flexible_feature` varchar(20) NOT NULL,
  `additional_risk` varchar(20) NOT NULL,
  `low_credit_history` varchar(100) NOT NULL,
  `low_client_property` varchar(100) NOT NULL,
  `low_business_gst` varchar(100) NOT NULL,
  `low_credit_reference` varchar(100) NOT NULL,
  `low_ast_liablity` varchar(100) NOT NULL,
  `low_med_card` varchar(100) NOT NULL,
  `low_credit_criteria` varchar(100) NOT NULL,
  `full_credit_history` varchar(100) NOT NULL,
  `full_property` varchar(100) NOT NULL,
  `full_business_gst` varchar(100) NOT NULL,
  `full_credit_reference` varchar(100) NOT NULL,
  `full_ast_liability` varchar(100) NOT NULL,
  `full_financial` varchar(100) NOT NULL,
  `full_commitment` varchar(100) NOT NULL,
  `full_bank_statement` varchar(100) NOT NULL,
  `full_med_card` varchar(100) NOT NULL,
  `full_credit_criteria` varchar(100) NOT NULL,
  `Status` varchar(15) NOT NULL DEFAULT '0',
  `Notes` text NOT NULL,
  `MessageFromHeadOfice1` text NOT NULL,
  `background_comment` longtext NOT NULL,
  `comment` text NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL,
  `user_id` int(11) NOT NULL,
  `added_type` varchar(100) NOT NULL DEFAULT 'notes' COMMENT 'notes, background'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `notes`
--

INSERT INTO `notes` (`ClientID`, `AgentID`, `RentalID`, `Type`, `note_type`, `future_finance`, `credit_history`, `bankrupt`, `assets_value`, `information`, `flexible_feature`, `additional_risk`, `low_credit_history`, `low_client_property`, `low_business_gst`, `low_credit_reference`, `low_ast_liablity`, `low_med_card`, `low_credit_criteria`, `full_credit_history`, `full_property`, `full_business_gst`, `full_credit_reference`, `full_ast_liability`, `full_financial`, `full_commitment`, `full_bank_statement`, `full_med_card`, `full_credit_criteria`, `Status`, `Notes`, `MessageFromHeadOfice1`, `background_comment`, `comment`, `delete_status`, `timestamp`, `user_id`, `added_type`) VALUES
(1, 0, 107, 'Loan', 'Loan', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', '0', '<p>\n	The client checks out. We are satisfied it is all going well</p>\n', '', '', '', 0, '1681787495', 2, 'notes'),
(2, 0, 114, 'Loan', 'Loan', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n asdsadadda</p>\n', '', '', '', 0, '1678687176', 2, 'notes'),
(3, 0, 117, 'Loan', 'Loan', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n dftjeexdfhbnzd</p>\n', '', '', '<p>\n	xcbweyhhyshshse</p>\n', 0, '1678692981', 2, 'notes'),
(4, 0, 116, 'Loan', 'Loan', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n zdhdzshsdh</p>\n', '', '', '<p>\n	zaghah</p>\n', 0, '1678693046', 2, 'notes'),
(5, 0, 116, 'Loan', 'Loan', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '0', '', '', '', '<p>\n	zaghah</p>\n', 1, '1678693458', 2, 'notes'),
(6, 0, 114, 'Loan', 'Loan', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '0', '<p>\n	fdfdd</p>\n', '', '', '', 0, '1678699736', 2, 'notes'),
(7, 0, 116, 'Loan', 'Loan', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '0', '', '', '', '<p>\n	zaghah</p>\n', 0, '1678700978', 2, 'notes'),
(8, 0, 120, 'Loan', 'Loan', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n 78uk</p>\n', '', '', '', 1, '1678794535', 2, 'notes'),
(9, 0, 120, 'Loan', 'Loan', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n sdcsvd</p>\n', '', '', '', 1, '1678794655', 2, 'notes'),
(10, 0, 120, 'Loan', 'Loan', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n 6+6+</p>\n', '', '', '', 1, '1678795530', 2, 'notes'),
(11, 0, 120, 'Loan', 'Loan', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n 959595</p>\n', '', '', '', 1, '1678795645', 2, 'notes'),
(12, 0, 120, 'Loan', 'Loan', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n 65651651651.</p>\n', '', '', '', 1, '1678795779', 2, 'notes'),
(13, 0, 120, 'Loan', 'Loan', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n vfvd49829652</p>\n', '', '', '', 0, '1678795867', 2, 'notes'),
(14, 0, 118, 'Loan', 'Loan', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n mnmnmnmm</p>\n<p>\n  </p>\n', '', '', '', 0, '1678858478', 2, 'notes'),
(15, 0, 123, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n	This is a note</p>\n<p>\n	Test Note Application</p>\n<p>\n	Application for farm Equipment</p>\n', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(16, 0, 124, 'Loan', 'Loan', '', '', '', '', '', '', '', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '', '', '', '', 0, '1689652487', 2, 'notes'),
(17, 2, 124, 'Loan', 'Loan', '', '', '', '', '', '', '', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Clear veda of applicant and directors</b>', '', '', '', 0, '1689652487', 2, 'background'),
(18, 2, 124, 'Loan', 'Loan', '', '', '', '', '', '', '', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Property owners</b>', '', '', '', 0, '1689652487', 2, 'background'),
(19, 2, 124, 'Loan', 'Loan', '', '', '', '', '', '', '', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Trading minimum of 3 years</b>', '', '', '', 0, '1689652487', 2, 'background'),
(20, 2, 124, 'Loan', 'Loan', '', '', '', '', '', '', '', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Credit references available</b>', '', '', '', 0, '1689652487', 2, 'background'),
(21, 2, 124, 'Loan', 'Loan', '', '', '', '', '', '', '', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Asset and liability provided</b>', '', '', '', 0, '1689652487', 2, 'background'),
(22, 2, 124, 'Loan', 'Loan', '', '', '', '', '', '', '', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Id has been provided</b>', '', '', '', 0, '1689652487', 2, 'background'),
(23, 2, 124, 'Loan', 'Loan', '', '', '', '', '', '', '', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Application has met credit criteria</b>', '', '', '', 0, '1689652487', 2, 'background'),
(24, 2, 124, 'Loan', 'Loan', '', '', '', '', '', '', '', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client and Entity have a clear credit history? - Yes', '', '', '', 0, '1689652487', 2, 'notes'),
(25, 2, 124, 'Loan', 'Loan', '', '', '', '', '', '', '', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Are clients property owners? - Yes', '', '', '', 0, '1689652487', 2, 'notes'),
(26, 2, 124, 'Loan', 'Loan', '', '', '', '', '', '', '', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has client been in business and registered for GST for 2+ years? - Yes', '', '', '', 0, '1689652487', 2, 'notes'),
(27, 2, 124, 'Loan', 'Loan', '', '', '', '', '', '', '', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Is a credit reference available? - Yes', '', '', '', 0, '1689652487', 2, 'notes'),
(28, 2, 124, 'Loan', 'Loan', '', '', '', '', '', '', '', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has an Assets & Liability Statement been provided? - Yes', '', '', '', 0, '1689652487', 2, 'notes'),
(29, 2, 124, 'Loan', 'Loan', '', '', '', '', '', '', '', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client have ID? (Driver Licence and Medicare Card) - Yes', '', '', '', 0, '1689652487', 2, 'notes'),
(30, 2, 124, 'Loan', 'Loan', '', '', '', '', '', '', '', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does this application meet credit criteria? - Yes', '', '', '', 0, '1689652487', 2, 'notes'),
(31, 0, 123, 'Loan', 'Loan', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '0', '', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1690174369', 3, 'notes'),
(32, 2, 123, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Clear veda of applicant and directors</b>', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'background'),
(33, 2, 123, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Trading minimum of 3 years</b>', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'background'),
(34, 2, 123, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Asset and liability provided</b>', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'background'),
(35, 2, 123, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Application has met credit criteria</b>', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'background'),
(36, 2, 123, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client and Entity have a clear credit history? - Yes', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(37, 2, 123, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Are clients property owners? - No', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(38, 2, 123, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has client been in business and registered for GST for 2+ years? - Yes', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(39, 2, 123, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Is a credit reference available? - No', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(40, 2, 123, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has an Assets & Liability Statement been provided? - Yes', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(41, 2, 123, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client have ID? (Driver Licence and Medicare Card) - No', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(42, 2, 123, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does this application meet credit criteria? - Yes', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(43, 0, 123, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n This is a note</p>\n<p>\n Test Note Application</p>\n<p>\n Application for farm Equipment</p>\n', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(44, 2, 126, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n This is a note</p>\n<p>\n Test Note Application</p>\n<p>\n Application for farm Equipment</p>\n', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(45, 2, 126, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does this application meet credit criteria? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(46, 2, 126, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client have ID? (Driver Licence and Medicare Card) - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(47, 2, 126, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has an Assets & Liability Statement been provided? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(48, 2, 126, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Is a credit reference available? - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(49, 2, 126, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has client been in business and registered for GST for 2+ years? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(50, 2, 126, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Are clients property owners? - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(51, 2, 126, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client and Entity have a clear credit history? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(52, 2, 126, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Application has met credit criteria</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(53, 2, 126, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Asset and liability provided</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(54, 2, 126, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Trading minimum of 3 years</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(55, 2, 126, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Clear veda of applicant and directors</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(56, 2, 126, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n This is a note</p>\n<p>\n Test Note Application</p>\n<p>\n Application for farm Equipment</p>\n', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(57, 2, 127, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n This is a note</p>\n<p>\n Test Note Application</p>\n<p>\n Application for farm Equipment</p>\n', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(58, 2, 127, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does this application meet credit criteria? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(59, 2, 127, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client have ID? (Driver Licence and Medicare Card) - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(60, 2, 127, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has an Assets & Liability Statement been provided? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(61, 2, 127, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Is a credit reference available? - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(62, 2, 127, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has client been in business and registered for GST for 2+ years? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(63, 2, 127, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Are clients property owners? - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(64, 2, 127, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client and Entity have a clear credit history? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(65, 2, 127, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Application has met credit criteria</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(66, 2, 127, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Asset and liability provided</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(67, 2, 127, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Trading minimum of 3 years</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(68, 2, 127, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Clear veda of applicant and directors</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(69, 2, 127, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n This is a note</p>\n<p>\n Test Note Application</p>\n<p>\n Application for farm Equipment</p>\n', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(70, 2, 128, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n This is a note</p>\n<p>\n Test Note Application</p>\n<p>\n Application for farm Equipment</p>\n', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(71, 2, 128, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does this application meet credit criteria? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(72, 2, 128, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client have ID? (Driver Licence and Medicare Card) - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(73, 2, 128, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has an Assets & Liability Statement been provided? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(74, 2, 128, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Is a credit reference available? - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(75, 2, 128, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has client been in business and registered for GST for 2+ years? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(76, 2, 128, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Are clients property owners? - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(77, 2, 128, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client and Entity have a clear credit history? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(78, 2, 128, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Application has met credit criteria</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(79, 2, 128, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Asset and liability provided</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(80, 2, 128, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Trading minimum of 3 years</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(81, 2, 128, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Clear veda of applicant and directors</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(82, 2, 128, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n This is a note</p>\n<p>\n Test Note Application</p>\n<p>\n Application for farm Equipment</p>\n', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(83, 2, 129, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n This is a note</p>\n<p>\n Test Note Application</p>\n<p>\n Application for farm Equipment</p>\n', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(84, 2, 129, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does this application meet credit criteria? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(85, 2, 129, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client have ID? (Driver Licence and Medicare Card) - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(86, 2, 129, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has an Assets & Liability Statement been provided? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(87, 2, 129, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Is a credit reference available? - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(88, 2, 129, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has client been in business and registered for GST for 2+ years? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(89, 2, 129, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Are clients property owners? - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(90, 2, 129, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client and Entity have a clear credit history? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(91, 2, 129, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Application has met credit criteria</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(92, 2, 129, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Asset and liability provided</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(93, 2, 129, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Trading minimum of 3 years</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(94, 2, 129, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Clear veda of applicant and directors</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(95, 2, 129, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n This is a note</p>\n<p>\n Test Note Application</p>\n<p>\n Application for farm Equipment</p>\n', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(96, 2, 130, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n This is a note</p>\n<p>\n Test Note Application</p>\n<p>\n Application for farm Equipment</p>\n', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(97, 2, 130, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does this application meet credit criteria? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(98, 2, 130, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client have ID? (Driver Licence and Medicare Card) - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(99, 2, 130, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has an Assets & Liability Statement been provided? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(100, 2, 130, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Is a credit reference available? - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(101, 2, 130, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has client been in business and registered for GST for 2+ years? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(102, 2, 130, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Are clients property owners? - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(103, 2, 130, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client and Entity have a clear credit history? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(104, 2, 130, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Application has met credit criteria</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(105, 2, 130, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Asset and liability provided</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(106, 2, 130, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Trading minimum of 3 years</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(107, 2, 130, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Clear veda of applicant and directors</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(108, 2, 130, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n This is a note</p>\n<p>\n Test Note Application</p>\n<p>\n Application for farm Equipment</p>\n', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(109, 2, 131, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n This is a note</p>\n<p>\n Test Note Application</p>\n<p>\n Application for farm Equipment</p>\n', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(110, 2, 131, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does this application meet credit criteria? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(111, 2, 131, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client have ID? (Driver Licence and Medicare Card) - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(112, 2, 131, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has an Assets & Liability Statement been provided? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(113, 2, 131, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Is a credit reference available? - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(114, 2, 131, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has client been in business and registered for GST for 2+ years? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(115, 2, 131, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Are clients property owners? - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(116, 2, 131, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client and Entity have a clear credit history? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(117, 2, 131, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Application has met credit criteria</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(118, 2, 131, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Asset and liability provided</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(119, 2, 131, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Trading minimum of 3 years</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(120, 2, 131, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Clear veda of applicant and directors</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(121, 2, 131, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n This is a note</p>\n<p>\n Test Note Application</p>\n<p>\n Application for farm Equipment</p>\n', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(122, 2, 132, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n This is a note</p>\n<p>\n Test Note Application</p>\n<p>\n Application for farm Equipment</p>\n', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(123, 2, 132, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does this application meet credit criteria? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(124, 2, 132, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client have ID? (Driver Licence and Medicare Card) - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(125, 2, 132, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has an Assets & Liability Statement been provided? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(126, 2, 132, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Is a credit reference available? - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(127, 2, 132, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has client been in business and registered for GST for 2+ years? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(128, 2, 132, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Are clients property owners? - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(129, 2, 132, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client and Entity have a clear credit history? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(130, 2, 132, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Application has met credit criteria</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(131, 2, 132, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Asset and liability provided</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(132, 2, 132, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Trading minimum of 3 years</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(133, 2, 132, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Clear veda of applicant and directors</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(134, 2, 132, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n This is a note</p>\n<p>\n Test Note Application</p>\n<p>\n Application for farm Equipment</p>\n', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(135, 2, 133, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n This is a note</p>\n<p>\n Test Note Application</p>\n<p>\n Application for farm Equipment</p>\n', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(136, 2, 133, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does this application meet credit criteria? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(137, 2, 133, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client have ID? (Driver Licence and Medicare Card) - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(138, 2, 133, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has an Assets & Liability Statement been provided? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(139, 2, 133, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Is a credit reference available? - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(140, 2, 133, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has client been in business and registered for GST for 2+ years? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(141, 2, 133, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Are clients property owners? - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(142, 2, 133, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client and Entity have a clear credit history? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(143, 2, 133, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Application has met credit criteria</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(144, 2, 133, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Asset and liability provided</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(145, 2, 133, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Trading minimum of 3 years</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(146, 2, 133, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Clear veda of applicant and directors</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(147, 2, 133, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n This is a note</p>\n<p>\n Test Note Application</p>\n<p>\n Application for farm Equipment</p>\n', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(148, 2, 134, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n This is a note</p>\n<p>\n Test Note Application</p>\n<p>\n Application for farm Equipment</p>\n', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(149, 2, 134, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does this application meet credit criteria? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(150, 2, 134, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client have ID? (Driver Licence and Medicare Card) - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(151, 2, 134, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has an Assets & Liability Statement been provided? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(152, 2, 134, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Is a credit reference available? - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(153, 2, 134, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has client been in business and registered for GST for 2+ years? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(154, 2, 134, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Are clients property owners? - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(155, 2, 134, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client and Entity have a clear credit history? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(156, 2, 134, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Application has met credit criteria</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(157, 2, 134, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Asset and liability provided</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(158, 2, 134, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Trading minimum of 3 years</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(159, 2, 134, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Clear veda of applicant and directors</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(160, 2, 134, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n This is a note</p>\n<p>\n Test Note Application</p>\n<p>\n Application for farm Equipment</p>\n', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(161, 2, 135, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n This is a note</p>\n<p>\n Test Note Application</p>\n<p>\n Application for farm Equipment</p>\n', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(162, 2, 135, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Clear veda of applicant and directors</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(163, 2, 135, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Trading minimum of 3 years</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(164, 2, 135, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Asset and liability provided</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(165, 2, 135, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Application has met credit criteria</b>', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(166, 2, 135, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client and Entity have a clear credit history? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(167, 2, 135, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Are clients property owners? - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(168, 2, 135, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has client been in business and registered for GST for 2+ years? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(169, 2, 135, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Is a credit reference available? - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes');
INSERT INTO `notes` (`ClientID`, `AgentID`, `RentalID`, `Type`, `note_type`, `future_finance`, `credit_history`, `bankrupt`, `assets_value`, `information`, `flexible_feature`, `additional_risk`, `low_credit_history`, `low_client_property`, `low_business_gst`, `low_credit_reference`, `low_ast_liablity`, `low_med_card`, `low_credit_criteria`, `full_credit_history`, `full_property`, `full_business_gst`, `full_credit_reference`, `full_ast_liability`, `full_financial`, `full_commitment`, `full_bank_statement`, `full_med_card`, `full_credit_criteria`, `Status`, `Notes`, `MessageFromHeadOfice1`, `background_comment`, `comment`, `delete_status`, `timestamp`, `user_id`, `added_type`) VALUES
(170, 2, 135, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has an Assets & Liability Statement been provided? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(171, 2, 135, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client have ID? (Driver Licence and Medicare Card) - No', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(172, 2, 135, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does this application meet credit criteria? - Yes', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(173, 2, 135, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n This is a note</p>\n<p>\n Test Note Application</p>\n<p>\n Application for farm Equipment</p>\n', '', '', '<p>\n It is a big ask</p>\n<p>\n to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(174, 2, 136, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n This is a note</p>\n<p>\n Test Note Application</p>\n<p>\n Application for farm Equipment</p>\n', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(175, 2, 136, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does this application meet credit criteria? - Yes', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(176, 2, 136, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client have ID? (Driver Licence and Medicare Card) - No', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(177, 2, 136, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has an Assets & Liability Statement been provided? - Yes', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(178, 2, 136, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Is a credit reference available? - No', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(179, 2, 136, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has client been in business and registered for GST for 2+ years? - Yes', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(180, 2, 136, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Are clients property owners? - No', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(181, 2, 136, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client and Entity have a clear credit history? - Yes', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(182, 2, 136, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Application has met credit criteria</b>', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(183, 2, 136, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Asset and liability provided</b>', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(184, 2, 136, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Trading minimum of 3 years</b>', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(185, 2, 136, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Clear veda of applicant and directors</b>', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(186, 2, 136, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n This is a note</p>\n<p>\n Test Note Application</p>\n<p>\n Application for farm Equipment</p>\n', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1696829311', 2, 'notes'),
(187, 2, 137, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n This is a note</p>\n<p>\n Test Note Application</p>\n<p>\n Application for farm Equipment</p>\n', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas should be saved in&nbsp; documents&nbsp;</p>\n', 0, '1696829311', 2, 'notes'),
(188, 2, 137, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does this application meet credit criteria? - Yes', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas should be saved in&nbsp; documents&nbsp;</p>\n', 0, '1696829311', 2, 'notes'),
(189, 2, 137, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client have ID? (Driver Licence and Medicare Card) - No', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas should be saved in&nbsp; documents&nbsp;</p>\n', 0, '1696829311', 2, 'notes'),
(190, 2, 137, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has an Assets & Liability Statement been provided? - Yes', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas should be saved in&nbsp; documents&nbsp;</p>\n', 0, '1696829311', 2, 'notes'),
(191, 2, 137, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Is a credit reference available? - No', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas should be saved in&nbsp; documents&nbsp;</p>\n', 0, '1696829311', 2, 'notes'),
(192, 2, 137, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Has client been in business and registered for GST for 2+ years? - Yes', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas should be saved in&nbsp; documents&nbsp;</p>\n', 0, '1696829311', 2, 'notes'),
(193, 2, 137, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Are clients property owners? - No', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas should be saved in&nbsp; documents&nbsp;</p>\n', 0, '1696829311', 2, 'notes'),
(194, 2, 137, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', 'Does client and Entity have a clear credit history? - Yes', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas should be saved in&nbsp; documents&nbsp;</p>\n', 0, '1696829311', 2, 'notes'),
(195, 2, 137, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Application has met credit criteria</b>', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas should be saved in&nbsp; documents&nbsp;</p>\n', 0, '1696829311', 2, 'notes'),
(196, 2, 137, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Asset and liability provided</b>', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas should be saved in&nbsp; documents&nbsp;</p>\n', 0, '1696829311', 2, 'notes'),
(197, 2, 137, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Trading minimum of 3 years</b>', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas should be saved in&nbsp; documents&nbsp;</p>\n', 0, '1696829311', 2, 'notes'),
(198, 2, 137, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<b>Clear veda of applicant and directors</b>', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas should be saved in&nbsp; documents&nbsp;</p>\n', 0, '1696829311', 2, 'notes'),
(199, 2, 137, 'Loan', 'Client', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '1', '<p>\n This is a note</p>\n<p>\n Test Note Application</p>\n<p>\n Application for farm Equipment</p>\n', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas should be saved in&nbsp; documents&nbsp;</p>\n', 0, '1696829311', 2, 'notes'),
(200, 0, 137, 'Loan', 'Loan', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '0', '<p>\n	rrrgyhuu</p>\n<p>\n	&nbsp;</p>\n', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas should be saved in&nbsp; documents&nbsp;</p>\n', 0, '1701314388', 2, 'notes'),
(201, 0, 123, 'Loan', 'Loan', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '0', '', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1697501869', 2, 'notes'),
(202, 0, 136, 'Loan', 'Loan', '', '', '', '', '', '', '', 'Yes', 'No', 'Yes', 'No', 'Yes', 'No', 'Yes', '', '', '', '', '', '', '', '', '', '', '0', '', '', '', '<p>\n	It is a big ask</p>\n<p>\n	to sell bannanas.</p>\n', 0, '1700700525', 2, 'notes');

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

--
-- Table structure for table `notices`
--

CREATE TABLE `notices` (
  `id` int(11) NOT NULL,
  `company_id` int(11) NOT NULL,
  `create_type` varchar(150) NOT NULL COMMENT 'admin/subadmin',
  `sender_id` int(11) NOT NULL,
  `subject` varchar(255) NOT NULL,
  `content` longtext NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0' COMMENT '0=>active, 1=>inactive',
  `timestamp` varchar(50) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `notifications`
--

CREATE TABLE `notifications` (
  `id` int(11) NOT NULL,
  `message` text NOT NULL,
  `time_` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `user` int(11) NOT NULL,
  `type` enum('decline','accept','warning') NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `notifications`
--

INSERT INTO `notifications` (`id`, `message`, `time_`, `user`, `type`) VALUES
(1, '<span class=\"text-primary\">kerry@datasafeapps.com.au</span> has opened the email signing requests sent for this <a href=\"/document/VPdh5yYuYqejc9GLu5ILPgC9vysgAmPN\">document</a>.', '2023-02-28 23:53:55', 2, 'warning'),
(2, '<span class=\"text-primary\">kerry Regan</span> has signed <a href=\"/document/VPdh5yYuYqejc9GLu5ILPgC9vysgAmPN\">document</a> successfully.', '2023-02-28 23:54:14', 2, 'accept'),
(3, '<span class=\"text-primary\">Kav Kav</span> has signed <a href=\"/document/vHeIOZTflOUGSpDWdkwBe0krSCVSvDn0\">document</a> successfully.', '2023-03-12 17:49:27', 2, 'accept'),
(4, '<span class=\"text-primary\">jitsZCF</span> has signed <a href=\"/document/uAU8scvdkPEae1Zv2KZfmAULPDsrQiZS\">document</a> successfully.', '2023-03-12 18:14:45', 2, 'accept'),
(5, '<span class=\"text-primary\">urytk  yrukr</span> has signed <a href=\"/document/UWW9erRAPYKimSpVTZA2c92rDBg0pTnd\">document</a> successfully.', '2023-03-13 18:25:28', 3, 'accept'),
(6, '<span class=\"text-primary\">Kav Kav</span> has signed <a href=\"/document/fxMGcstUNXiAcfX3Us8MV4h1lElYZmwJ\">document</a> successfully.', '2023-03-13 19:20:36', 2, 'accept'),
(7, '<span class=\"text-primary\">yessh</span> has signed <a href=\"/document/fE46vuLP0ejXntawzfpyP5iqi7glLJLP\">document</a> successfully.', '2023-03-13 19:27:58', 2, 'accept'),
(8, '<span class=\"text-primary\">fdhgdh</span> has signed <a href=\"/document/FmNzlh2JbDpKnblGO73pWNwYm8FUWzRZ\">document</a> successfully.', '2023-03-13 19:36:31', 2, 'accept'),
(9, '<span class=\"text-primary\">fdhgdh</span> has signed <a href=\"/document/vwWoFCQ5Xs9HJgQ8bDiJvrv0wxq1bowk\">document</a> successfully.', '2023-03-13 19:47:35', 2, 'accept'),
(10, '<span class=\"text-primary\">fdhgdh</span> has signed <a href=\"/document/dqLcPboiAhzgaxf2GGYZH6cwDHMh14eY\">document</a> successfully.', '2023-03-13 19:55:31', 2, 'accept'),
(11, '<span class=\"text-primary\">fdhgdh</span> has signed <a href=\"/document/DU80azCeo4lJy0fTYayBmvGrssprSZsX\">document</a> successfully.', '2023-03-13 21:14:53', 2, 'accept'),
(12, '<span class=\"text-primary\">Sdhsdhsd  Hahaha</span> has signed <a href=\"/document/DU80azCeo4lJy0fTYayBmvGrssprSZsX\">document</a> successfully.', '2023-03-13 21:24:14', 2, 'accept'),
(13, '<span class=\"text-primary\">mb</span> has signed <a href=\"/document/zyVd6A58Uq1AcpFMnpFyEfbMCIiSl83H\">document</a> successfully.', '2023-03-13 21:38:01', 2, 'accept'),
(14, '<span class=\"text-primary\">4242</span> has signed <a href=\"/document/URQPD5d7SsYHBVEs249vqA6vjLJD778U\">document</a> successfully.', '2023-03-13 21:41:40', 2, 'accept'),
(15, '<span class=\"text-primary\">4242</span> has signed <a href=\"/document/URQPD5d7SsYHBVEs249vqA6vjLJD778U\">document</a> successfully.', '2023-03-13 21:44:06', 2, 'accept'),
(16, '<span class=\"text-primary\">4242</span> has signed <a href=\"/document/URQPD5d7SsYHBVEs249vqA6vjLJD778U\">document</a> successfully.', '2023-03-13 21:44:46', 2, 'accept'),
(17, '<span class=\"text-primary\">4242</span> has signed <a href=\"/document/URQPD5d7SsYHBVEs249vqA6vjLJD778U\">document</a> successfully.', '2023-03-13 21:46:16', 2, 'accept'),
(18, '<span class=\"text-primary\">4242</span> has signed <a href=\"/document/URQPD5d7SsYHBVEs249vqA6vjLJD778U\">document</a> successfully.', '2023-03-13 21:47:29', 2, 'accept'),
(19, '<span class=\"text-primary\">jits</span> has signed <a href=\"/document/tsmV5FfcEcAgOl8gxWAQqQNaaTg0IyH2\">document</a> successfully.', '2023-03-13 23:10:41', 2, 'accept'),
(20, '<span class=\"text-primary\">jits</span> has signed <a href=\"/document/HxfPUYFEqHXpk1waCNNOqWizgn1D8ph1\">document</a> successfully.', '2023-03-13 23:17:37', 2, 'accept'),
(21, '<span class=\"text-primary\">kerry@datasafeapps.com.au</span> has opened the email signing requests sent for this <a href=\"/document/GipznbYy3ZhgfTfTbE4cnEOnYv2NFTEp\">document</a>.', '2023-03-16 01:27:25', 2, 'warning'),
(22, '<span class=\"text-primary\">kerry Regan</span> has signed <a href=\"/document/GipznbYy3ZhgfTfTbE4cnEOnYv2NFTEp\">document</a> successfully.', '2023-03-16 01:28:04', 2, 'accept'),
(23, '<span class=\"text-primary\">jitu</span> has signed <a href=\"/document/ropxZQt3umPXFkluHiUpjQbL5Ydpd5T9\">document</a> successfully.', '2023-03-15 16:41:00', 2, 'accept'),
(24, '<span class=\"text-primary\">vchfghjf</span> has signed <a href=\"/document/OiHY4vhxhmDolBo9LH93Y2x5g60VDFLQ\">document</a> successfully.', '2023-03-15 18:43:35', 2, 'accept'),
(25, '<span class=\"text-primary\">ghghg</span> has signed <a href=\"/document/N2t2fnpsk9RVsc6AhWPBzYtWic2adl9K\">document</a> successfully.', '2023-03-15 18:44:57', 2, 'accept'),
(26, '<span class=\"text-primary\">dafgf</span> has signed <a href=\"/document/gKY7h9mMckW91V84wxbkz45PuwUQVPOd\">document</a> successfully.', '2023-03-15 19:20:16', 2, 'accept'),
(27, '<span class=\"text-primary\">ggv</span> has signed <a href=\"/document/LHwDo4RotsjAYQvJBP47lM0RN8uK2JKE\">document</a> successfully.', '2023-03-15 19:24:03', 2, 'accept'),
(28, '<span class=\"text-primary\">sdaVF</span> has signed <a href=\"/document/xCkmmlLgNMS2vADi2pxp8lM33AKx6kum\">document</a> successfully.', '2023-03-15 21:00:16', 2, 'accept'),
(29, '<span class=\"text-primary\">mmm</span> has signed <a href=\"/document/YzKPTomLqBLpY7hWaonE76TMFRt4qs8Z\">document</a> successfully.', '2023-03-15 21:08:05', 2, 'accept'),
(30, '<span class=\"text-primary\">xcg</span> has signed <a href=\"/document/qmTgZLPlpiZ4lPVS6wOt5zh7U9mX8Rzz\">document</a> successfully.', '2023-03-15 21:29:58', 2, 'accept'),
(31, '<span class=\"text-primary\">anu</span> has signed <a href=\"/document/MrROxIuDszcnkmBo7IG6DmMrWme6Wqy6\">document</a> successfully.', '2023-03-15 22:27:21', 2, 'accept'),
(32, '<span class=\"text-primary\">kuldeep</span> has signed <a href=\"/document/rKg6ggBLLtmhwg6tNeoOEYRsLBidPEVp\">document</a> successfully.', '2023-03-15 22:34:38', 2, 'accept'),
(33, '<span class=\"text-primary\">kuldeep</span> has signed <a href=\"/document/fU2azJmfTjnpU70WiLPkuooTIXXKZ21q\">document</a> successfully.', '2023-03-15 22:36:29', 2, 'accept'),
(34, '<span class=\"text-primary\">kuldeep</span> has signed <a href=\"/document/y4klkzMJmtmn5Wtv5q3hycLoQWoynf8t\">document</a> successfully.', '2023-03-15 22:38:13', 2, 'accept'),
(35, '<span class=\"text-primary\">puneet</span> has signed <a href=\"/document/CRyjV7NLLv2GgYHwWoXLAYQ7S2TrTtTz\">document</a> successfully.', '2023-03-16 16:23:30', 2, 'accept'),
(36, '<span class=\"text-primary\">zsdgeg  sdgasdg</span> has signed <a href=\"/document/VFbRmMQabEfdqFDWNMJE0YxUtlmCJVyG\">document</a> successfully.', '2023-03-16 21:32:45', 3, 'accept');

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

--
-- Table structure for table `occupation_1`
--

CREATE TABLE `occupation_1` (
  `ClientID` int(6) NOT NULL,
  `Employer1` int(30) NOT NULL,
  `Phone4_1` int(10) NOT NULL,
  `Address2` varchar(30) NOT NULL,
  `Address2B` varchar(30) NOT NULL,
  `Suburb2_1` varchar(20) NOT NULL,
  `Postcode` int(4) NOT NULL,
  `State1` varchar(3) NOT NULL,
  `Contact` varchar(15) NOT NULL,
  `Phone4_2` int(10) NOT NULL,
  `Employer2` varchar(30) NOT NULL,
  `Address3` varchar(30) NOT NULL,
  `Address3B` varchar(30) NOT NULL,
  `Suburb2_2` varchar(20) NOT NULL,
  `Postcode2` int(4) NOT NULL,
  `State2` varchar(3) NOT NULL,
  `Contact2` varchar(15) NOT NULL,
  `Phone5` int(10) NOT NULL,
  `Occupation1` varchar(20) NOT NULL,
  `TimeEmployed` int(11) NOT NULL,
  `Occupation2` varchar(20) NOT NULL,
  `TimeEmployed2` int(11) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `occupation_2`
--

CREATE TABLE `occupation_2` (
  `ClientID` int(6) NOT NULL,
  `Employer3` varchar(30) NOT NULL,
  `Phone8_1` int(10) NOT NULL,
  `Address5` varchar(30) NOT NULL,
  `Address5B` varchar(30) NOT NULL,
  `Suburb2c_1` varchar(20) NOT NULL,
  `Postcode2c_1` int(4) NOT NULL,
  `State2c_1` varchar(3) NOT NULL,
  `Contact3` varchar(15) NOT NULL,
  `Phone8_2` int(10) NOT NULL,
  `Employer4` varchar(30) NOT NULL,
  `Address6` varchar(30) NOT NULL,
  `Address6B` varchar(30) NOT NULL,
  `Suburb2c_2` varchar(20) NOT NULL,
  `Postcode2c_2` int(4) NOT NULL,
  `State2c_2` varchar(3) NOT NULL,
  `Contact4` varchar(15) NOT NULL,
  `Phone9` int(10) NOT NULL,
  `Occupation3` varchar(20) NOT NULL,
  `TimeEmployed3` int(11) NOT NULL,
  `Occupation4` varchar(20) NOT NULL,
  `TimeEmployed4` int(11) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `offers`
--

CREATE TABLE `offers` (
  `id` int(100) NOT NULL,
  `offer` text NOT NULL,
  `store_id` int(11) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '1' COMMENT '1=>active, 0=> inactive',
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `other_assets`
--

CREATE TABLE `other_assets` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `description` varchar(250) NOT NULL,
  `make_model` varchar(150) NOT NULL,
  `ownership` varchar(150) NOT NULL,
  `value` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `director_number` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `other_assets`
--

INSERT INTO `other_assets` (`id`, `RentalID`, `description`, `make_model`, `ownership`, `value`, `status`, `timestamp`, `date`, `director_number`) VALUES
(1, 101, '', '', '', '', 0, '1674026546', '2023-01-10 11:10:39', 'one'),
(2, 102, '', '', '', '', 0, '1674212372', '2023-01-20 10:59:32', 'one'),
(3, 103, '', '', '', '', 0, '1674564245', '2023-01-24 12:44:05', 'one'),
(4, 105, '', '', '', '', 0, '1677653647', '2023-03-01 06:54:07', 'one'),
(5, 106, '', '', '', '', 0, '1677664242', '2023-03-01 09:50:34', 'one'),
(6, 111, '', '', '', '', 0, '1678099367', '2023-03-06 05:49:14', 'one'),
(7, 112, '', '', '', '', 0, '1678362010', '2023-03-09 04:15:29', 'one'),
(8, 113, '', '', '', '', 0, '1678361005', '2023-03-09 10:33:07', 'one'),
(9, 115, '', '', '', '', 0, '1678423301', '2023-03-10 04:41:41', 'one'),
(10, 114, '', '', '', '', 0, '1678687664', '2023-03-13 06:07:44', 'one'),
(11, 114, '', '', '', '', 0, '1678687664', '2023-03-13 06:07:44', 'one'),
(12, 116, '', '', '', '', 0, '1678700692', '2023-03-13 09:15:43', 'one'),
(13, 119, '', '', '', '', 0, '1678790107', '2023-03-13 12:26:17', 'one'),
(14, 120, '', '', '', '', 0, '1678859740', '2023-03-14 07:46:38', 'one'),
(15, 121, '', '', '', '', 0, '1678953095', '2023-03-16 07:51:35', 'one'),
(16, 122, '', '', '', '', 0, '1679050568', '2023-03-17 00:08:03', 'one'),
(17, 107, '', '', '', '', 0, '1681787755', '2023-04-18 03:15:55', 'one'),
(18, 123, 'shop fitting', 'werty', '100', '30,000', 0, '1697453008', '2023-04-18 23:29:07', 'one'),
(19, 124, '', '', '', '', 0, '1689901421', '2023-07-18 11:18:18', 'one'),
(20, 123, '', '', '', '', 0, '1695885761', '2023-09-28 07:22:41', 'three'),
(21, 123, '', '', '', '', 0, '1696827610', '2023-10-09 04:24:23', 'two'),
(22, 125, '', '', '', '', 0, '1696828570', '2023-10-09 05:16:10', 'one'),
(23, 137, '', '', '', '', 0, '1701316855', '2023-11-30 00:35:12', 'one'),
(24, 137, '', '', '', '', 0, '1701316855', '2023-11-30 04:00:55', 'one');

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

--
-- Table structure for table `other_expenses_client1`
--

CREATE TABLE `other_expenses_client1` (
  `other_exp_id` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(150) NOT NULL COMMENT 'loan/rent',
  `private_medical` varchar(255) NOT NULL,
  `medical_expenses` varchar(200) NOT NULL,
  `house_contents_insaurance` varchar(200) NOT NULL,
  `funeral_life_insaurance` varchar(200) NOT NULL,
  `vehicle_insaurance` varchar(200) NOT NULL,
  `vehicle_registration` varchar(200) NOT NULL,
  `petrol` varchar(200) NOT NULL,
  `tyres_repaires_maintenance` varchar(200) NOT NULL,
  `bus_train_taxis` varchar(200) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `other_expenses_client2`
--

CREATE TABLE `other_expenses_client2` (
  `other_exp_id` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(150) NOT NULL COMMENT 'loan/rent',
  `private_medical` varchar(200) NOT NULL,
  `medical_expenses` varchar(200) NOT NULL,
  `house_contents_insaurance` varchar(200) NOT NULL,
  `funeral_life_insaurance` varchar(200) NOT NULL,
  `vehicle_insaurance` varchar(200) NOT NULL,
  `vehicle_registration` varchar(200) NOT NULL,
  `petrol` varchar(200) NOT NULL,
  `tyres_repaires_maintenance` varchar(200) NOT NULL,
  `bus_train_taxis` varchar(200) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `other_expenses_incomes`
--

CREATE TABLE `other_expenses_incomes` (
  `id` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(255) NOT NULL COMMENT 'loan/rent',
  `type_expense_incomes` varchar(255) NOT NULL COMMENT 'income/benefits/expenses/personal_expenses/children/entertainment/others',
  `name` varchar(255) NOT NULL,
  `client1` varchar(255) NOT NULL,
  `client2` varchar(255) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `other_liability`
--

CREATE TABLE `other_liability` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `lender` varchar(150) NOT NULL,
  `pro_limit` varchar(50) NOT NULL,
  `term` varchar(70) NOT NULL,
  `payment` varchar(150) NOT NULL,
  `description` varchar(200) NOT NULL,
  `ownership` varchar(150) NOT NULL,
  `balance` varchar(50) NOT NULL,
  `value` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `director_number` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `other_liability`
--

INSERT INTO `other_liability` (`id`, `RentalID`, `lender`, `pro_limit`, `term`, `payment`, `description`, `ownership`, `balance`, `value`, `status`, `timestamp`, `date`, `director_number`) VALUES
(1, 101, '', '', '', '', '', '', '', '', 0, '1674026546', '2023-01-10 11:10:39', 'one'),
(2, 102, '', '', '', '', '', '', '', '', 0, '1674212372', '2023-01-20 10:59:32', 'one'),
(3, 103, '', '', '', '', '', '', '', '', 0, '1674564245', '2023-01-24 12:44:05', 'one'),
(4, 105, '', '', '', '', '', '', '', '', 0, '1677653647', '2023-03-01 06:54:07', 'one'),
(5, 106, '', '', '', '', '', '', '', '', 0, '1677664242', '2023-03-01 09:50:34', 'one'),
(6, 111, '', '', '', '', '', '', '', '', 0, '1678099367', '2023-03-06 05:49:14', 'one'),
(7, 112, '', '', '', '', '', '', '', '', 0, '1678362010', '2023-03-09 04:15:29', 'one'),
(8, 113, '', '', '', '', '', '', '', '', 0, '1678361005', '2023-03-09 10:33:07', 'one'),
(9, 115, '', '', '', '', '', '', '', '', 0, '1678423301', '2023-03-10 04:41:41', 'one'),
(10, 114, '', '', '', '', '', '', '', '', 0, '1678687664', '2023-03-13 06:07:44', 'one'),
(11, 116, '', '', '', '', '', '', '', '', 0, '1678700692', '2023-03-13 09:15:43', 'one'),
(12, 119, '', '', '', '', '', '', '', '', 0, '1678790107', '2023-03-13 12:26:17', 'one'),
(13, 120, '', '', '', '', '', '', '', '', 0, '1678859740', '2023-03-14 07:46:38', 'one'),
(14, 121, '', '', '', '', '', '', '', '', 0, '1678953095', '2023-03-16 07:51:35', 'one'),
(15, 122, '', '', '', '', '', '', '', '', 0, '1679050568', '2023-03-17 00:08:03', 'one'),
(16, 107, '', '', '', '', '', '', '', '', 0, '1681787755', '2023-04-18 03:15:55', 'one'),
(17, 123, 'rex', '300', '10', '200', 'Short cash loan', '100', 'No', '100', 0, '1697453008', '2023-04-18 23:29:07', 'one'),
(18, 124, '', '', '', '', '', '', '', '', 0, '1689901421', '2023-07-18 11:18:18', 'one'),
(19, 123, '', '', '', '', '', '', '', '', 0, '1695885761', '2023-09-28 07:22:41', 'three'),
(20, 123, '', '', '', '', '', '', '', '', 0, '1696827610', '2023-10-09 04:24:23', 'two'),
(21, 125, '', '', '', '', '', '', '', '', 0, '1696828570', '2023-10-09 05:16:10', 'one'),
(22, 137, '', '', '', '', '', '', '', '', 0, '1701316855', '2023-11-30 00:35:12', 'one'),
(23, 137, '', '', '', '', '', '', '', '', 0, '1701316855', '2023-11-30 04:00:55', 'one'),
(24, 137, '', '', '', '', '', '', '', '', 0, '1701316855', '2023-11-30 04:00:55', 'one'),
(25, 137, '', '', '', '', '', '', '', '', 0, '1701316855', '2023-11-30 04:00:55', 'one');

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

--
-- Table structure for table `personal_expenses_client1`
--

CREATE TABLE `personal_expenses_client1` (
  `personal_expense_id` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(150) NOT NULL COMMENT 'loan/rent',
  `clothes` varchar(200) NOT NULL,
  `tobacco` varchar(200) NOT NULL,
  `drinks` varchar(200) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `personal_expenses_client2`
--

CREATE TABLE `personal_expenses_client2` (
  `personal_expens` int(11) NOT NULL,
  `loan_rent_id` int(11) NOT NULL,
  `type` varchar(150) NOT NULL COMMENT 'loan/rent',
  `clothes` varchar(200) NOT NULL,
  `tobacco` varchar(200) NOT NULL,
  `drinks` varchar(200) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `personal_liability`
--

CREATE TABLE `personal_liability` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `lender` varchar(150) NOT NULL,
  `pro_limit` varchar(50) NOT NULL,
  `term` varchar(70) NOT NULL,
  `payment` varchar(150) NOT NULL,
  `description` varchar(200) NOT NULL,
  `ownership` varchar(150) NOT NULL,
  `balance` varchar(50) NOT NULL,
  `value` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `director_number` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `personal_liability`
--

INSERT INTO `personal_liability` (`id`, `RentalID`, `lender`, `pro_limit`, `term`, `payment`, `description`, `ownership`, `balance`, `value`, `status`, `timestamp`, `date`, `director_number`) VALUES
(1, 101, '', '', '', '', '', '', '', '', 0, '1674026546', '2023-01-10 11:10:39', 'one'),
(2, 102, '', '', '', '', '', '', '', '', 0, '1674212372', '2023-01-20 10:59:32', 'one'),
(3, 103, '', '', '', '', '', '', '', '', 0, '1674564245', '2023-01-24 12:44:05', 'one'),
(4, 105, '', '', '', '', '', '', '', '', 0, '1677653647', '2023-03-01 06:54:07', 'one'),
(5, 106, '', '', '', '', '', '', '', '', 0, '1677664242', '2023-03-01 09:50:34', 'one'),
(6, 111, '', '', '', '', '', '', '', '', 0, '1678099367', '2023-03-06 05:49:14', 'one'),
(7, 112, '', '', '', '', '', '', '', '', 0, '1678362010', '2023-03-09 04:15:29', 'one'),
(8, 113, '', '', '', '', '', '', '', '', 0, '1678361005', '2023-03-09 10:33:07', 'one'),
(9, 115, '', '', '', '', '', '', '', '', 0, '1678423301', '2023-03-10 04:41:41', 'one'),
(10, 114, '', '', '', '', '', '', '', '', 0, '1678687664', '2023-03-13 06:07:44', 'one'),
(11, 116, '', '', '', '', '', '', '', '', 0, '1678700692', '2023-03-13 09:15:43', 'one'),
(12, 119, '', '', '', '', '', '', '', '', 0, '1678790107', '2023-03-13 12:26:17', 'one'),
(13, 120, '', '', '', '', '', '', '', '', 0, '1678859740', '2023-03-14 07:46:38', 'one'),
(14, 121, '', '', '', '', '', '', '', '', 0, '1678953095', '2023-03-16 07:51:35', 'one'),
(15, 122, '', '', '', '', '', '', '', '', 0, '1679050568', '2023-03-17 00:08:03', 'one'),
(16, 107, '', '', '', '', '', '', '', '', 0, '1681787755', '2023-04-18 03:15:55', 'one'),
(17, 123, 'cOMM', '10,000', '12', '120', 'iNTEREST oNLY', '100', 'nO', '5,600', 0, '1697453008', '2023-04-18 23:29:07', 'one'),
(18, 124, '', '', '', '', '', '', '', '', 0, '1689901421', '2023-07-18 11:18:18', 'one'),
(19, 123, '', '', '', '', '', '', '', '', 0, '1695885761', '2023-09-28 07:22:41', 'three'),
(20, 123, '', '', '', '', '', '', '', '', 0, '1696827610', '2023-10-09 04:24:23', 'two'),
(21, 125, '', '', '', '', '', '', '', '', 0, '1696828570', '2023-10-09 05:16:10', 'one'),
(22, 137, '', '', '', '', '', '', '', '', 0, '1701316855', '2023-11-30 00:35:12', 'one'),
(23, 137, '', '', '', '', '', '', '', '', 0, '1701316855', '2023-11-30 04:00:55', 'one');

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

--
-- Table structure for table `polices`
--

CREATE TABLE `polices` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `type` varchar(30) NOT NULL,
  `file` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `price_calculation`
--

CREATE TABLE `price_calculation` (
  `id` int(11) NOT NULL,
  `store_id` int(11) NOT NULL,
  `wk_26` varchar(25) NOT NULL DEFAULT '0',
  `wk_52` varchar(25) NOT NULL DEFAULT '0',
  `wk_78` varchar(25) NOT NULL DEFAULT '0',
  `wk_104` varchar(25) NOT NULL DEFAULT '0',
  `wk_130` varchar(25) NOT NULL DEFAULT '0',
  `wk_156` varchar(25) NOT NULL DEFAULT '0',
  `wk_208` varchar(25) NOT NULL DEFAULT '0',
  `wk_260` varchar(25) NOT NULL DEFAULT '0',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `privacy_details`
--

CREATE TABLE `privacy_details` (
  `id` int(11) NOT NULL,
  `rent_loan_id` int(11) NOT NULL,
  `type` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '1' COMMENT '1=>accepted , 0=>denied',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `property_assets`
--

CREATE TABLE `property_assets` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `address` varchar(255) NOT NULL,
  `suburb` varchar(150) NOT NULL,
  `state` varchar(200) NOT NULL,
  `postcode` varchar(50) NOT NULL,
  `description` varchar(255) NOT NULL,
  `ownership` varchar(200) NOT NULL,
  `value` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0' COMMENT '0=>not deleted, 1=>deleted',
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `director_number` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `property_assets`
--

INSERT INTO `property_assets` (`id`, `RentalID`, `address`, `suburb`, `state`, `postcode`, `description`, `ownership`, `value`, `status`, `timestamp`, `delete_status`, `date`, `director_number`) VALUES
(1, 101, 'sadsadasd', '', '', '1231', '', '', '', 0, '1674026545', 0, '2023-01-10 11:10:39', 'one'),
(2, 102, 'ssfdfdfd', '', '', '1561', '', '', '', 0, '1674212372', 0, '2023-01-20 10:59:32', 'one'),
(3, 103, 'fgdfdsfghdghhfbbb  gghggb  fdfgfgdffgd  ', '', '', '4989', '', '', '', 0, '1674564245', 0, '2023-01-24 12:44:05', 'one'),
(4, 105, 'dfdfgdg', '', '', '4242', '', '', '', 0, '1677653647', 0, '2023-03-01 06:54:07', 'one'),
(5, 106, 'dfh', '', '', '5555', '', '', '', 0, '1677664242', 0, '2023-03-01 09:50:34', 'one'),
(6, 111, 'erhgtbr', 'dfs', 'ACT', '2345', '', '', '', 0, '1678099367', 0, '2023-03-06 05:49:14', 'one'),
(7, 112, 'dfghrturu', 'vzas', 'ACT', '3634', '', '', '', 0, '1678362010', 0, '2023-03-09 04:15:29', 'one'),
(8, 113, 'asgvavg', 'zbzasba', 'ACT', '5734', '', '', '', 0, '1678361005', 0, '2023-03-09 10:33:07', 'one'),
(9, 115, 'dfghrturu', 'vzas', 'ACT', '3634', '', '', '', 0, '1678423301', 0, '2023-03-10 04:41:41', 'one'),
(10, 114, 'dfydtu', 'safsa', 'NSW', '3462', '', '', '', 0, '1678687664', 0, '2023-03-13 06:07:44', 'one'),
(11, 116, 'dfydtu', 'safsa', 'NSW', '3462', '', '', '', 0, '1678700692', 0, '2023-03-13 09:15:43', 'one'),
(12, 119, 'xczxcxccx', '', '', '9559', '', '', '', 0, '1678790107', 0, '2023-03-13 12:26:17', 'one'),
(13, 120, 'zxvbzd', 'dbgz', 'ACT', '3462', '', '', '', 0, '1678859740', 0, '2023-03-14 07:46:38', 'one'),
(14, 121, 'erhgtbr', 'dfs', 'ACT', '2345', '', '', '', 0, '1678953095', 0, '2023-03-16 07:51:35', 'one'),
(15, 122, 'dasaf', 'safsa', 'ACT', '3462', '', '', '', 0, '1679050568', 0, '2023-03-17 00:08:03', 'one'),
(16, 107, '415/66 Sickle Ave', 'Hope Island', 'QLD', '4210', '', '', '', 0, '1681787755', 0, '2023-04-18 03:15:55', 'one'),
(17, 123, '615/66 Sickle Ave ', 'Hope Island', 'QLD', '4212', '', '', '5,000,000', 0, '1697453008', 0, '2023-04-18 23:29:07', 'one'),
(18, 124, '23 fifth ave ', 'Palmbeach', 'QLD', '4221', '', '', '900,000', 0, '1689901421', 0, '2023-07-18 11:18:18', 'one'),
(19, 123, '', '', '', '', '', '', '', 0, '1697453008', 0, '2023-07-24 04:53:12', 'one'),
(20, 123, '21 rat heap', 'oxenford', 'QLD', '4210', '', '', '', 0, '1695885761', 0, '2023-09-28 07:22:41', 'three'),
(21, 123, '2/54 Sarawak Ave', 'Palm Beach', 'QLD', '4221', 'unit', '', '', 0, '1696827610', 0, '2023-10-09 04:24:23', 'two'),
(22, 125, '615/66 Sickle Ave ', 'Hope Island', 'QLD', '4212', '', '', '5,000,000', 0, '1696828570', 0, '2023-10-09 05:16:10', 'one'),
(23, 137, '615/66 Sickle Ave ', 'Hope Island', 'QLD', '4212', '', '', '5,000,000', 0, '1701316855', 0, '2023-11-30 00:35:12', 'one'),
(24, 137, '', '', '', '', '', '', '', 0, '1701316855', 0, '2023-11-30 04:00:55', 'one'),
(25, 137, '', '', '', '', '', '', '', 0, '1701316855', 0, '2023-11-30 04:00:55', 'one');

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

--
-- Table structure for table `property_liability`
--

CREATE TABLE `property_liability` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `lender` varchar(150) NOT NULL,
  `prop_limit` varchar(70) NOT NULL,
  `term` varchar(50) NOT NULL,
  `payment` varchar(100) NOT NULL,
  `description` varchar(225) NOT NULL,
  `ownership` varchar(150) NOT NULL,
  `balance` varchar(50) NOT NULL,
  `value` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `director_number` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `property_liability`
--

INSERT INTO `property_liability` (`id`, `RentalID`, `lender`, `prop_limit`, `term`, `payment`, `description`, `ownership`, `balance`, `value`, `status`, `timestamp`, `date`, `director_number`) VALUES
(1, 101, '', '', '', '', '', '', '', '', 0, '1674026546', '2023-01-10 11:10:39', 'one'),
(2, 102, '', '', '', '', '', '', '', '', 0, '1674212372', '2023-01-20 10:59:32', 'one'),
(3, 103, '', '', '', '', '', '', '', '', 0, '1674564245', '2023-01-24 12:44:05', 'one'),
(4, 105, '', '', '', '', '', '', '', '', 0, '1677653647', '2023-03-01 06:54:07', 'one'),
(5, 106, '', '', '', '', '', '', '', '', 0, '1677664242', '2023-03-01 09:50:34', 'one'),
(6, 111, '', '', '', '', '', '', '', '', 0, '1678099367', '2023-03-06 05:49:14', 'one'),
(7, 112, '', '', '', '', '', '', '', '', 0, '1678362010', '2023-03-09 04:15:29', 'one'),
(8, 113, '', '', '', '', '', '', '', '', 0, '1678361005', '2023-03-09 10:33:07', 'one'),
(9, 115, '', '', '', '', '', '', '', '', 0, '1678423301', '2023-03-10 04:41:41', 'one'),
(10, 114, '', '', '', '', '', '', '', '', 0, '1678687664', '2023-03-13 06:07:44', 'one'),
(11, 116, '', '', '', '', '', '', '', '', 0, '1678700692', '2023-03-13 09:15:43', 'one'),
(12, 119, '', '', '', '', '', '', '', '', 0, '1678790107', '2023-03-13 12:26:17', 'one'),
(13, 120, '', '', '', '', '', '', '', '', 0, '1678859740', '2023-03-14 07:46:38', 'one'),
(14, 121, '', '', '', '', '', '', '', '', 0, '1678953095', '2023-03-16 07:51:35', 'one'),
(15, 122, '', '', '', '', '', '', '', '', 0, '1679050568', '2023-03-17 00:08:03', 'one'),
(16, 107, '', '', '', '', '', '', '', '', 0, '1681787755', '2023-04-18 03:15:55', 'one'),
(17, 123, 'Better Home Loan', '5,000,000', '24', '5,000', '', '100', 'Afrt', '4,500,000', 0, '1697453008', '2023-04-18 23:29:07', 'one'),
(18, 124, 'freedom Mortgages', '', '', '', '', '', '', '250,000', 0, '1689901421', '2023-07-18 11:18:18', 'one'),
(19, 123, '', '', '', '', '', '', '', '', 0, '1695885761', '2023-09-28 07:22:41', 'three'),
(20, 123, '', '', '', '', '', '', '', '', 0, '1696827610', '2023-10-09 04:24:23', 'two'),
(21, 125, 'Better Home Finance', '', '', '', '', '', '', '4,500,000', 0, '1696828570', '2023-10-09 05:16:10', 'one'),
(22, 137, 'Better Home Finance', '', '', '', '', '', '', '4,500,000', 0, '1701316855', '2023-11-30 00:35:12', 'one'),
(23, 137, '', '', '', '', '', '', '', '', 0, '1701316855', '2023-11-30 04:00:55', 'one');

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

--
-- Table structure for table `proposal_data_detail`
--

CREATE TABLE `proposal_data_detail` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `company_id` int(11) NOT NULL,
  `loan_writer` varchar(50) NOT NULL,
  `authorised_credit` varchar(50) NOT NULL,
  `representative_name` varchar(50) NOT NULL,
  `tranding_name` varchar(50) NOT NULL,
  `tranding_description` varchar(50) NOT NULL,
  `trading_phone` varchar(20) NOT NULL,
  `trading_fax` varchar(20) NOT NULL,
  `trading_mobile` varchar(20) NOT NULL,
  `treding_email` varchar(20) NOT NULL,
  `australian_credit_licence` varchar(50) NOT NULL,
  `australian_company` varchar(40) NOT NULL,
  `number_of_acl_holder` varchar(20) NOT NULL,
  `financial_institutions` text NOT NULL,
  `fees_charges` text NOT NULL,
  `complate_name` varchar(50) NOT NULL,
  `complate_phone` varchar(20) NOT NULL,
  `complate_email` varchar(20) NOT NULL,
  `complate_address` varchar(250) NOT NULL,
  `licensee_name` varchar(40) NOT NULL,
  `licensee_phone` varchar(30) NOT NULL,
  `licensee_address` varchar(100) NOT NULL,
  `loan_writer_signature` varchar(50) NOT NULL,
  `loan_writer_signature_date` varchar(30) NOT NULL,
  `client_one_signature` varchar(50) NOT NULL,
  `client_one_signature_date` varchar(30) NOT NULL,
  `client_two_signature` varchar(50) NOT NULL,
  `client_two_signature_date` varchar(30) NOT NULL,
  `created_at` varchar(20) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `quote_no`
--

CREATE TABLE `quote_no` (
  `quote_no` int(20) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `quote_no`
--

INSERT INTO `quote_no` (`quote_no`) VALUES
(138);

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

--
-- Table structure for table `recipients`
--

CREATE TABLE `recipients` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `recipients_name` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `recipients_email` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `signature` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `initials` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `recipients`
--

INSERT INTO `recipients` (`id`, `user_id`, `recipients_name`, `recipients_email`, `signature`, `initials`) VALUES
(1, 2, 'kuldeep', 'kuldeep@yopmail.com', 'nQhRKaw7f5XU7xBmws879kNvo4lxXNJu.png', 'fhzOzcZVv3xgUPn3srNRI1qZDp5SUjlB.png'),
(2, 2, 'puneet', 'puneet@yopmail.com', 'JqLOncZFQIGMqfdG1PepGxVZfW7tsJsm.png', 'oB4iiYZu5xwyCwjt78TjWZ8SDQKXuxZy.png'),
(3, 3, 'zsdgeg  sdgasdg', 'anubhav@yopmail.com', 'd3gArfioxv0jAcjr2CO33i1kbzwId1Y9.png', 'sqQAZRvuJzWnEuapdbiValr7Za1RxqdD.png');

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

--
-- Table structure for table `reminders`
--

CREATE TABLE `reminders` (
  `id` int(11) NOT NULL,
  `company` int(11) NOT NULL,
  `subject` varchar(256) NOT NULL,
  `days` int(11) NOT NULL,
  `message` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `rental_goods`
--

CREATE TABLE `rental_goods` (
  `ClientID` int(6) NOT NULL,
  `RentalID` varchar(35) NOT NULL,
  `AgentID` int(15) NOT NULL,
  `Chattel1` varchar(50) NOT NULL,
  `Chattel2` varchar(50) NOT NULL,
  `Chattel3` varchar(50) NOT NULL,
  `Chattel4` varchar(50) NOT NULL,
  `Chattel5` varchar(50) NOT NULL,
  `Chattel6` varchar(50) NOT NULL,
  `Model1` varchar(40) NOT NULL,
  `Model2` varchar(40) NOT NULL,
  `Model3` varchar(40) NOT NULL,
  `Model4` varchar(40) NOT NULL,
  `Model5` varchar(40) NOT NULL,
  `Model6` varchar(40) NOT NULL,
  `ID1` varchar(45) NOT NULL,
  `ID2` varchar(45) NOT NULL,
  `ID3` varchar(45) NOT NULL,
  `ID4` varchar(45) NOT NULL,
  `ID5` varchar(45) NOT NULL,
  `ID6` varchar(45) NOT NULL,
  `Value1` varchar(50) NOT NULL,
  `Value2` varchar(50) NOT NULL,
  `Value3` varchar(50) NOT NULL,
  `Value4` varchar(50) NOT NULL,
  `Value5` varchar(50) NOT NULL,
  `Value6` varchar(50) NOT NULL,
  `Status` varchar(15) NOT NULL,
  `Weekly_Payment` varchar(50) NOT NULL,
  `rental1` varchar(50) NOT NULL,
  `rental2` varchar(50) NOT NULL,
  `rental3` varchar(50) NOT NULL,
  `rental4` varchar(50) NOT NULL,
  `rental5` varchar(50) NOT NULL,
  `rental6` varchar(50) NOT NULL,
  `Term` varchar(10) NOT NULL,
  `weekly_rent` varchar(50) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `rental_goods_location_details`
--

CREATE TABLE `rental_goods_location_details` (
  `ClientID` int(6) NOT NULL,
  `RentalID` varchar(35) NOT NULL,
  `Secondhand` varchar(10) NOT NULL,
  `AddressChattels` varchar(30) NOT NULL,
  `AddressChattels2` varchar(30) NOT NULL,
  `Suburb` varchar(20) NOT NULL,
  `Postcode` int(4) NOT NULL,
  `State` varchar(3) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `rental_goods_vehicles`
--

CREATE TABLE `rental_goods_vehicles` (
  `ClientID` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `AgentID` int(11) NOT NULL,
  `stock_number` varchar(150) NOT NULL,
  `description` varchar(255) NOT NULL,
  `CurrentStatus` varchar(50) NOT NULL,
  `CurrentValue` varchar(50) NOT NULL,
  `gst` varchar(50) NOT NULL,
  `include_gst` varchar(50) NOT NULL,
  `exclude_gst` varchar(50) NOT NULL,
  `ItemCategory` varchar(50) NOT NULL,
  `PurchasedDate` varchar(50) NOT NULL,
  `PurchasedFrom` varchar(100) NOT NULL,
  `PurchasedPrice` varchar(50) NOT NULL,
  `RRPValue` varchar(50) NOT NULL,
  `Type` varchar(50) NOT NULL,
  `Accessories` varchar(100) NOT NULL,
  `BodyType` varchar(100) NOT NULL,
  `BondRequired` varchar(100) NOT NULL,
  `Colour` varchar(50) NOT NULL,
  `EngineNo` varchar(100) NOT NULL,
  `FurtherDesc` varchar(100) NOT NULL,
  `Hours` varchar(50) NOT NULL,
  `IMEINo` varchar(50) NOT NULL,
  `InvoiceNo` varchar(50) NOT NULL,
  `Kilometres` varchar(100) NOT NULL,
  `Location` varchar(100) NOT NULL,
  `Make` varchar(100) NOT NULL,
  `Model` varchar(100) NOT NULL,
  `ProductCode` varchar(100) NOT NULL,
  `RegistrationPlateNo` varchar(100) NOT NULL,
  `RegistrationState` varchar(100) NOT NULL,
  `SerialNo` varchar(100) NOT NULL,
  `SKUNo` varchar(100) NOT NULL,
  `VINNo` varchar(100) NOT NULL,
  `Year` varchar(20) NOT NULL,
  `term` varchar(20) NOT NULL,
  `weekly_payment` varchar(50) NOT NULL,
  `weekly_rent` varchar(50) NOT NULL,
  `rental_price` varchar(50) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0' COMMENT '0=>active, 1=>inactive',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `rental_goods_vehicles`
--

INSERT INTO `rental_goods_vehicles` (`ClientID`, `RentalID`, `AgentID`, `stock_number`, `description`, `CurrentStatus`, `CurrentValue`, `gst`, `include_gst`, `exclude_gst`, `ItemCategory`, `PurchasedDate`, `PurchasedFrom`, `PurchasedPrice`, `RRPValue`, `Type`, `Accessories`, `BodyType`, `BondRequired`, `Colour`, `EngineNo`, `FurtherDesc`, `Hours`, `IMEINo`, `InvoiceNo`, `Kilometres`, `Location`, `Make`, `Model`, `ProductCode`, `RegistrationPlateNo`, `RegistrationState`, `SerialNo`, `SKUNo`, `VINNo`, `Year`, `term`, `weekly_payment`, `weekly_rent`, `rental_price`, `delete_status`, `created_at`) VALUES
(1, 107, 2, 'OEN1677671151', '1970', 'Pending', '10,000', 'include', '10000', '9090.91', 'Truck', '2023-03-01', 'City Motors', '6,000', '10,000', 'Ford', '', '', '', 'Blue', '', '', '', '', '1234567890', '', 'Perth', '1970', 'F345', '', '', '', '', '', '', '', '24', '', '', '0', 0, '2023-03-01 11:47:57'),
(2, 123, 2, 'UWD1681858860', 'Lenovo', 'Available', '24,234', 'include', '24234', '22030.91', 'Computer Server', '2023-10-16', 'Neteffects', '5,000', '15,000', 'Lenovo XM-345LV', 'Winch', 'Sedan', '6,000', 'Silver', '123123123', 'Wearn', '', '345346', '23612', '123,000', 'Gold Coast', 'Lenovo', 'Matrix VBM', '1234', '345SFG', 'Qld', '567567567', '12312123', '123131222', '2019', '60', '', '', '0', 0, '2023-04-18 23:06:33'),
(3, 124, 2, 'VEU1689652583', 'Porsche', 'Pending', '300,000', 'include', '300000', '272727.27', 'Car', '2023-07-18', 'Brisbane', '300,000', '330,000', 'sport', '', 'sport', '10,000', 'black', '2346447644', '', '', '', '121212', '6,000', 'Brisbane', 'Porsche', '911', '', '911tt', 'qld', '', '', 'tt456457y', '2023', '36', '', '', '0', 0, '2023-07-18 04:05:53'),
(6, 137, 2, 'HTL1696893330', 'Ford', 'Pending', '10,000', 'include', '10000', '9090.91', 'Motor Vehicle', '2023-10-10', 'Mary Smith', '5,000', '15,000', 'Sports Sedan', '', '', '', 'red', '', '', '', '', '1234567', '', 'Matraville', 'Ford', 'XP 21', '', '', '', '', '', '', '', '84', '', '', '0', 0, '2023-10-09 23:16:28');

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

--
-- Table structure for table `rental_goods_vehicles_old`
--

CREATE TABLE `rental_goods_vehicles_old` (
  `ClientID` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `AgentID` int(11) NOT NULL,
  `type` varchar(25) NOT NULL DEFAULT 'Rent',
  `description` varchar(255) NOT NULL,
  `entry_type` varchar(20) NOT NULL COMMENT 'goods or vehicles',
  `stock_number` varchar(200) NOT NULL,
  `serial_number` varchar(150) NOT NULL,
  `product_type` varchar(150) NOT NULL,
  `make` varchar(150) NOT NULL,
  `model` varchar(150) NOT NULL,
  `vehicle_year` varchar(50) NOT NULL,
  `color` varchar(150) NOT NULL,
  `engine_no` varchar(150) NOT NULL,
  `vin_no` varchar(150) NOT NULL,
  `further_description` varchar(255) NOT NULL,
  `purchased_from` varchar(255) NOT NULL,
  `goods_purchase_price` varchar(50) NOT NULL,
  `invoice_number` varchar(255) NOT NULL,
  `current_value` varchar(200) NOT NULL,
  `repair_costs` varchar(200) NOT NULL,
  `purchase_date` varchar(100) NOT NULL,
  `vehicle_sell_price` varchar(50) NOT NULL,
  `current_status` varchar(100) NOT NULL,
  `term` varchar(50) NOT NULL,
  `weekly_payment` varchar(30) NOT NULL,
  `weekly_rent` varchar(30) NOT NULL,
  `price` varchar(30) NOT NULL,
  `rental_price` varchar(30) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `rental_goods_vehicles_stage_two`
--

CREATE TABLE `rental_goods_vehicles_stage_two` (
  `ClientID` int(11) NOT NULL,
  `AgentID` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `stock_number` varchar(150) NOT NULL,
  `description` varchar(255) NOT NULL,
  `CurrentStatus` varchar(50) NOT NULL,
  `CurrentValue` varchar(50) NOT NULL,
  `ItemCategory` varchar(50) NOT NULL,
  `PurchasedDate` varchar(50) NOT NULL,
  `PurchasedFrom` varchar(100) NOT NULL,
  `PurchasedPrice` varchar(50) NOT NULL,
  `RRPValue` varchar(50) NOT NULL,
  `Type` varchar(50) NOT NULL,
  `Accessories` varchar(100) NOT NULL,
  `BodyType` varchar(100) NOT NULL,
  `BondRequired` varchar(100) NOT NULL,
  `Colour` varchar(50) NOT NULL,
  `EngineNo` varchar(100) NOT NULL,
  `FurtherDesc` varchar(100) NOT NULL,
  `Hours` varchar(50) NOT NULL,
  `IMEINo` varchar(50) NOT NULL,
  `InvoiceNo` varchar(50) NOT NULL,
  `Kilometres` varchar(100) NOT NULL,
  `Location` varchar(100) NOT NULL,
  `Make` varchar(100) NOT NULL,
  `Model` varchar(100) NOT NULL,
  `ProductCode` varchar(100) NOT NULL,
  `RegistrationPlateNo` varchar(100) NOT NULL,
  `RegistrationState` varchar(100) NOT NULL,
  `SerialNo` varchar(100) NOT NULL,
  `SKUNo` varchar(100) NOT NULL,
  `VINNo` varchar(100) NOT NULL,
  `Year` varchar(20) NOT NULL,
  `term` varchar(20) NOT NULL,
  `weekly_payment` varchar(50) NOT NULL,
  `weekly_rent` varchar(50) NOT NULL,
  `rental_price` varchar(50) NOT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0' COMMENT '0=>active, 1=>inactive',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `requests`
--

CREATE TABLE `requests` (
  `id` int(11) NOT NULL,
  `uniqId` varchar(256) DEFAULT NULL,
  `signing_key` varchar(256) NOT NULL,
  `document` varchar(256) NOT NULL,
  `company` int(11) NOT NULL,
  `sender` int(11) NOT NULL,
  `receiver` int(11) NOT NULL,
  `recipient_name` varchar(100) DEFAULT NULL,
  `email` varchar(128) NOT NULL,
  `positions` text NOT NULL,
  `final_mail` text,
  `chain_emails` text,
  `chain_positions` text,
  `sender_subject` varchar(255) DEFAULT NULL,
  `sender_note` text,
  `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` datetime DEFAULT NULL,
  `status` enum('Pending','Signed','Declined','Cancelled') NOT NULL DEFAULT 'Pending'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `requests`
--

INSERT INTO `requests` (`id`, `uniqId`, `signing_key`, `document`, `company`, `sender`, `receiver`, `recipient_name`, `email`, `positions`, `final_mail`, `chain_emails`, `chain_positions`, `sender_subject`, `sender_note`, `send_time`, `update_time`, `status`) VALUES
(1, '6412f088a1681', 'GZMG0f1BofyVZOmlX49LQWVdav5AwV2J', 'rKg6ggBLLtmhwg6tNeoOEYRsLBidPEVp', 2, 2, 0, 'kuldeep', 'kuldeep@yopmail.com', '[\"1179.33\",{\"type\":\"image\",\"page\":\"1\",\"xPos\":\"545.671875\",\"yPos\":\"111\",\"width\":\"180\",\"height\":\"68\",\"fontsize\":null,\"group\":\"input\"},{\"type\":\"image\",\"page\":\"1\",\"xPos\":\"459.671875\",\"yPos\":\"1506\",\"width\":\"180\",\"height\":\"68\",\"fontsize\":null,\"group\":\"input\"}]', 'No', '[]', 'null', 'dsfsf', '', '2023-03-15 22:33:44', '2023-03-16 20:34:38', 'Signed'),
(2, '6412f111d38fc', 'U9XFRPQfMl9zlAtWYc835ffJqTsr1923', 'fU2azJmfTjnpU70WiLPkuooTIXXKZ21q', 2, 2, 0, 'kuldeep', 'kuldeep@yopmail.com', '[\"1179.33\",{\"type\":\"image\",\"page\":\"1\",\"xPos\":\"547.671875\",\"yPos\":\"122.453125\",\"width\":\"16\",\"height\":\"16\",\"fontsize\":null,\"group\":\"input\"},{\"type\":\"image\",\"page\":\"1\",\"xPos\":\"652.671875\",\"yPos\":\"146.453125\",\"width\":\"16\",\"height\":\"16\",\"fontsize\":null,\"group\":\"input\"}]', 'No', '[]', 'null', 'dsadasd', '', '2023-03-15 22:36:02', '2023-03-16 20:36:29', 'Signed'),
(3, '6412f18114935', '6jTYhevDQbrm5ItGIFVw78eLP6YZ6QAY', 'y4klkzMJmtmn5Wtv5q3hycLoQWoynf8t', 2, 2, 0, 'kuldeep', 'kuldeep@yopmail.com', '[\"1179.33\",{\"type\":\"image\",\"page\":\"1\",\"xPos\":\"550.671875\",\"yPos\":\"96\",\"width\":\"180\",\"height\":\"68\",\"fontsize\":null,\"group\":\"input\"},{\"type\":\"image\",\"page\":\"2\",\"xPos\":\"568.671875\",\"yPos\":\"1815\",\"width\":\"180\",\"height\":\"68\",\"fontsize\":null,\"group\":\"input\"}]', 'No', '[]', 'null', 'sdfsdf', '', '2023-03-15 22:37:53', '2023-03-16 20:38:13', 'Signed'),
(4, '6413eb0b9ed80', 'sCoMtLg40xVNuG56c1Yx75b5rzq9owtg', 'CRyjV7NLLv2GgYHwWoXLAYQ7S2TrTtTz', 2, 2, 0, 'puneet', 'puneet@yopmail.com', '[\"1224.66\",{\"type\":\"image\",\"page\":\"1\",\"xPos\":\"520.328125\",\"yPos\":\"188\",\"width\":\"180\",\"height\":\"68\",\"fontsize\":null,\"group\":\"input\"},{\"type\":\"image\",\"page\":\"2\",\"xPos\":\"339.328125\",\"yPos\":\"1844\",\"width\":\"180\",\"height\":\"68\",\"fontsize\":null,\"group\":\"input\"},{\"type\":\"image\",\"page\":\"3\",\"xPos\":\"297.328125\",\"yPos\":\"3989\",\"width\":\"180\",\"height\":\"68\",\"fontsize\":null,\"group\":\"input\"}]', 'No', '[]', 'null', 'dgsytwe ', '', '2023-03-16 16:22:35', '2023-03-17 14:23:30', 'Signed'),
(5, '6414337d959f9', 'e60NHGvWf6MrcrxHWKkdBzlPpixjQZx2', 'VFbRmMQabEfdqFDWNMJE0YxUtlmCJVyG', 2, 3, 0, 'zsdgeg  sdgasdg', 'anubhav@yopmail.com', '[\"969.588\",{\"type\":\"image\",\"page\":\"1\",\"xPos\":\"156.5\",\"yPos\":\"65.19999694824219\",\"width\":\"180\",\"height\":\"68\",\"fontsize\":null,\"group\":\"input\"}]', 'No', '[]', 'null', 'zx', '', '2023-03-16 21:31:41', '2023-03-17 19:32:45', 'Signed');

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

--
-- Table structure for table `rm_admin`
--

CREATE TABLE `rm_admin` (
  `admin_id` int(11) NOT NULL,
  `store_id` int(11) NOT NULL,
  `admin_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `admin_user` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `fname` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `lname` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
  `admin_email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `admin_pass` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `admin_logo` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `admin_position` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `admin_address` text COLLATE utf8_unicode_ci NOT NULL,
  `admin_mobile` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `admin_idcard` text COLLATE utf8_unicode_ci NOT NULL,
  `admin_status` enum('active','inactive','pending') COLLATE utf8_unicode_ci NOT NULL,
  `admin_type` enum('Super Admin','User','Sub Admin') COLLATE utf8_unicode_ci NOT NULL,
  `admin_privilege` enum('Super Admin','User','Sub Admin') COLLATE utf8_unicode_ci NOT NULL,
  `admin_level` enum('Subscriber','Editor','Admin','Sub Admin') COLLATE utf8_unicode_ci NOT NULL,
  `admin_contact` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `admin_country` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `admin_contact_u` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `permission` text COLLATE utf8_unicode_ci
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `rm_admin`
--

INSERT INTO `rm_admin` (`admin_id`, `store_id`, `admin_name`, `admin_user`, `fname`, `lname`, `admin_email`, `admin_pass`, `admin_logo`, `admin_position`, `admin_address`, `admin_mobile`, `admin_idcard`, `admin_status`, `admin_type`, `admin_privilege`, `admin_level`, `admin_contact`, `admin_country`, `admin_contact_u`, `permission`) VALUES
(20, 0, 'admin user', 'admin', 'wwersdf', 'sfdgdsfdsf', 'dsfsdsf@gmail.com', '419a56e9a13682ac9bf2e5661b301c08', '', 'admin', '21', '43323243', '', 'active', 'Super Admin', 'Super Admin', '', '', '', '', NULL),
(30, 29, 'subadmin kerry', 'subadmin1', 'subadmin', 'kerry', 'subadmin1@gmail.com', '25d55ad283aa400af464c76d713c07ad', '', 'subadmin', '', '9876543210', '', 'active', 'Sub Admin', 'Sub Admin', 'Sub Admin', '', '', '', 'addoffer,disclosure,notices,approved,calculator,businessapplication,bulletin,rssfeeds,termcondition,polices,email_temp_list,sms_temp_list'),
(31, 29, 'Anubhav Sahni', 'AA', 'Anubhav', 'Sahni', 'anubhav@gmail.com', 'fe60374e15ae5f50e67cf94fed349337', '', 'subadmin', '', '32432432', '', 'active', 'Sub Admin', 'Sub Admin', 'Sub Admin', '', '', '', 'user,calculator,security_level'),
(32, 50, 'Anna Marsh', 'AMSub', 'Anna', 'Marsh', 'anna@abcadvantage.com.au', '6e14ce7b567956cd3f81f3dafa39ab4b', '', 'subadmin', '', '0412345678', '', 'active', 'Sub Admin', 'Sub Admin', 'Sub Admin', '', '', '', 'user,clientportal,store,addoffer,disclosure,notices,approved,calculator,businessapplication,bulletin,rssfeeds,termcondition,polices,email_temp_list,sms_temp_list,help_center,security_level'),
(35, 24, 'Ruan Opperman', 'demo', 'Ruan', 'Opperman', 'demo@gmail.com', '8ce87b8ec346ff4c80635f667d1592ae', '', 'subadmin', '', '1234567890', '', 'active', 'Sub Admin', 'Sub Admin', 'Sub Admin', '', '', '', ''),
(36, 29, 'Mek Willi', 'Mek', 'Mek', 'Willi', 'Mutteio3@yopmail.com', '40598290e6e0e066f4411097e3248692', '', 'subadmin', '', '4455334433', '', 'active', 'Sub Admin', 'Sub Admin', 'Sub Admin', '', '', '', 'approved,Consumer_Application,calculator,businessapplication,bulletin'),
(42, 50, 'Regan Kerry', 'ReganKerry', 'Regan', 'Kerry', 'kerry@daatasafeapps.com.au', 'f5217ba44fcfcd9a22f652dc8712df75', '', 'subadmin', '', '', '', 'active', 'Sub Admin', 'Sub Admin', 'Sub Admin', '', '', '', 'clientportal,addoffer,disclosure,notices,Security_Levels,Verification_List,calculator,businessapplication,bulletin,rssfeeds,termcondition,polices,email_temp_list,sms_temp_list,help_center'),
(44, 50, 'roman reings', 'roman', 'roman', 'reings', 'roman@gmail.com', '30df196559f6c591e936d7873119f5c9', '', 'subadmin', '', '', '', 'active', 'Sub Admin', 'Sub Admin', 'Sub Admin', '', '', '', 'clientportal,addoffer,disclosure,notices,Security_Levels,Verification_List,calculator,businessapplication,bulletin,rssfeeds,termcondition,polices,email_temp_list,sms_temp_list,help_center');

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

--
-- Table structure for table `rss_feeds`
--

CREATE TABLE `rss_feeds` (
  `id` int(11) NOT NULL,
  `company_id` int(11) NOT NULL,
  `create_type` varchar(50) NOT NULL,
  `sender_id` int(11) NOT NULL,
  `subject` varchar(255) NOT NULL,
  `content` longtext NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0' COMMENT '0=>active, 1=>inactive',
  `timestamp` varchar(50) NOT NULL,
  `create_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `saving_assets`
--

CREATE TABLE `saving_assets` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `account_name` varchar(250) NOT NULL,
  `account_number` varchar(200) NOT NULL,
  `institution` varchar(150) NOT NULL,
  `ownership` varchar(150) NOT NULL,
  `value` varchar(50) NOT NULL,
  `timestamp` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `director_number` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `saving_assets`
--

INSERT INTO `saving_assets` (`id`, `RentalID`, `account_name`, `account_number`, `institution`, `ownership`, `value`, `timestamp`, `status`, `date`, `director_number`) VALUES
(1, 101, '', '', '', '', '', '1674026546', 0, '2023-01-10 11:10:39', 'one'),
(2, 102, '', '', '', '', '', '1674212372', 0, '2023-01-20 10:59:32', 'one'),
(3, 103, '', '', '', '', '', '1674564245', 0, '2023-01-24 12:44:05', 'one'),
(4, 105, '', '', '', '', '', '1677653647', 0, '2023-03-01 06:54:07', 'one'),
(5, 106, '', '', '', '', '', '1677664242', 0, '2023-03-01 09:50:34', 'one'),
(6, 111, '', '', '', '', '', '1678099367', 0, '2023-03-06 05:49:14', 'one'),
(7, 112, '', '', '', '', '', '1678362010', 0, '2023-03-09 04:15:29', 'one'),
(8, 113, '', '', '', '', '', '1678361005', 0, '2023-03-09 10:33:07', 'one'),
(9, 115, '', '', '', '', '', '1678423301', 0, '2023-03-10 04:41:41', 'one'),
(10, 114, '', '', '', '', '', '1678687664', 0, '2023-03-13 06:07:44', 'one'),
(11, 114, '', '', '', '', '', '1678687664', 0, '2023-03-13 06:07:44', 'one'),
(12, 116, '', '', '', '', '', '1678700692', 0, '2023-03-13 09:15:43', 'one'),
(13, 119, '', '', '', '', '', '1678790107', 0, '2023-03-13 12:26:17', 'one'),
(14, 120, '', '', '', '', '', '1678859740', 0, '2023-03-14 07:46:38', 'one'),
(15, 121, '', '', '', '', '', '1678953095', 0, '2023-03-16 07:51:35', 'one'),
(16, 122, '', '', '', '', '', '1679050568', 0, '2023-03-17 00:08:03', 'one'),
(17, 107, '', '', '', '', '', '1681787755', 0, '2023-04-18 03:15:55', 'one'),
(18, 123, 'kerry Regan', '1123123123', 'commonwealth', '100', '100,000', '1697453008', 0, '2023-04-18 23:29:07', 'one'),
(19, 124, '', '', '', '', '', '1689901421', 0, '2023-07-18 11:18:18', 'one'),
(20, 123, '', '', '', '', '', '1695885761', 0, '2023-09-28 07:22:41', 'three'),
(21, 123, 'Commonwealth', '334567788', 'bank', '', '20,000', '1696827610', 0, '2023-10-09 04:24:23', 'two'),
(22, 125, '', '', '', '', '', '1696828570', 0, '2023-10-09 05:16:10', 'one'),
(23, 137, '', '', '', '', '', '1701316855', 0, '2023-11-30 00:35:12', 'one'),
(24, 137, '', '', '', '', '', '1701316855', 0, '2023-11-30 04:00:55', 'one');

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

--
-- Table structure for table `security`
--

CREATE TABLE `security` (
  `SecurityID` int(6) NOT NULL,
  `FieldRep` varchar(6) NOT NULL,
  `Type` varchar(8) NOT NULL,
  `User_Type` varchar(25) NOT NULL,
  `Agent` varchar(7) NOT NULL,
  `QuoteNumber` varchar(710) NOT NULL,
  `StoreName` varchar(10) NOT NULL,
  `Date` varchar(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `security_account_details`
--

CREATE TABLE `security_account_details` (
  `id` int(11) NOT NULL,
  `level_id` int(11) NOT NULL,
  `Account_Details` varchar(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `security_assets_liabilities`
--

CREATE TABLE `security_assets_liabilities` (
  `id` int(11) NOT NULL,
  `level_id` int(11) NOT NULL,
  `Assets_Liabilities` varchar(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `security_balance_sheet`
--

CREATE TABLE `security_balance_sheet` (
  `id` int(11) NOT NULL,
  `level_id` int(11) NOT NULL,
  `Balance_Sheet` varchar(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `security_business_details`
--

CREATE TABLE `security_business_details` (
  `id` int(11) NOT NULL,
  `level_id` int(11) NOT NULL,
  `Client_Business_Application` varchar(5) NOT NULL,
  `Business_Status` varchar(5) NOT NULL,
  `Min_It_Aproval` varchar(5) NOT NULL,
  `Click_Through_Email` varchar(5) NOT NULL,
  `Click_Through_SMS` varchar(5) NOT NULL,
  `Click_Through_Web` varchar(5) NOT NULL,
  `Click_Through_Facebook` varchar(5) NOT NULL,
  `Click_Through_Linkedin` varchar(5) NOT NULL,
  `Finance_Company_Details` varchar(5) NOT NULL,
  `Accountant_Details` varchar(5) NOT NULL,
  `Trade_References` varchar(5) NOT NULL,
  `Supplier_Details` varchar(5) NOT NULL,
  `Credit_References` varchar(5) NOT NULL,
  `Business_Finance_Details` varchar(5) NOT NULL,
  `Legal_Details` varchar(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `security_calculator`
--

CREATE TABLE `security_calculator` (
  `id` int(11) NOT NULL,
  `level_id` int(11) NOT NULL,
  `Calculator` varchar(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `security_documents`
--

CREATE TABLE `security_documents` (
  `id` int(11) NOT NULL,
  `level_id` int(11) NOT NULL,
  `Internal_Documents` varchar(5) NOT NULL,
  `Identification` varchar(5) NOT NULL,
  `Financials` varchar(5) NOT NULL,
  `Company_Search` varchar(5) NOT NULL,
  `Credit_Report` varchar(5) NOT NULL,
  `Bank_Statements` varchar(5) NOT NULL,
  `Approval_Status` varchar(5) NOT NULL,
  `Invoice` varchar(5) NOT NULL,
  `Contract` varchar(5) NOT NULL,
  `Contract_Signed` varchar(5) NOT NULL,
  `Conditions` varchar(5) NOT NULL,
  `Reciepts` varchar(5) NOT NULL,
  `Miscelanious` varchar(5) NOT NULL,
  `Archive` varchar(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `security_equipment`
--

CREATE TABLE `security_equipment` (
  `id` int(11) NOT NULL,
  `level_id` int(11) NOT NULL,
  `Add_Items` varchar(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `security_levels`
--

CREATE TABLE `security_levels` (
  `id` int(11) NOT NULL,
  `level_name` varchar(250) NOT NULL,
  `level_id` int(11) NOT NULL,
  `description` text NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `security_menus`
--

CREATE TABLE `security_menus` (
  `id` int(11) NOT NULL,
  `level_id` int(11) NOT NULL,
  `Login` varchar(5) NOT NULL,
  `Admin_Login_Dashboard` varchar(5) NOT NULL,
  `Team_Notes` varchar(5) NOT NULL,
  `To_Do` varchar(5) NOT NULL,
  `SMS` varchar(5) NOT NULL,
  `Message` varchar(5) NOT NULL,
  `Email` varchar(5) NOT NULL,
  `Notices` varchar(5) NOT NULL,
  `Help` varchar(5) NOT NULL,
  `Search` varchar(5) NOT NULL,
  `AdvanceSearch` varchar(5) NOT NULL,
  `Links` varchar(5) NOT NULL,
  `Reports` varchar(5) NOT NULL,
  `Letters` varchar(5) NOT NULL,
  `Calculator` varchar(5) NOT NULL,
  `Bulletin_RSS` varchar(5) NOT NULL COMMENT 'Brodcast',
  `Applications` varchar(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `security_notes`
--

CREATE TABLE `security_notes` (
  `id` int(11) NOT NULL,
  `level_id` int(11) NOT NULL,
  `Add_Notes` varchar(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `security_pending_selection`
--

CREATE TABLE `security_pending_selection` (
  `id` int(11) NOT NULL,
  `level_id` int(11) NOT NULL,
  `Pending_Selection` varchar(5) NOT NULL,
  `New` varchar(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `security_profit_loss`
--

CREATE TABLE `security_profit_loss` (
  `id` int(11) NOT NULL,
  `level_id` int(11) NOT NULL,
  `Profit_Loss` varchar(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `serviceability`
--

CREATE TABLE `serviceability` (
  `id` int(11) NOT NULL,
  `AgentID` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `no_of_properties` int(11) NOT NULL,
  `house_hold` varchar(100) NOT NULL,
  `adult_household` int(11) NOT NULL,
  `dependent_household` varchar(20) NOT NULL,
  `monthly_expenses` varchar(20) NOT NULL,
  `loan_result` varchar(20) NOT NULL,
  `debt_servicing` varchar(20) NOT NULL,
  `net_cash_position` varchar(20) NOT NULL,
  `total_payment` varchar(20) NOT NULL,
  `created_at` varchar(40) NOT NULL,
  `updated_at` varchar(40) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `serviceability_annual_income`
--

CREATE TABLE `serviceability_annual_income` (
  `id` int(11) NOT NULL,
  `serviceability_id` int(11) NOT NULL,
  `applicant_id` int(11) NOT NULL,
  `income_tax` varchar(20) NOT NULL,
  `medicare_levy` varchar(20) NOT NULL,
  `nagative_gearing_tax` varchar(20) NOT NULL,
  `tax_free_income` varchar(20) NOT NULL,
  `self_employe_addback` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `serviceability_applicant`
--

CREATE TABLE `serviceability_applicant` (
  `id` int(11) NOT NULL,
  `serviceability_id` int(11) NOT NULL,
  `first_name` varchar(50) NOT NULL,
  `last_name` varchar(50) NOT NULL,
  `gross_annual_salary` varchar(20) NOT NULL,
  `overtime` varchar(20) NOT NULL,
  `gross_bonus` varchar(20) NOT NULL,
  `current_rental_income` varchar(20) NOT NULL,
  `proposed_rental_income` varchar(20) NOT NULL,
  `investment_income` varchar(20) NOT NULL,
  `pensions` varchar(20) NOT NULL,
  `other_income` varchar(20) NOT NULL,
  `self_employed_income` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `serviceability_borrowing`
--

CREATE TABLE `serviceability_borrowing` (
  `id` int(11) NOT NULL,
  `serviceability_id` int(11) NOT NULL,
  `borrow_id` int(11) NOT NULL,
  `loan_type` varchar(20) NOT NULL,
  `tax` varchar(20) NOT NULL,
  `balance` varchar(20) NOT NULL,
  `assesment` varchar(20) NOT NULL,
  `interest` varchar(20) NOT NULL,
  `loan_term_years` varchar(20) NOT NULL,
  `interest_only` varchar(20) NOT NULL,
  `monthly_charges` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `serviceability_credit_card`
--

CREATE TABLE `serviceability_credit_card` (
  `id` int(11) NOT NULL,
  `serviceability_id` int(11) NOT NULL,
  `credit_id` int(11) NOT NULL,
  `loan_type` varchar(20) NOT NULL,
  `tax_deducatable` varchar(20) NOT NULL,
  `repaid` varchar(20) NOT NULL,
  `balance` varchar(20) NOT NULL,
  `interest_rate` varchar(20) NOT NULL,
  `monthly_repayment` varchar(20) NOT NULL,
  `monthly_charges` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `serviceability_loan_detail`
--

CREATE TABLE `serviceability_loan_detail` (
  `id` int(11) NOT NULL,
  `serviceability_id` int(11) NOT NULL,
  `loan_id` int(11) NOT NULL,
  `loan_type` varchar(20) NOT NULL,
  `tax` varchar(20) NOT NULL,
  `balance` varchar(20) NOT NULL,
  `assesment` varchar(20) NOT NULL,
  `interest` varchar(20) NOT NULL,
  `loan_term_years` varchar(20) NOT NULL,
  `interest_only` varchar(20) NOT NULL,
  `monthly_charges` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `serviceability_more_income`
--

CREATE TABLE `serviceability_more_income` (
  `id` int(11) NOT NULL,
  `serviceability_id` int(11) NOT NULL,
  `others_id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `applicant_1` varchar(20) NOT NULL,
  `applicant_2` varchar(20) NOT NULL,
  `applicant_3` varchar(20) NOT NULL,
  `applicant_4` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `serviceability_personal_loan`
--

CREATE TABLE `serviceability_personal_loan` (
  `id` int(11) NOT NULL,
  `serviceability_id` int(11) NOT NULL,
  `personal_id` int(11) NOT NULL,
  `loan_type` varchar(20) NOT NULL,
  `term_month` varchar(20) NOT NULL,
  `tax_deducatable` int(11) NOT NULL,
  `repaid` int(11) NOT NULL,
  `balance` int(11) NOT NULL,
  `interest_rate` int(11) NOT NULL,
  `monthly_repayment` int(11) NOT NULL,
  `monthly_charges` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `setting`
--

CREATE TABLE `setting` (
  `id` int(11) NOT NULL,
  `email` varchar(150) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `signatures`
--

CREATE TABLE `signatures` (
  `id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `signature_text` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `initial_text` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `font` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `weight` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `color` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `style` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `signatures`
--

INSERT INTO `signatures` (`id`, `user_id`, `email`, `signature_text`, `initial_text`, `font`, `weight`, `color`, `style`) VALUES
(1, 0, 'kuldeep@yopmail.com', 'kuldeep', 'KP', 'Niconne', 'normal', 'rgb(246, 249, 249)', 'normal'),
(2, 0, 'puneet@yopmail.com', 'puneet', 'pt', 'Niconne', 'normal', 'rgb(246, 249, 249)', 'normal'),
(3, 0, 'anubhav@yopmail.com', 'ANUBHAV', 'AS', 'Niconne', 'bold', 'rgb(246, 249, 249)', 'italic');

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

--
-- Table structure for table `signed_documents`
--

CREATE TABLE `signed_documents` (
  `id` int(11) NOT NULL,
  `subject` varchar(255) NOT NULL,
  `user_id` int(11) NOT NULL,
  `rental_id` int(11) DEFAULT NULL,
  `file_name` varchar(255) NOT NULL,
  `document_key` varchar(255) NOT NULL,
  `type` varchar(255) DEFAULT NULL,
  `signed_on` varchar(255) NOT NULL,
  `delete_type` int(11) NOT NULL,
  `delete_reason` text
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `signed_documents`
--

INSERT INTO `signed_documents` (`id`, `subject`, `user_id`, `rental_id`, `file_name`, `document_key`, `type`, `signed_on`, `delete_type`, `delete_reason`) VALUES
(1, 'dsfsf', 2, 107, '0_167879258570.pdf', 'rKg6ggBLLtmhwg6tNeoOEYRsLBidPEVp', 'id', '2023-03-16 08:34:46', 0, ''),
(2, 'dsadasd', 2, 107, '0_167879258570.pdf', 'fU2azJmfTjnpU70WiLPkuooTIXXKZ21q', 'id', '2023-03-16 08:36:37', 0, ''),
(3, 'dsadasd', 2, 107, '1_bJX0FZeHYvjgCIzUGYlMAlspcNqxRPdl.pdf', 'fU2azJmfTjnpU70WiLPkuooTIXXKZ21q', 'cd', '2023-03-16 08:36:37', 0, ''),
(4, 'sdfsdf', 2, 107, '0_167877820839720.pdf', 'y4klkzMJmtmn5Wtv5q3hycLoQWoynf8t', 'bank', '2023-03-16 08:38:21', 0, ''),
(5, 'sdfsdf', 2, 107, '1_167895808048108.pdf', 'y4klkzMJmtmn5Wtv5q3hycLoQWoynf8t', 'bank', '2023-03-16 08:38:21', 0, ''),
(6, 'dgsytwe ', 2, 106, '0_cTcjwNYgpEYBVBJzj4fRngtwxb6qJxdN.pdf', 'CRyjV7NLLv2GgYHwWoXLAYQ7S2TrTtTz', 'cd', '2023-03-17 02:23:38', 0, ''),
(7, 'dgsytwe ', 2, 106, '1_VAHwQnpIoBoWoixqi09VZtLaV9UX9YzG.pdf', 'CRyjV7NLLv2GgYHwWoXLAYQ7S2TrTtTz', 'cd', '2023-03-17 02:23:38', 0, ''),
(8, 'zx', 3, 122, '0_LFchRFYo29sNOffdAgSu66pzgs2P8XfS.pdf', 'VFbRmMQabEfdqFDWNMJE0YxUtlmCJVyG', 'cd', '2023-03-17 07:32:54', 0, '');

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

--
-- Table structure for table `sms_templates`
--

CREATE TABLE `sms_templates` (
  `id` int(11) NOT NULL,
  `company_id` int(11) NOT NULL,
  `name` varchar(250) NOT NULL,
  `message` text NOT NULL,
  `tamplate_id` varchar(250) NOT NULL,
  `create_type` varchar(20) NOT NULL,
  `type` varchar(20) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sms_templates`
--

INSERT INTO `sms_templates` (`id`, `company_id`, `name`, `message`, `tamplate_id`, `create_type`, `type`, `date`, `status`) VALUES
(1, 0, 'Test KR', '<p>tttt</p>\r\n', '', 'admin', 'email', '2023-10-31 01:50:34', 1),
(2, 0, 'Test KR', 'SMS Test', '', 'admin', 'sms', '2023-10-31 01:50:57', 1);

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

--
-- Table structure for table `stage2_adjustInterestRate`
--

CREATE TABLE `stage2_adjustInterestRate` (
  `id` int(11) NOT NULL,
  `current_rate` varchar(150) NOT NULL,
  `new_rate` varchar(150) NOT NULL,
  `payment_amt` varchar(150) NOT NULL,
  `reason` text NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage2_client_address`
--

CREATE TABLE `stage2_client_address` (
  `id` int(11) NOT NULL,
  `agent_id` int(11) NOT NULL,
  `client_number` int(11) NOT NULL,
  `street1` varchar(150) NOT NULL,
  `street2` varchar(150) NOT NULL,
  `suburb` varchar(50) NOT NULL,
  `state` varchar(50) NOT NULL,
  `postcode` varchar(10) NOT NULL,
  `last_updated` varchar(30) NOT NULL,
  `status` varchar(50) NOT NULL,
  `start_month` varchar(10) NOT NULL DEFAULT '0',
  `start_year` varchar(10) NOT NULL DEFAULT '0',
  `type` varchar(50) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage2_client_main_details`
--

CREATE TABLE `stage2_client_main_details` (
  `id` int(11) NOT NULL,
  `agent_id` int(11) NOT NULL,
  `client_number` int(11) NOT NULL,
  `client_status` varchar(50) NOT NULL,
  `client_title` varchar(50) NOT NULL,
  `first_name` varchar(100) NOT NULL,
  `middle_name` varchar(100) NOT NULL,
  `last_name` varchar(100) NOT NULL,
  `dob` varchar(50) NOT NULL,
  `id_number` varchar(50) NOT NULL,
  `veda_numbers` varchar(50) NOT NULL,
  `home_phone` varchar(50) NOT NULL,
  `work_phone` varchar(50) NOT NULL,
  `mobile_phone` varchar(50) NOT NULL,
  `fax` varchar(50) NOT NULL,
  `email` varchar(150) NOT NULL,
  `gender` varchar(100) NOT NULL,
  `marital_status` varchar(100) NOT NULL,
  `number_Of_children` int(11) NOT NULL,
  `special_note` text NOT NULL,
  `home_ownership` varchar(150) NOT NULL,
  `home_loan_provider` varchar(150) NOT NULL,
  `real_estate_agent_name` varchar(150) NOT NULL,
  `real_estate_agent_phone` varchar(150) NOT NULL,
  `occupation` varchar(150) NOT NULL,
  `gross_income_amount` varchar(150) NOT NULL,
  `income_frequency` varchar(150) NOT NULL,
  `employment_status` varchar(150) NOT NULL,
  `emploayer_address` varchar(150) NOT NULL,
  `employer_name` varchar(150) NOT NULL,
  `employer_contact_name` varchar(150) NOT NULL,
  `employer_phone` varchar(150) NOT NULL,
  `defaults` varchar(200) NOT NULL,
  `employer_start_month` varchar(150) NOT NULL,
  `employer_start_year` varchar(50) NOT NULL,
  `employer_street1` varchar(70) NOT NULL,
  `employer_street2` varchar(150) NOT NULL,
  `employer_suburb` varchar(150) NOT NULL,
  `employer_state` varchar(150) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage2_loans`
--

CREATE TABLE `stage2_loans` (
  `id` int(11) NOT NULL,
  `agent_id` int(11) NOT NULL,
  `loan_number` int(11) NOT NULL,
  `balance` varchar(50) NOT NULL,
  `status` text NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage2_loans_details`
--

CREATE TABLE `stage2_loans_details` (
  `id` int(11) NOT NULL,
  `agent_id` int(11) NOT NULL,
  `loan_number` int(11) NOT NULL,
  `client_number1` int(11) NOT NULL,
  `loan_type` text NOT NULL,
  `loan_date` varchar(50) NOT NULL,
  `original_loan_amount` varchar(50) NOT NULL,
  `fees_and_charges` varchar(50) NOT NULL,
  `financed_amount` varchar(50) NOT NULL,
  `repayment_amount` varchar(50) NOT NULL,
  `payment_frequency` text NOT NULL,
  `next_payment_date` varchar(100) NOT NULL,
  `paid_to_date` varchar(50) NOT NULL,
  `last_good_payment_date` varchar(50) NOT NULL,
  `last_payment_date` varchar(50) NOT NULL,
  `arrears` varchar(50) NOT NULL,
  `current_balance` varchar(50) NOT NULL,
  `no_of_dishonours` varchar(50) NOT NULL,
  `entity` varchar(50) NOT NULL,
  `loan_status` varchar(50) NOT NULL,
  `loan_closed_date` varchar(50) NOT NULL,
  `client_number2` int(11) NOT NULL,
  `client1_firstname` varchar(100) NOT NULL,
  `client2_firstname` varchar(100) NOT NULL,
  `client1_lastname` varchar(100) NOT NULL,
  `client2_lastname` varchar(100) NOT NULL,
  `client1_tradingname` varchar(100) NOT NULL,
  `balance` varchar(100) NOT NULL,
  `client2_tradingname` varchar(100) NOT NULL,
  `original_payment` varchar(100) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage2_loan_transactions`
--

CREATE TABLE `stage2_loan_transactions` (
  `id` int(11) NOT NULL,
  `agent_id` int(11) NOT NULL,
  `client_number` int(11) NOT NULL,
  `loan_number` int(11) NOT NULL,
  `transaction_type` varchar(150) NOT NULL,
  `transaction_name` varchar(250) NOT NULL,
  `debit` varchar(225) NOT NULL,
  `credit` varchar(200) NOT NULL,
  `application_number` varchar(150) NOT NULL,
  `stock_number` varchar(150) NOT NULL,
  `unique_id` varchar(50) NOT NULL,
  `client_name` varchar(150) NOT NULL,
  `transaction_date` date DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage2_write_offs`
--

CREATE TABLE `stage2_write_offs` (
  `id` int(11) NOT NULL,
  `agent_id` int(11) NOT NULL,
  `loan_number` int(11) NOT NULL,
  `transaction_date` varchar(50) NOT NULL,
  `write_off_reversal` varchar(50) NOT NULL,
  `write_off` varchar(150) NOT NULL,
  `client1_number` int(11) NOT NULL,
  `client1_first_name` varchar(150) NOT NULL,
  `client1_last_name` varchar(150) NOT NULL,
  `client1_dob` varchar(50) NOT NULL,
  `client2_number` int(11) NOT NULL,
  `client2_first_name` varchar(150) NOT NULL,
  `client2_last_name` varchar(150) NOT NULL,
  `client2_dob` varchar(50) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_additionalPayment`
--

CREATE TABLE `stage3_additionalPayment` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `date` varchar(150) NOT NULL,
  `payment_amount` varchar(150) NOT NULL,
  `payment_method` varchar(150) NOT NULL,
  `allocate_payments` varchar(150) NOT NULL,
  `allocate_payment_amount` varchar(150) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_changeBranch`
--

CREATE TABLE `stage3_changeBranch` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `current_branch` varchar(200) NOT NULL,
  `new_branch` varchar(200) NOT NULL,
  `reason_text` text NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_createloan_payee`
--

CREATE TABLE `stage3_createloan_payee` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `payee_name` varchar(200) NOT NULL,
  `amount` varchar(150) NOT NULL,
  `payment_type` varchar(200) NOT NULL,
  `bsb_biller` varchar(200) NOT NULL,
  `account_number` varchar(200) NOT NULL,
  `bank_name` varchar(50) DEFAULT NULL,
  `reference` varchar(200) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_create_loan`
--

CREATE TABLE `stage3_create_loan` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `admin_id` int(11) NOT NULL,
  `loan_purpose` varchar(200) NOT NULL,
  `loan_type` varchar(200) NOT NULL,
  `credit_limit` varchar(200) NOT NULL,
  `inc_exc_gst` varchar(150) NOT NULL,
  `loan_amount` varchar(200) NOT NULL,
  `monthly_fee` varchar(200) NOT NULL,
  `establishment_fee` varchar(200) NOT NULL,
  `debit_fee` varchar(200) NOT NULL,
  `other_debit_text1` varchar(255) NOT NULL,
  `other_debit_text2` varchar(255) NOT NULL,
  `other_debit_text3` varchar(255) NOT NULL,
  `other_debit_text4` varchar(255) NOT NULL,
  `other_debit_fee1` varchar(150) NOT NULL,
  `other_debit_fee2` varchar(150) NOT NULL,
  `other_debit_fee3` varchar(150) NOT NULL,
  `other_debit_fee4` varchar(150) NOT NULL,
  `finance_amount` varchar(200) NOT NULL,
  `duration` varchar(200) NOT NULL,
  `contract_date` varchar(200) NOT NULL,
  `first_payment_date` varchar(200) NOT NULL,
  `end_date` varchar(200) NOT NULL,
  `frequency` varchar(200) NOT NULL,
  `percentage_rate` varchar(200) NOT NULL,
  `customer_rate` varchar(100) NOT NULL,
  `borker_rate` varchar(200) NOT NULL,
  `broker_fee` varchar(200) NOT NULL,
  `lux_car_tax` varchar(150) NOT NULL,
  `balloon_percent` varchar(150) NOT NULL,
  `balloon_payment` varchar(150) NOT NULL,
  `adv_payment` varchar(150) NOT NULL,
  `payment_method` varchar(200) NOT NULL,
  `weekly_amt` varchar(200) NOT NULL,
  `weekly_amt_contract` varchar(150) NOT NULL,
  `paymentcount` varchar(100) NOT NULL,
  `annual_cost_rate` varchar(100) NOT NULL,
  `total_payable` varchar(100) NOT NULL,
  `bsb` varchar(200) NOT NULL,
  `account_no` varchar(200) NOT NULL,
  `bank` varchar(200) NOT NULL,
  `branch` varchar(200) NOT NULL,
  `account_name` varchar(200) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_depositAccountDetail`
--

CREATE TABLE `stage3_depositAccountDetail` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `radio_btn` varchar(50) NOT NULL,
  `bsb` varchar(150) NOT NULL,
  `account_no` varchar(150) NOT NULL,
  `bank` varchar(150) NOT NULL,
  `branch` varchar(150) NOT NULL,
  `account_name` varchar(200) NOT NULL,
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_furtherAdvance`
--

CREATE TABLE `stage3_furtherAdvance` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `original_loan_value` varchar(150) NOT NULL,
  `current_balance` varchar(150) NOT NULL,
  `total_advance` varchar(150) NOT NULL,
  `reason` varchar(150) NOT NULL,
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_furtherAdvance_Payee`
--

CREATE TABLE `stage3_furtherAdvance_Payee` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `payee_name` varchar(200) NOT NULL,
  `amount` varchar(200) NOT NULL,
  `payment_type` varchar(200) NOT NULL,
  `bsb_biller` varchar(200) NOT NULL,
  `account_number` varchar(200) NOT NULL,
  `reference` varchar(200) NOT NULL,
  `fee` varchar(200) NOT NULL,
  `new_balance` varchar(200) NOT NULL,
  `effective_date` varchar(200) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_furtherAllPayment`
--

CREATE TABLE `stage3_furtherAllPayment` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `current_payment` varchar(200) NOT NULL,
  `new_payment` varchar(200) NOT NULL,
  `next_due_date` varchar(250) NOT NULL,
  `followup_date` varchar(150) NOT NULL,
  `reason` varchar(150) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0' COMMENT '0=>no change , 1=>change',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_furtherIndividual`
--

CREATE TABLE `stage3_furtherIndividual` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `due_date1` varchar(200) NOT NULL,
  `due_amount1` varchar(200) NOT NULL,
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `due_date2` varchar(150) NOT NULL,
  `due_amount2` varchar(150) NOT NULL,
  `due_date3` varchar(150) NOT NULL,
  `due_amount3` varchar(150) NOT NULL,
  `due_date4` varchar(150) NOT NULL,
  `due_amount4` varchar(150) NOT NULL,
  `due_date5` varchar(150) NOT NULL,
  `due_amount5` varchar(150) NOT NULL,
  `followup_date` varchar(150) NOT NULL,
  `reason` varchar(150) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0' COMMENT '0=>no_change, 1=>change'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_furtherInterestRate`
--

CREATE TABLE `stage3_furtherInterestRate` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `current_rate` varchar(150) NOT NULL,
  `new_rate` varchar(150) NOT NULL,
  `future_payment_amt` varchar(200) NOT NULL,
  `followup_date` varchar(150) NOT NULL,
  `reason` varchar(255) NOT NULL,
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL DEFAULT '0' COMMENT '0=no_change, 1=change',
  `delete_status` int(11) NOT NULL DEFAULT '0' COMMENT '0=not delete, 1= delete'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_FurtherPaymentFrequency`
--

CREATE TABLE `stage3_FurtherPaymentFrequency` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `current` varchar(150) NOT NULL,
  `new` varchar(150) NOT NULL,
  `next_payment_date` varchar(150) NOT NULL,
  `future_payment_amt` varchar(150) NOT NULL,
  `followup_date` varchar(150) NOT NULL,
  `reason` varchar(150) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_furtherPaymentMethod`
--

CREATE TABLE `stage3_furtherPaymentMethod` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `current_method` varchar(200) NOT NULL,
  `new_method` varchar(200) NOT NULL,
  `followup_date` varchar(150) NOT NULL,
  `reason` varchar(150) NOT NULL,
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_hold_interest`
--

CREATE TABLE `stage3_hold_interest` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `contract_date` varchar(150) NOT NULL,
  `loan_amount` varchar(150) NOT NULL,
  `restart_date` varchar(150) NOT NULL,
  `reason_text` text NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_hold_repayment`
--

CREATE TABLE `stage3_hold_repayment` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `contract_date` varchar(150) NOT NULL,
  `loan_amount` varchar(150) NOT NULL,
  `restart_date` varchar(150) NOT NULL,
  `reason_text` text NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_individualAdjustment`
--

CREATE TABLE `stage3_individualAdjustment` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `duedate` varchar(200) NOT NULL,
  `dueamount` varchar(200) NOT NULL,
  `followup_date` varchar(150) NOT NULL,
  `reason` varchar(150) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0' COMMENT '0=>no_change, 1=>change',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_JournalEntry`
--

CREATE TABLE `stage3_JournalEntry` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `entrytype` varchar(150) NOT NULL,
  `journal_type` varchar(150) NOT NULL,
  `amount` varchar(150) NOT NULL,
  `effective_date` varchar(150) NOT NULL,
  `reason` varchar(255) NOT NULL,
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_ledger`
--

CREATE TABLE `stage3_ledger` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `date` varchar(150) NOT NULL,
  `transaction` varchar(150) NOT NULL,
  `transaction_type` varchar(150) NOT NULL COMMENT 'debit,credit',
  `amount` varchar(150) NOT NULL,
  `balance` varchar(150) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `delete_status` int(11) NOT NULL DEFAULT '0' COMMENT '	0=not delete, 1= delete',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_ledger_interest`
--

CREATE TABLE `stage3_ledger_interest` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `date` varchar(250) NOT NULL,
  `current_balance` varchar(150) NOT NULL,
  `daily_interest` varchar(150) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_loanCalculator`
--

CREATE TABLE `stage3_loanCalculator` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `admin_id` int(11) NOT NULL,
  `loan_type` varchar(150) NOT NULL,
  `inc_exc_gst` varchar(150) NOT NULL,
  `loan_amount` varchar(150) NOT NULL,
  `monthly_fee` varchar(150) NOT NULL,
  `establishment_fee` varchar(150) NOT NULL,
  `debit_fee` varchar(150) NOT NULL,
  `other_debit_text1` varchar(150) NOT NULL,
  `other_debit_text2` varchar(255) NOT NULL,
  `other_debit_text3` varchar(255) NOT NULL,
  `other_debit_text4` varchar(255) NOT NULL,
  `other_debit_fee1` varchar(150) NOT NULL,
  `other_debit_fee2` varchar(150) NOT NULL,
  `other_debit_fee3` varchar(150) NOT NULL,
  `other_debit_fee4` varchar(150) NOT NULL,
  `finance_amount` varchar(150) NOT NULL,
  `duration` varchar(150) NOT NULL,
  `contract_date` varchar(150) NOT NULL,
  `first_payment_date` varchar(150) NOT NULL,
  `end_date` varchar(150) NOT NULL,
  `frequency` varchar(150) NOT NULL,
  `percentage_rate` varchar(150) NOT NULL,
  `customer_rate` varchar(150) NOT NULL,
  `borker_rate` varchar(150) NOT NULL,
  `broker_fee` varchar(150) NOT NULL,
  `lux_car_tax` varchar(150) NOT NULL,
  `balloon_percent` varchar(150) NOT NULL,
  `balloon_payment` varchar(150) NOT NULL,
  `adv_payment` varchar(150) NOT NULL,
  `payment_method` varchar(150) NOT NULL,
  `weekly_amt` varchar(150) NOT NULL,
  `paymentcount` varchar(150) NOT NULL,
  `annual_cost_rate` varchar(150) NOT NULL,
  `total_payable` varchar(150) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `stage3_loanCalculator`
--

INSERT INTO `stage3_loanCalculator` (`id`, `RentalID`, `user_id`, `admin_id`, `loan_type`, `inc_exc_gst`, `loan_amount`, `monthly_fee`, `establishment_fee`, `debit_fee`, `other_debit_text1`, `other_debit_text2`, `other_debit_text3`, `other_debit_text4`, `other_debit_fee1`, `other_debit_fee2`, `other_debit_fee3`, `other_debit_fee4`, `finance_amount`, `duration`, `contract_date`, `first_payment_date`, `end_date`, `frequency`, `percentage_rate`, `customer_rate`, `borker_rate`, `broker_fee`, `lux_car_tax`, `balloon_percent`, `balloon_payment`, `adv_payment`, `payment_method`, `weekly_amt`, `paymentcount`, `annual_cost_rate`, `total_payable`, `status`, `timestamp`) VALUES
(1, 79533, 101, 29, 'sacc', '', '1,500', '20', '11', '1', '', '', '', '', '', '', '', '', '11', '52', '04/12/2020', '18/12/2020', '03/12/2021', 'Fortnightly', '10', '', '', '', '', '', '', '', 'Direct Debit', '74.88', '26', '29.80000', '1,947', 0, '2020-12-03 07:56:56'),
(2, 12363, 96, 50, 'sacc', '', '2,000', '', '400', '', '', '', '', '', '', '', '', '', '', '52', '07/12/2020', '14/12/2020', '06/12/2021', 'Weekly', '48', '', '', '', '', '', '', '', 'Direct Debit', '64.62', '52', '68.00000', '3,360', 0, '2020-12-07 02:38:11'),
(3, 12362, 96, 50, 'sacc', '', '1,500', '', '400', '', '', '', '', '', '', '', '', '', '1,900', '52', '10/12/2020', '17/12/2020', '09/12/2021', 'Weekly', '24', '', '', '', '', '', '', '', 'Direct Debit', '43.46', '52', '50.66667', '2,260', 0, '2020-12-07 23:04:22'),
(4, 85756, 53, 29, 'Chattel', 'Ex GST', '14,500', '', '1,540', '', '', '', '', '', '', '', '', '', '2', '23', '08/01/2021', '15/01/2021', '18/06/2021', 'Weekly', '2', '4', '3', '100', 'No', '10', '25', '1', 'Direct Debit', '658.99', '22', '0', '15,815.76', 0, '2021-01-08 07:21:51'),
(5, 85761, 101, 29, 'Chattel', 'Inc GST', '145,000', '', '4,000', '', '', '', '', '', '', '', '', '', '150,800', '48', '01/01/2021', '01/02/2021', '01/12/2021', 'Monthly', '5.3', '7.67819', '4', '5800', 'No', '6', '250', '1', 'Direct Debit', '14,658.73', '10', '93.89581', '175,904.76', 0, '2021-01-15 05:26:52'),
(6, 12364, 53, 29, 'Rental', 'Ex GST', '124', '', '200', '', '', '', '', '', '', '', '', '', '100', '1', '08/02/2021', '15/02/2021', '22/02/2021', 'Weekly', '1', '2', '3', '1', 'No', '11', '1', '1', 'Direct Debit', '0', '1', '0', '0', 0, '2021-02-08 10:46:01');

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

--
-- Table structure for table `stage3_loanCalculatorList`
--

CREATE TABLE `stage3_loanCalculatorList` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `agentID` int(11) NOT NULL,
  `loan_type` varchar(150) NOT NULL,
  `date` varchar(150) NOT NULL,
  `cashflow` varchar(150) NOT NULL,
  `interest_added` varchar(150) NOT NULL,
  `balance` varchar(150) NOT NULL,
  `pv_cashflow` varchar(150) NOT NULL,
  `total_pmt` varchar(150) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_loanCalculatorListOriginal`
--

CREATE TABLE `stage3_loanCalculatorListOriginal` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `agentID` int(11) NOT NULL,
  `loan_type` varchar(200) NOT NULL,
  `date_due` varchar(200) NOT NULL,
  `transaction_no` int(11) NOT NULL,
  `transaction` varchar(200) NOT NULL,
  `amount_due` varchar(200) NOT NULL,
  `payment_paid` varchar(200) NOT NULL,
  `debit` varchar(200) NOT NULL,
  `credit` varchar(200) NOT NULL,
  `balance` varchar(200) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_loanCalculatorListUpdated`
--

CREATE TABLE `stage3_loanCalculatorListUpdated` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `agentID` int(11) NOT NULL,
  `loan_type` varchar(200) NOT NULL,
  `date_due` varchar(200) NOT NULL,
  `transaction_no` int(11) NOT NULL,
  `transaction` varchar(200) NOT NULL,
  `amount_due` varchar(200) NOT NULL,
  `payment_paid` varchar(200) NOT NULL,
  `debit` varchar(200) NOT NULL,
  `credit` varchar(200) NOT NULL,
  `balance` varchar(200) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0' COMMENT '0=>due,1 => paid,2=>partially paid',
  `missed_paymentfee_status` int(11) NOT NULL DEFAULT '0',
  `additional_status` varchar(10) NOT NULL DEFAULT 'no',
  `delete_status` int(11) NOT NULL DEFAULT '0' COMMENT '0=not delete, 1= delete',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_loan_notes`
--

CREATE TABLE `stage3_loan_notes` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `Notes` text NOT NULL,
  `type` varchar(20) NOT NULL,
  `followup_date` varchar(30) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `delete_status` int(11) NOT NULL DEFAULT '0' COMMENT '0=not delete, 1= delete',
  `time` int(11) NOT NULL,
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_manualPayment`
--

CREATE TABLE `stage3_manualPayment` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `effectiveDate` varchar(150) NOT NULL,
  `allocated` varchar(150) NOT NULL,
  `received` varchar(150) NOT NULL,
  `howPaid` varchar(150) NOT NULL,
  `amount` varchar(150) NOT NULL,
  `receivedFrom` varchar(150) NOT NULL,
  `receipt` varchar(150) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_missed_payment_action`
--

CREATE TABLE `stage3_missed_payment_action` (
  `id` int(11) NOT NULL,
  `payment_id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `agent_id` int(11) NOT NULL,
  `paymentdefault` varchar(20) NOT NULL,
  `chargefee` varchar(20) NOT NULL,
  `sendletters` varchar(20) NOT NULL,
  `amount` varchar(20) NOT NULL,
  `letterstype` varchar(150) NOT NULL,
  `followupnote` text NOT NULL,
  `date_due` date DEFAULT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_payoutextra`
--

CREATE TABLE `stage3_payoutextra` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `amount` varchar(100) NOT NULL,
  `date` varchar(20) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stage3_security_details`
--

CREATE TABLE `stage3_security_details` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `admin_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `description` varchar(255) NOT NULL,
  `type` varchar(255) NOT NULL,
  `engine_no` varchar(255) NOT NULL,
  `vin_no` varchar(255) NOT NULL,
  `registration` varchar(255) NOT NULL,
  `colour` varchar(255) NOT NULL,
  `serialno` varchar(255) NOT NULL,
  `model` varchar(255) NOT NULL,
  `year` varchar(255) NOT NULL,
  `value` varchar(255) NOT NULL,
  `ppsr_registration` varchar(250) NOT NULL,
  `ppsr_token` varchar(250) NOT NULL,
  `expiry_date` varchar(250) NOT NULL,
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `store`
--

CREATE TABLE `store` (
  `store_id` int(150) NOT NULL,
  `store_code` varchar(150) DEFAULT NULL,
  `store_name` varchar(200) DEFAULT NULL,
  `store_email` varchar(250) DEFAULT NULL,
  `store_icon` varchar(200) DEFAULT NULL,
  `quote_no` char(5) NOT NULL DEFAULT '0',
  `database_username` varchar(250) DEFAULT NULL,
  `database_acess` varchar(250) DEFAULT NULL,
  `store_phone` varchar(15) DEFAULT NULL,
  `store_bg_color` varchar(50) DEFAULT NULL COMMENT '(background-color)',
  `store_fg_color` varchar(50) DEFAULT NULL COMMENT '(forground-color)',
  `store_bog_color` varchar(50) DEFAULT NULL COMMENT 'Boxes Color',
  `store_bt_color` varchar(50) DEFAULT NULL COMMENT 'Buttons Color',
  `store_abt_color` varchar(50) DEFAULT NULL COMMENT 'Add Buttons Color',
  `store_leftsidebar_color` varchar(30) NOT NULL,
  `store_menu_color` varchar(30) NOT NULL,
  `store_calculator_color` varchar(30) NOT NULL,
  `store_clintportal_box_color` varchar(20) DEFAULT NULL,
  `delete_status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `store`
--

INSERT INTO `store` (`store_id`, `store_code`, `store_name`, `store_email`, `store_icon`, `quote_no`, `database_username`, `database_acess`, `store_phone`, `store_bg_color`, `store_fg_color`, `store_bog_color`, `store_bt_color`, `store_abt_color`, `store_leftsidebar_color`, `store_menu_color`, `store_calculator_color`, `store_clintportal_box_color`, `delete_status`) VALUES
(2, 'A&C', 'Anubhav & Com.', 'anubhav.immanentsolutions@gmail.com', '1678863449logo.png', '0', 'demo', 'site_dBhBhgCw', '7508829093', '#b5bab9', '#ffffff', '#c5e1f7', '#2c3763', '#ea9739', '#5a5353', '#c8e4e4', '#dc8eda', NULL, 0);

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

--
-- Table structure for table `store_jot`
--

CREATE TABLE `store_jot` (
  `store_id` int(11) NOT NULL,
  `submission_id` varchar(200) NOT NULL,
  `unique_id` varchar(150) NOT NULL,
  `store_code` varchar(200) DEFAULT NULL,
  `store_name` varchar(200) DEFAULT NULL,
  `company_name` varchar(255) NOT NULL,
  `store_email` varchar(200) DEFAULT NULL,
  `store_icon` varchar(200) DEFAULT NULL,
  `firstname` varchar(200) DEFAULT NULL,
  `lastname` varchar(200) DEFAULT NULL,
  `database_username` varchar(255) DEFAULT NULL,
  `database_acess` varchar(200) DEFAULT NULL,
  `store_phone` varchar(200) DEFAULT NULL,
  `delete_status` int(11) DEFAULT '0',
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `superannuation_assets`
--

CREATE TABLE `superannuation_assets` (
  `id` int(11) NOT NULL,
  `RentalID` int(11) NOT NULL,
  `account_name` varchar(100) NOT NULL,
  `account_number` varchar(150) NOT NULL,
  `institution` varchar(150) NOT NULL,
  `ownership` varchar(150) NOT NULL,
  `value` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` varchar(50) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `director_number` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `superannuation_assets`
--

INSERT INTO `superannuation_assets` (`id`, `RentalID`, `account_name`, `account_number`, `institution`, `ownership`, `value`, `status`, `timestamp`, `date`, `director_number`) VALUES
(1, 101, '', '', '', '', '', 0, '1674026546', '2023-01-10 11:10:39', 'one'),
(2, 102, '', '', '', '', '', 0, '1674212372', '2023-01-20 10:59:32', 'one'),
(3, 103, '', '', '', '', '', 0, '1674564245', '2023-01-24 12:44:05', 'one'),
(4, 105, '', '', '', '', '', 0, '1677653647', '2023-03-01 06:54:07', 'one'),
(5, 106, '', '', '', '', '', 0, '1677664242', '2023-03-01 09:50:34', 'one'),
(6, 111, '', '', '', '', '', 0, '1678099367', '2023-03-06 05:49:14', 'one'),
(7, 112, '', '', '', '', '', 0, '1678362010', '2023-03-09 04:15:29', 'one'),
(8, 113, '', '', '', '', '', 0, '1678361005', '2023-03-09 10:33:07', 'one'),
(9, 115, '', '', '', '', '', 0, '1678423301', '2023-03-10 04:41:41', 'one'),
(10, 114, '', '', '', '', '', 0, '1678687664', '2023-03-13 06:07:44', 'one'),
(11, 114, '', '', '', '', '', 0, '1678687664', '2023-03-13 06:07:44', 'one'),
(12, 116, '', '', '', '', '', 0, '1678700692', '2023-03-13 09:15:43', 'one'),
(13, 119, '', '', '', '', '', 0, '1678790107', '2023-03-13 12:26:17', 'one'),
(14, 120, '', '', '', '', '', 0, '1678859740', '2023-03-14 07:46:38', 'one'),
(15, 121, '', '', '', '', '', 0, '1678953095', '2023-03-16 07:51:35', 'one'),
(16, 122, '', '', '', '', '', 0, '1679050568', '2023-03-17 00:08:03', 'one'),
(17, 107, '', '', '', '', '', 0, '1681787755', '2023-04-18 03:15:55', 'one'),
(18, 123, 'kerry regan', '123123123123', 'swan', '100', '450,000', 0, '1697453008', '2023-04-18 23:29:07', 'one'),
(19, 124, '', '', '', '', '', 0, '1689901421', '2023-07-18 11:18:18', 'one'),
(20, 123, '', '', '', '', '', 0, '1695885761', '2023-09-28 07:22:41', 'three'),
(21, 123, 'Sun super', '556775543', 'Super', '100', '30,000', 0, '1696827610', '2023-10-09 04:24:23', 'two'),
(22, 125, '', '', '', '', '', 0, '1696828570', '2023-10-09 05:16:10', 'one'),
(23, 137, '', '', '', '', '', 0, '1701316855', '2023-11-30 00:35:12', 'one'),
(24, 137, '', '', '', '', '', 0, '1701316855', '2023-11-30 04:00:55', 'one');

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

--
-- Table structure for table `team_notes`
--

CREATE TABLE `team_notes` (
  `id` int(11) NOT NULL,
  `agentID` int(11) NOT NULL,
  `sender_id` int(11) NOT NULL,
  `receiver_id` int(11) NOT NULL,
  `description` text NOT NULL,
  `type` varchar(50) NOT NULL COMMENT 'public/private',
  `timestamp` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0' COMMENT '0=>active, 1=>inactive',
  `create_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `team_notes`
--

INSERT INTO `team_notes` (`id`, `agentID`, `sender_id`, `receiver_id`, `description`, `type`, `timestamp`, `status`, `create_date`) VALUES
(1, 2, 2, 2, 'gfhfghfhfghf', 'public', '1673596043', 0, '2023-01-13 07:47:23'),
(2, 2, 2, 2, 'David H test 1 ', 'public', '1696821430', 0, '2023-10-09 03:17:10'),
(3, 2, 2, 2, 'Test KR', 'public', '1698716196', 0, '2023-10-31 01:36:36'),
(4, 2, 2, 4, 'Test David H', 'private', '1701300575', 0, '2023-11-29 23:29:35');

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

--
-- Table structure for table `testing`
--

CREATE TABLE `testing` (
  `id` int(11) NOT NULL,
  `name` varchar(100) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `timezones`
--

CREATE TABLE `timezones` (
  `id` int(11) NOT NULL,
  `name` varchar(31) NOT NULL,
  `zone` varchar(272) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `total_budget_income`
--

CREATE TABLE `total_budget_income` (
  `id` int(11) NOT NULL,
  `rent_loan_id` int(11) NOT NULL,
  `type` varchar(20) NOT NULL,
  `total_income` varchar(20) NOT NULL,
  `total_expenses` varchar(20) NOT NULL,
  `total_balance` varchar(20) NOT NULL,
  `available` varchar(20) NOT NULL,
  `delete_status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `to_do`
--

CREATE TABLE `to_do` (
  `id` int(11) NOT NULL,
  `agentID` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `receiver_id` int(11) NOT NULL,
  `description` text NOT NULL,
  `type` varchar(255) NOT NULL DEFAULT 'public',
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `date_timestamp` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0' COMMENT '(0=new,1=arcive)'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `to_do`
--

INSERT INTO `to_do` (`id`, `agentID`, `user_id`, `receiver_id`, `description`, `type`, `date`, `date_timestamp`, `status`) VALUES
(1, 2, 2, 2, 'jhbjhgjhgk', 'public', '2023-03-16 01:17:08', '1701300531', 1),
(2, 2, 2, 4, 'Test to do David H', 'private', '2023-11-29 23:28:30', '1701300528', 1);

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

--
-- Table structure for table `user`
--

CREATE TABLE `user` (
  `user_id` int(100) NOT NULL,
  `pin` varchar(200) NOT NULL,
  `fname` varchar(250) NOT NULL,
  `lname` varchar(250) NOT NULL,
  `phone` varchar(15) NOT NULL,
  `email` varchar(60) NOT NULL,
  `store_code` varchar(200) NOT NULL,
  `admin_status` varchar(250) NOT NULL,
  `short_name` varchar(200) NOT NULL,
  `username` varchar(20) NOT NULL,
  `user_level_type` varchar(70) NOT NULL DEFAULT '1',
  `user_type` varchar(20) NOT NULL,
  `affiliated_to` varchar(250) NOT NULL DEFAULT 'user',
  `login_type_user` varchar(20) NOT NULL DEFAULT 'user',
  `permissions` text NOT NULL,
  `sub_admin_id` int(11) NOT NULL DEFAULT '0',
  `is_active` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `user`
--

INSERT INTO `user` (`user_id`, `pin`, `fname`, `lname`, `phone`, `email`, `store_code`, `admin_status`, `short_name`, `username`, `user_level_type`, `user_type`, `affiliated_to`, `login_type_user`, `permissions`, `sub_admin_id`, `is_active`) VALUES
(2, '12345678', 'Anubhav', 'Sawhney', '7508829093', 'anu@yopmail.com', '2', 'active', 'AS', 'Anubhav', '1', 'qualified', 'user', 'user', '', 0, 0),
(3, '12345678', 'puneet', 'thakur', '9459060640', 'puneet.immanent@gmail.com', '2', 'active', 'puneet', 'puneet', '1', 'qualified', 'user', 'user', '', 0, 0),
(4, 'dhdhdhdh', 'David', 'Holwerda', '4182089014', 'david@datasafeapps.com.au', '2', 'active', 'DLH', 'DavidHforwardfunding', '1', 'qualified', 'user', 'user', '', 0, 0),
(5, ' Lease12', 'David', 'Prior', '0403244480', 'david@forwardfunding.com.au', '2', 'active', 'DPF', 'DavidPriorFF', '1', 'qualified', 'user', 'user', '', 0, 0),
(6, 'Lease123', 'Wendy', 'Prior', '0403244481', 'wendy@forwardfunding.com.au', '2', 'active', 'WPF', ' WendyPriorFF', '1', 'qualified', 'user', 'user', '', 0, 0);

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

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` int(11) NOT NULL,
  `fname` varchar(50) NOT NULL,
  `lname` varchar(50) NOT NULL,
  `email` varchar(64) NOT NULL,
  `phone` varchar(16) DEFAULT NULL,
  `address` varchar(256) DEFAULT NULL,
  `password` varchar(256) NOT NULL,
  `avatar` varchar(256) DEFAULT NULL,
  `status` enum('Active','Suspended','Inactive') NOT NULL,
  `token` varchar(256) DEFAULT NULL,
  `company` int(11) NOT NULL,
  `role` enum('admin','staff','superadmin','user') NOT NULL DEFAULT 'user',
  `permissions` varchar(256) NOT NULL DEFAULT '["upload","edit","delete"]',
  `signature` varchar(500) DEFAULT NULL,
  `initials` varchar(100) DEFAULT NULL,
  `lastnotification` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `hiddenfiles` text,
  `timezone` varchar(256) NOT NULL DEFAULT 'Africa/Nairobi',
  `lang` varchar(16) NOT NULL DEFAULT 'en_US'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `fname`, `lname`, `email`, `phone`, `address`, `password`, `avatar`, `status`, `token`, `company`, `role`, `permissions`, `signature`, `initials`, `lastnotification`, `hiddenfiles`, `timezone`, `lang`) VALUES
(2, 'Anubhav', 'Sawhney', 'anu@yopmail.com', NULL, NULL, '5d819fa069f496e5482020e9c7f84c25f236107066cd4d8341c3aa7974381212', NULL, 'Active', NULL, 2, 'user', '[\"upload\",\"edit\",\"delete\"]', NULL, NULL, '2023-01-18 11:06:03', NULL, 'Africa/Nairobi', 'en_US'),
(3, 'puneet', 'thakur', 'puneet.immanent@gmail.com', NULL, NULL, '5d819fa069f496e5482020e9c7f84c25f236107066cd4d8341c3aa7974381212', NULL, 'Active', NULL, 2, 'user', '[\"upload\",\"edit\",\"delete\"]', NULL, NULL, '2023-03-14 06:22:54', NULL, 'Africa/Nairobi', 'en_US');

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

--
-- Table structure for table `user_jot`
--

CREATE TABLE `user_jot` (
  `user_id` int(11) NOT NULL,
  `jot_id` varchar(200) NOT NULL,
  `unique_id` varchar(225) NOT NULL,
  `pin` varchar(50) NOT NULL,
  `email` varchar(250) NOT NULL,
  `phone` varchar(100) NOT NULL,
  `fname` varchar(200) NOT NULL,
  `lname` varchar(200) NOT NULL,
  `short_name` varchar(200) NOT NULL,
  `username` varchar(200) NOT NULL,
  `user_type` varchar(200) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table ` various_data`
--

CREATE TABLE ` various_data` (
  `ClientID` int(6) NOT NULL,
  `GeneralID` varchar(35) NOT NULL,
  `QuoteNumber1` varchar(8) NOT NULL,
  `PurchaseValue` int(9) NOT NULL,
  `WeeklyPaymentsBSR` int(9) NOT NULL,
  `TotalAmountPayable` int(9) NOT NULL,
  `DiscountExportBSR` int(9) NOT NULL,
  `ContractNumberBSR` varchar(9) NOT NULL,
  `OfferExportBSR` int(7) NOT NULL,
  `Term2BSR` int(9) NOT NULL,
  `Weekly` varchar(9) NOT NULL,
  `StartContractBSR` varchar(10) NOT NULL,
  `FirstPaymentBSR` varchar(10) NOT NULL,
  `TotalAmountWK1` int(9) NOT NULL,
  `TotalAmountWK2` int(9) NOT NULL,
  `TotalAmountWK3` int(9) NOT NULL,
  `TotalAmountWK4` int(9) NOT NULL,
  `TotalAmountWK5` int(9) NOT NULL,
  `TotalAmountAll1` int(9) NOT NULL,
  `TotalAmountAll2` int(9) NOT NULL,
  `TotalAmountAll3` int(9) NOT NULL,
  `TotalAmountAll4` int(9) NOT NULL,
  `TotalAmountAll5` int(9) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `verfication_list`
--

CREATE TABLE `verfication_list` (
  `id` int(11) NOT NULL,
  `name` varchar(250) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '1',
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `verification_points_levels`
--

CREATE TABLE `verification_points_levels` (
  `id` int(11) NOT NULL,
  `category_id` int(11) NOT NULL,
  `points` int(11) NOT NULL,
  `levels` varchar(250) NOT NULL,
  `company_id` int(11) NOT NULL,
  `updated_date` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `verification_score_overall`
--

CREATE TABLE `verification_score_overall` (
  `id` int(11) NOT NULL,
  `total` varchar(20) NOT NULL,
  `type` varchar(50) NOT NULL,
  `level` int(11) NOT NULL,
  `company_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `warning_details`
--

CREATE TABLE `warning_details` (
  `id` int(11) NOT NULL,
  `rent_loan_id` int(11) NOT NULL,
  `type` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '1' COMMENT '1=>accepted , 0=>denied',
  `timestamp` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `wp_cc_gst_amount`
--

CREATE TABLE `wp_cc_gst_amount` (
  `id` int(11) NOT NULL,
  `eqpmt_id` int(11) NOT NULL DEFAULT '0',
  `finance_id` int(11) NOT NULL DEFAULT '0',
  `name` varchar(1500) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Metro Finance Pty Ltd',
  `min_amount` varchar(1500) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
  `max_amount` varchar(1500) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
  `rate_of_interest` varchar(1500) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0.00',
  `pfc_broker_percent` varchar(1500) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0.00',
  `pfc_direct_percent` varchar(1500) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0.00',
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `wp_cc_gst_equipments`
--

CREATE TABLE `wp_cc_gst_equipments` (
  `id` int(11) NOT NULL,
  `name` varchar(1500) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(1500) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `wp_cc_gst_equipment_types`
--

CREATE TABLE `wp_cc_gst_equipment_types` (
  `id` int(11) NOT NULL,
  `eqpmt_id` int(11) NOT NULL DEFAULT '0',
  `name` varchar(1500) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(1500) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `wp_cc_gst_finance_type`
--

CREATE TABLE `wp_cc_gst_finance_type` (
  `id` int(11) NOT NULL,
  `name` varchar(1500) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(1500) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Indexes for dumped tables
--

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

--
-- Indexes for table `archive_bank_account_details`
--
ALTER TABLE `archive_bank_account_details`
  ADD PRIMARY KEY (`bank_id`),
  ADD UNIQUE KEY `loan_rent_id` (`loan_rent_id`);

--
-- Indexes for table `archive_benefits_client1`
--
ALTER TABLE `archive_benefits_client1`
  ADD PRIMARY KEY (`benefits_id_client1`);

--
-- Indexes for table `archive_benefits_client2`
--
ALTER TABLE `archive_benefits_client2`
  ADD PRIMARY KEY (`benefit_id_client2`);

--
-- Indexes for table `archive_budget_expenses_client1`
--
ALTER TABLE `archive_budget_expenses_client1`
  ADD PRIMARY KEY (`b_expenses_id_client1`);

--
-- Indexes for table `archive_budget_expenses_client2`
--
ALTER TABLE `archive_budget_expenses_client2`
  ADD PRIMARY KEY (`b_expenses_id_client2`);

--
-- Indexes for table `archive_budget_income_client1`
--
ALTER TABLE `archive_budget_income_client1`
  ADD PRIMARY KEY (`budget_id_client1`);

--
-- Indexes for table `archive_budget_income_client2`
--
ALTER TABLE `archive_budget_income_client2`
  ADD PRIMARY KEY (`budget_id_client2`);

--
-- Indexes for table `archive_children_client1`
--
ALTER TABLE `archive_children_client1`
  ADD PRIMARY KEY (`children_id`);

--
-- Indexes for table `archive_children_client2`
--
ALTER TABLE `archive_children_client2`
  ADD PRIMARY KEY (`children_id`);

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

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

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

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

--
-- Indexes for table `archive_client_1`
--
ALTER TABLE `archive_client_1`
  ADD PRIMARY KEY (`ClientID`);

--
-- Indexes for table `archive_client_2`
--
ALTER TABLE `archive_client_2`
  ADD PRIMARY KEY (`ClientID`);

--
-- Indexes for table `archive_client_expenses`
--
ALTER TABLE `archive_client_expenses`
  ADD PRIMARY KEY (`ClientID`);

--
-- Indexes for table `archive_client_income`
--
ALTER TABLE `archive_client_income`
  ADD PRIMARY KEY (`ClientID`);

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

--
-- Indexes for table `archive_client_refrences`
--
ALTER TABLE `archive_client_refrences`
  ADD PRIMARY KEY (`ClientID`);

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

--
-- Indexes for table `archive_entertainment_client1`
--
ALTER TABLE `archive_entertainment_client1`
  ADD PRIMARY KEY (`entertainment_id`);

--
-- Indexes for table `archive_entertainment_client2`
--
ALTER TABLE `archive_entertainment_client2`
  ADD PRIMARY KEY (`entertainment_id`);

--
-- Indexes for table `archive_Images`
--
ALTER TABLE `archive_Images`
  ADD PRIMARY KEY (`ID`),
  ADD UNIQUE KEY `ID` (`ID`);

--
-- Indexes for table `archive_loan_calculator`
--
ALTER TABLE `archive_loan_calculator`
  ADD UNIQUE KEY `ID` (`ID`);

--
-- Indexes for table `archive_notes`
--
ALTER TABLE `archive_notes`
  ADD PRIMARY KEY (`ClientID`);

--
-- Indexes for table `archive_other_expenses_client1`
--
ALTER TABLE `archive_other_expenses_client1`
  ADD PRIMARY KEY (`other_exp_id`);

--
-- Indexes for table `archive_other_expenses_client2`
--
ALTER TABLE `archive_other_expenses_client2`
  ADD PRIMARY KEY (`other_exp_id`);

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

--
-- Indexes for table `archive_personal_expenses_client1`
--
ALTER TABLE `archive_personal_expenses_client1`
  ADD PRIMARY KEY (`personal_expense_id`);

--
-- Indexes for table `archive_personal_expenses_client2`
--
ALTER TABLE `archive_personal_expenses_client2`
  ADD PRIMARY KEY (`personal_expens`);

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

--
-- Indexes for table `archive_rental_goods`
--
ALTER TABLE `archive_rental_goods`
  ADD PRIMARY KEY (`ClientID`);

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

--
-- Indexes for table `archive_rental_goods_vehicles_old`
--
ALTER TABLE `archive_rental_goods_vehicles_old`
  ADD PRIMARY KEY (`ClientID`);

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

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

--
-- Indexes for table `bank_account_details`
--
ALTER TABLE `bank_account_details`
  ADD PRIMARY KEY (`bank_id`),
  ADD UNIQUE KEY `loan_rent_id` (`loan_rent_id`);

--
-- Indexes for table `benefits_client1`
--
ALTER TABLE `benefits_client1`
  ADD PRIMARY KEY (`benefits_id_client1`);

--
-- Indexes for table `benefits_client2`
--
ALTER TABLE `benefits_client2`
  ADD PRIMARY KEY (`benefit_id_client2`);

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

--
-- Indexes for table `budget_expenses_client1`
--
ALTER TABLE `budget_expenses_client1`
  ADD PRIMARY KEY (`b_expenses_id_client1`);

--
-- Indexes for table `budget_expenses_client2`
--
ALTER TABLE `budget_expenses_client2`
  ADD PRIMARY KEY (`b_expenses_id_client2`);

--
-- Indexes for table `budget_income_client1`
--
ALTER TABLE `budget_income_client1`
  ADD PRIMARY KEY (`budget_id_client1`);

--
-- Indexes for table `budget_income_client2`
--
ALTER TABLE `budget_income_client2`
  ADD PRIMARY KEY (`budget_id_client2`);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `centrelink`
--
ALTER TABLE `centrelink`
  ADD PRIMARY KEY (`ClientID`);

--
-- Indexes for table `children_client1`
--
ALTER TABLE `children_client1`
  ADD PRIMARY KEY (`children_id`);

--
-- Indexes for table `children_client2`
--
ALTER TABLE `children_client2`
  ADD PRIMARY KEY (`children_id`);

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

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

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

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

--
-- Indexes for table `client_1`
--
ALTER TABLE `client_1`
  ADD PRIMARY KEY (`ClientID`);

--
-- Indexes for table `client_1_property_history`
--
ALTER TABLE `client_1_property_history`
  ADD PRIMARY KEY (`ClientID`);

--
-- Indexes for table `client_2`
--
ALTER TABLE `client_2`
  ADD PRIMARY KEY (`ClientID`);

--
-- Indexes for table `client_2_property_history`
--
ALTER TABLE `client_2_property_history`
  ADD PRIMARY KEY (`ClientID`);

--
-- Indexes for table `client_expenses`
--
ALTER TABLE `client_expenses`
  ADD PRIMARY KEY (`ClientID`);

--
-- Indexes for table `client_income`
--
ALTER TABLE `client_income`
  ADD PRIMARY KEY (`ClientID`);

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

--
-- Indexes for table `client_refrences`
--
ALTER TABLE `client_refrences`
  ADD PRIMARY KEY (`ClientID`);

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

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `departments`
--
ALTER TABLE `departments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `company` (`company`);

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

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

--
-- Indexes for table `entertainment_client1`
--
ALTER TABLE `entertainment_client1`
  ADD PRIMARY KEY (`entertainment_id`);

--
-- Indexes for table `entertainment_client2`
--
ALTER TABLE `entertainment_client2`
  ADD PRIMARY KEY (`entertainment_id`);

--
-- Indexes for table `fields`
--
ALTER TABLE `fields`
  ADD PRIMARY KEY (`id`),
  ADD KEY `company` (`company`),
  ADD KEY `user` (`user`);

--
-- Indexes for table `files`
--
ALTER TABLE `files`
  ADD UNIQUE KEY `id` (`id`),
  ADD UNIQUE KEY `sharing_key` (`document_key`),
  ADD KEY `company` (`company`),
  ADD KEY `uploaded_by` (`uploaded_by`);

--
-- Indexes for table `folders`
--
ALTER TABLE `folders`
  ADD UNIQUE KEY `id` (`id`),
  ADD KEY `created_by` (`created_by`),
  ADD KEY `company` (`company`),
  ADD KEY `folder` (`folder`);

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

--
-- Indexes for table `Images`
--
ALTER TABLE `Images`
  ADD PRIMARY KEY (`ID`),
  ADD UNIQUE KEY `ID` (`ID`);

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

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

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

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

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

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

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

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

--
-- Indexes for table `Loan_calculator`
--
ALTER TABLE `Loan_calculator`
  ADD UNIQUE KEY `ID` (`ID`);

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

--
-- Indexes for table `loan_rental_images`
--
ALTER TABLE `loan_rental_images`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `id` (`id`);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `notes`
--
ALTER TABLE `notes`
  ADD PRIMARY KEY (`ClientID`);

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

--
-- Indexes for table `notifications`
--
ALTER TABLE `notifications`
  ADD UNIQUE KEY `id` (`id`),
  ADD KEY `user` (`user`);

--
-- Indexes for table `occupation_1`
--
ALTER TABLE `occupation_1`
  ADD PRIMARY KEY (`ClientID`);

--
-- Indexes for table `occupation_2`
--
ALTER TABLE `occupation_2`
  ADD PRIMARY KEY (`ClientID`);

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

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

--
-- Indexes for table `other_expenses_client1`
--
ALTER TABLE `other_expenses_client1`
  ADD PRIMARY KEY (`other_exp_id`);

--
-- Indexes for table `other_expenses_client2`
--
ALTER TABLE `other_expenses_client2`
  ADD PRIMARY KEY (`other_exp_id`);

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

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

--
-- Indexes for table `personal_expenses_client1`
--
ALTER TABLE `personal_expenses_client1`
  ADD PRIMARY KEY (`personal_expense_id`);

--
-- Indexes for table `personal_expenses_client2`
--
ALTER TABLE `personal_expenses_client2`
  ADD PRIMARY KEY (`personal_expens`);

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `reminders`
--
ALTER TABLE `reminders`
  ADD PRIMARY KEY (`id`),
  ADD KEY `company` (`company`);

--
-- Indexes for table `rental_goods`
--
ALTER TABLE `rental_goods`
  ADD PRIMARY KEY (`ClientID`);

--
-- Indexes for table `rental_goods_location_details`
--
ALTER TABLE `rental_goods_location_details`
  ADD PRIMARY KEY (`ClientID`);

--
-- Indexes for table `rental_goods_vehicles`
--
ALTER TABLE `rental_goods_vehicles`
  ADD PRIMARY KEY (`ClientID`);

--
-- Indexes for table `rental_goods_vehicles_old`
--
ALTER TABLE `rental_goods_vehicles_old`
  ADD PRIMARY KEY (`ClientID`);

--
-- Indexes for table `rental_goods_vehicles_stage_two`
--
ALTER TABLE `rental_goods_vehicles_stage_two`
  ADD PRIMARY KEY (`ClientID`);

--
-- Indexes for table `requests`
--
ALTER TABLE `requests`
  ADD PRIMARY KEY (`id`),
  ADD KEY `file` (`document`),
  ADD KEY `company` (`company`),
  ADD KEY `user` (`sender`);

--
-- Indexes for table `rm_admin`
--
ALTER TABLE `rm_admin`
  ADD PRIMARY KEY (`admin_id`),
  ADD UNIQUE KEY `admin_email` (`admin_email`),
  ADD UNIQUE KEY `admin_user` (`admin_user`);

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

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

--
-- Indexes for table `security`
--
ALTER TABLE `security`
  ADD PRIMARY KEY (`SecurityID`);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `store`
--
ALTER TABLE `store`
  ADD PRIMARY KEY (`store_id`);

--
-- Indexes for table `store_jot`
--
ALTER TABLE `store_jot`
  ADD PRIMARY KEY (`store_id`);

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

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

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

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

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

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

--
-- Indexes for table `user`
--
ALTER TABLE `user`
  ADD PRIMARY KEY (`user_id`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `email` (`email`),
  ADD KEY `company` (`company`);

--
-- Indexes for table `user_jot`
--
ALTER TABLE `user_jot`
  ADD PRIMARY KEY (`user_id`);

--
-- Indexes for table ` various_data`
--
ALTER TABLE ` various_data`
  ADD PRIMARY KEY (`ClientID`);

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `accounts`
--
ALTER TABLE `accounts`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_bank_account_details`
--
ALTER TABLE `archive_bank_account_details`
  MODIFY `bank_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_benefits_client1`
--
ALTER TABLE `archive_benefits_client1`
  MODIFY `benefits_id_client1` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_benefits_client2`
--
ALTER TABLE `archive_benefits_client2`
  MODIFY `benefit_id_client2` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_budget_expenses_client1`
--
ALTER TABLE `archive_budget_expenses_client1`
  MODIFY `b_expenses_id_client1` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_budget_expenses_client2`
--
ALTER TABLE `archive_budget_expenses_client2`
  MODIFY `b_expenses_id_client2` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_budget_income_client1`
--
ALTER TABLE `archive_budget_income_client1`
  MODIFY `budget_id_client1` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_budget_income_client2`
--
ALTER TABLE `archive_budget_income_client2`
  MODIFY `budget_id_client2` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_children_client1`
--
ALTER TABLE `archive_children_client1`
  MODIFY `children_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_children_client2`
--
ALTER TABLE `archive_children_client2`
  MODIFY `children_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_client1_employer`
--
ALTER TABLE `archive_client1_employer`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_client1_property`
--
ALTER TABLE `archive_client1_property`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_client2_employer`
--
ALTER TABLE `archive_client2_employer`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_client2_property`
--
ALTER TABLE `archive_client2_property`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_client_1`
--
ALTER TABLE `archive_client_1`
  MODIFY `ClientID` int(6) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_client_2`
--
ALTER TABLE `archive_client_2`
  MODIFY `ClientID` int(6) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_client_product`
--
ALTER TABLE `archive_client_product`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_client_refrences`
--
ALTER TABLE `archive_client_refrences`
  MODIFY `ClientID` int(6) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_client_verification_list`
--
ALTER TABLE `archive_client_verification_list`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_entertainment_client1`
--
ALTER TABLE `archive_entertainment_client1`
  MODIFY `entertainment_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_entertainment_client2`
--
ALTER TABLE `archive_entertainment_client2`
  MODIFY `entertainment_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_Images`
--
ALTER TABLE `archive_Images`
  MODIFY `ID` int(15) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_loan_calculator`
--
ALTER TABLE `archive_loan_calculator`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_notes`
--
ALTER TABLE `archive_notes`
  MODIFY `ClientID` int(6) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_other_expenses_client1`
--
ALTER TABLE `archive_other_expenses_client1`
  MODIFY `other_exp_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_other_expenses_client2`
--
ALTER TABLE `archive_other_expenses_client2`
  MODIFY `other_exp_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_other_expenses_incomes`
--
ALTER TABLE `archive_other_expenses_incomes`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_personal_expenses_client1`
--
ALTER TABLE `archive_personal_expenses_client1`
  MODIFY `personal_expense_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_personal_expenses_client2`
--
ALTER TABLE `archive_personal_expenses_client2`
  MODIFY `personal_expens` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_privacy_details`
--
ALTER TABLE `archive_privacy_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_rental_goods`
--
ALTER TABLE `archive_rental_goods`
  MODIFY `ClientID` int(6) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_rental_goods_vehicles`
--
ALTER TABLE `archive_rental_goods_vehicles`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_rental_goods_vehicles_old`
--
ALTER TABLE `archive_rental_goods_vehicles_old`
  MODIFY `ClientID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_total_budget_income`
--
ALTER TABLE `archive_total_budget_income`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `archive_warning_details`
--
ALTER TABLE `archive_warning_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `bank_account_details`
--
ALTER TABLE `bank_account_details`
  MODIFY `bank_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32;
--
-- AUTO_INCREMENT for table `benefits_client1`
--
ALTER TABLE `benefits_client1`
  MODIFY `benefits_id_client1` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `benefits_client2`
--
ALTER TABLE `benefits_client2`
  MODIFY `benefit_id_client2` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `boat_assets`
--
ALTER TABLE `boat_assets`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;
--
-- AUTO_INCREMENT for table `budget_expenses_client1`
--
ALTER TABLE `budget_expenses_client1`
  MODIFY `b_expenses_id_client1` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `budget_expenses_client2`
--
ALTER TABLE `budget_expenses_client2`
  MODIFY `b_expenses_id_client2` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `budget_income_client1`
--
ALTER TABLE `budget_income_client1`
  MODIFY `budget_id_client1` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `budget_income_client2`
--
ALTER TABLE `budget_income_client2`
  MODIFY `budget_id_client2` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `bulletin`
--
ALTER TABLE `bulletin`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `business_accounts_detail`
--
ALTER TABLE `business_accounts_detail`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `business_accounts_detail_address`
--
ALTER TABLE `business_accounts_detail_address`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=119;
--
-- AUTO_INCREMENT for table `business_address`
--
ALTER TABLE `business_address`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=766;
--
-- AUTO_INCREMENT for table `business_application_jot`
--
ALTER TABLE `business_application_jot`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `business_calculator`
--
ALTER TABLE `business_calculator`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `business_calculator_details`
--
ALTER TABLE `business_calculator_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=117;
--
-- AUTO_INCREMENT for table `business_calculator_type`
--
ALTER TABLE `business_calculator_type`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;
--
-- AUTO_INCREMENT for table `business_credit_detail`
--
ALTER TABLE `business_credit_detail`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `business_credit_detail_address`
--
ALTER TABLE `business_credit_detail_address`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=119;
--
-- AUTO_INCREMENT for table `business_current_assets`
--
ALTER TABLE `business_current_assets`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `business_current_liability`
--
ALTER TABLE `business_current_liability`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `business_detail`
--
ALTER TABLE `business_detail`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=38;
--
-- AUTO_INCREMENT for table `business_directors`
--
ALTER TABLE `business_directors`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=55;
--
-- AUTO_INCREMENT for table `business_directors_address`
--
ALTER TABLE `business_directors_address`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=412;
--
-- AUTO_INCREMENT for table `business_finance`
--
ALTER TABLE `business_finance`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `business_finance_address`
--
ALTER TABLE `business_finance_address`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=49;
--
-- AUTO_INCREMENT for table `business_finance_detail`
--
ALTER TABLE `business_finance_detail`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `business_legal_detail`
--
ALTER TABLE `business_legal_detail`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `business_legal_detail_address`
--
ALTER TABLE `business_legal_detail_address`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=114;
--
-- AUTO_INCREMENT for table `business_long_asset`
--
ALTER TABLE `business_long_asset`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `business_long_liability`
--
ALTER TABLE `business_long_liability`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `business_other_asset`
--
ALTER TABLE `business_other_asset`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `business_other_liability_owner`
--
ALTER TABLE `business_other_liability_owner`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `business_owner_equity`
--
ALTER TABLE `business_owner_equity`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `business_profit_loss`
--
ALTER TABLE `business_profit_loss`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `business_profit_loss_other`
--
ALTER TABLE `business_profit_loss_other`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `business_supplier_detail`
--
ALTER TABLE `business_supplier_detail`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `business_supplier_detail_address`
--
ALTER TABLE `business_supplier_detail_address`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=78;
--
-- AUTO_INCREMENT for table `business_trade_detail`
--
ALTER TABLE `business_trade_detail`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `business_trade_detail_address`
--
ALTER TABLE `business_trade_detail_address`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=119;
--
-- AUTO_INCREMENT for table `category_factors`
--
ALTER TABLE `category_factors`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `children_client1`
--
ALTER TABLE `children_client1`
  MODIFY `children_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `children_client2`
--
ALTER TABLE `children_client2`
  MODIFY `children_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `client1_employer`
--
ALTER TABLE `client1_employer`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `client1_property`
--
ALTER TABLE `client1_property`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `client2_employer`
--
ALTER TABLE `client2_employer`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `client2_property`
--
ALTER TABLE `client2_property`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `client_1`
--
ALTER TABLE `client_1`
  MODIFY `ClientID` int(6) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `client_2`
--
ALTER TABLE `client_2`
  MODIFY `ClientID` int(6) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `client_product`
--
ALTER TABLE `client_product`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `client_refrences`
--
ALTER TABLE `client_refrences`
  MODIFY `ClientID` int(6) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `client_verification_list`
--
ALTER TABLE `client_verification_list`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `clp_climant`
--
ALTER TABLE `clp_climant`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `clp_invoice`
--
ALTER TABLE `clp_invoice`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `clp_notes`
--
ALTER TABLE `clp_notes`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `companies`
--
ALTER TABLE `companies`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=94;
--
-- AUTO_INCREMENT for table `contacts`
--
ALTER TABLE `contacts`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `contact_admin`
--
ALTER TABLE `contact_admin`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `credit_guide_mortgage`
--
ALTER TABLE `credit_guide_mortgage`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `credit_liability`
--
ALTER TABLE `credit_liability`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;
--
-- AUTO_INCREMENT for table `credit_proposal_mortgage`
--
ALTER TABLE `credit_proposal_mortgage`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `departments`
--
ALTER TABLE `departments`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `discloser_polices`
--
ALTER TABLE `discloser_polices`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `document_files`
--
ALTER TABLE `document_files`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
--
-- AUTO_INCREMENT for table `entertainment_client1`
--
ALTER TABLE `entertainment_client1`
  MODIFY `entertainment_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `entertainment_client2`
--
ALTER TABLE `entertainment_client2`
  MODIFY `entertainment_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fields`
--
ALTER TABLE `fields`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `files`
--
ALTER TABLE `files`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `folders`
--
ALTER TABLE `folders`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `home_assets`
--
ALTER TABLE `home_assets`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
--
-- AUTO_INCREMENT for table `Images`
--
ALTER TABLE `Images`
  MODIFY `ID` int(15) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=59;
--
-- AUTO_INCREMENT for table `invoices`
--
ALTER TABLE `invoices`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `letters_fourth`
--
ALTER TABLE `letters_fourth`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `letters_second`
--
ALTER TABLE `letters_second`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `letters_third`
--
ALTER TABLE `letters_third`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `lmi_amount`
--
ALTER TABLE `lmi_amount`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `lmi_range`
--
ALTER TABLE `lmi_range`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `lmi_range_amount`
--
ALTER TABLE `lmi_range_amount`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `loans`
--
ALTER TABLE `loans`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `Loan_calculator`
--
ALTER TABLE `Loan_calculator`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `loan_calculator_list`
--
ALTER TABLE `loan_calculator_list`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `loan_rental_images`
--
ALTER TABLE `loan_rental_images`
  MODIFY `id` int(6) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mark_archive`
--
ALTER TABLE `mark_archive`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mark_read`
--
ALTER TABLE `mark_read`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `mortgage_child_exp_1`
--
ALTER TABLE `mortgage_child_exp_1`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mortgage_child_exp_2`
--
ALTER TABLE `mortgage_child_exp_2`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mortgage_education_exp_1`
--
ALTER TABLE `mortgage_education_exp_1`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mortgage_education_exp_2`
--
ALTER TABLE `mortgage_education_exp_2`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mortgage_groceries_exp_1`
--
ALTER TABLE `mortgage_groceries_exp_1`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mortgage_groceries_exp_2`
--
ALTER TABLE `mortgage_groceries_exp_2`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mortgage_health_exp_1`
--
ALTER TABLE `mortgage_health_exp_1`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mortgage_health_exp_2`
--
ALTER TABLE `mortgage_health_exp_2`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mortgage_income_1`
--
ALTER TABLE `mortgage_income_1`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mortgage_income_2`
--
ALTER TABLE `mortgage_income_2`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mortgage_insurance_exp_1`
--
ALTER TABLE `mortgage_insurance_exp_1`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mortgage_insurance_exp_2`
--
ALTER TABLE `mortgage_insurance_exp_2`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mortgage_internet_exp_1`
--
ALTER TABLE `mortgage_internet_exp_1`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mortgage_internet_exp_2`
--
ALTER TABLE `mortgage_internet_exp_2`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mortgage_investment_exp_1`
--
ALTER TABLE `mortgage_investment_exp_1`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mortgage_investment_exp_2`
--
ALTER TABLE `mortgage_investment_exp_2`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mortgage_other_exp_1`
--
ALTER TABLE `mortgage_other_exp_1`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mortgage_other_exp_2`
--
ALTER TABLE `mortgage_other_exp_2`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mortgage_personal_exp_1`
--
ALTER TABLE `mortgage_personal_exp_1`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mortgage_personal_exp_2`
--
ALTER TABLE `mortgage_personal_exp_2`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mortgage_recreation_exp_1`
--
ALTER TABLE `mortgage_recreation_exp_1`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mortgage_recreation_exp_2`
--
ALTER TABLE `mortgage_recreation_exp_2`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mortgage_transport_exp_1`
--
ALTER TABLE `mortgage_transport_exp_1`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mortgage_transport_exp_2`
--
ALTER TABLE `mortgage_transport_exp_2`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mortgage_utilities_exp_1`
--
ALTER TABLE `mortgage_utilities_exp_1`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mortgage_utilities_exp_2`
--
ALTER TABLE `mortgage_utilities_exp_2`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `notes`
--
ALTER TABLE `notes`
  MODIFY `ClientID` int(6) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=203;
--
-- AUTO_INCREMENT for table `notices`
--
ALTER TABLE `notices`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `notifications`
--
ALTER TABLE `notifications`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37;
--
-- AUTO_INCREMENT for table `offers`
--
ALTER TABLE `offers`
  MODIFY `id` int(100) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `other_assets`
--
ALTER TABLE `other_assets`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
--
-- AUTO_INCREMENT for table `other_expenses_client1`
--
ALTER TABLE `other_expenses_client1`
  MODIFY `other_exp_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `other_expenses_client2`
--
ALTER TABLE `other_expenses_client2`
  MODIFY `other_exp_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `other_expenses_incomes`
--
ALTER TABLE `other_expenses_incomes`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `other_liability`
--
ALTER TABLE `other_liability`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `personal_expenses_client1`
--
ALTER TABLE `personal_expenses_client1`
  MODIFY `personal_expense_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `personal_expenses_client2`
--
ALTER TABLE `personal_expenses_client2`
  MODIFY `personal_expens` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `personal_liability`
--
ALTER TABLE `personal_liability`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;
--
-- AUTO_INCREMENT for table `polices`
--
ALTER TABLE `polices`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `price_calculation`
--
ALTER TABLE `price_calculation`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `privacy_details`
--
ALTER TABLE `privacy_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `property_assets`
--
ALTER TABLE `property_assets`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `property_liability`
--
ALTER TABLE `property_liability`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;
--
-- AUTO_INCREMENT for table `proposal_data_detail`
--
ALTER TABLE `proposal_data_detail`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `recipients`
--
ALTER TABLE `recipients`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `reminders`
--
ALTER TABLE `reminders`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `rental_goods`
--
ALTER TABLE `rental_goods`
  MODIFY `ClientID` int(6) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `rental_goods_vehicles`
--
ALTER TABLE `rental_goods_vehicles`
  MODIFY `ClientID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `rental_goods_vehicles_old`
--
ALTER TABLE `rental_goods_vehicles_old`
  MODIFY `ClientID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `rental_goods_vehicles_stage_two`
--
ALTER TABLE `rental_goods_vehicles_stage_two`
  MODIFY `ClientID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `requests`
--
ALTER TABLE `requests`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `rm_admin`
--
ALTER TABLE `rm_admin`
  MODIFY `admin_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=45;
--
-- AUTO_INCREMENT for table `rss_feeds`
--
ALTER TABLE `rss_feeds`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `saving_assets`
--
ALTER TABLE `saving_assets`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
--
-- AUTO_INCREMENT for table `security_account_details`
--
ALTER TABLE `security_account_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `security_assets_liabilities`
--
ALTER TABLE `security_assets_liabilities`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `security_balance_sheet`
--
ALTER TABLE `security_balance_sheet`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `security_business_details`
--
ALTER TABLE `security_business_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `security_calculator`
--
ALTER TABLE `security_calculator`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `security_documents`
--
ALTER TABLE `security_documents`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `security_equipment`
--
ALTER TABLE `security_equipment`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `security_levels`
--
ALTER TABLE `security_levels`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `security_menus`
--
ALTER TABLE `security_menus`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `security_notes`
--
ALTER TABLE `security_notes`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `security_pending_selection`
--
ALTER TABLE `security_pending_selection`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `security_profit_loss`
--
ALTER TABLE `security_profit_loss`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `serviceability`
--
ALTER TABLE `serviceability`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `serviceability_annual_income`
--
ALTER TABLE `serviceability_annual_income`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `serviceability_applicant`
--
ALTER TABLE `serviceability_applicant`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `serviceability_borrowing`
--
ALTER TABLE `serviceability_borrowing`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `serviceability_credit_card`
--
ALTER TABLE `serviceability_credit_card`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `serviceability_loan_detail`
--
ALTER TABLE `serviceability_loan_detail`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `serviceability_more_income`
--
ALTER TABLE `serviceability_more_income`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `serviceability_personal_loan`
--
ALTER TABLE `serviceability_personal_loan`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `setting`
--
ALTER TABLE `setting`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `signatures`
--
ALTER TABLE `signatures`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `signed_documents`
--
ALTER TABLE `signed_documents`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `sms_templates`
--
ALTER TABLE `sms_templates`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `stage2_adjustInterestRate`
--
ALTER TABLE `stage2_adjustInterestRate`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage2_client_main_details`
--
ALTER TABLE `stage2_client_main_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage2_loans`
--
ALTER TABLE `stage2_loans`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage2_loans_details`
--
ALTER TABLE `stage2_loans_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage2_loan_transactions`
--
ALTER TABLE `stage2_loan_transactions`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage2_write_offs`
--
ALTER TABLE `stage2_write_offs`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_additionalPayment`
--
ALTER TABLE `stage3_additionalPayment`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_changeBranch`
--
ALTER TABLE `stage3_changeBranch`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_createloan_payee`
--
ALTER TABLE `stage3_createloan_payee`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_create_loan`
--
ALTER TABLE `stage3_create_loan`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_depositAccountDetail`
--
ALTER TABLE `stage3_depositAccountDetail`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_furtherAdvance`
--
ALTER TABLE `stage3_furtherAdvance`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_furtherAdvance_Payee`
--
ALTER TABLE `stage3_furtherAdvance_Payee`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_furtherAllPayment`
--
ALTER TABLE `stage3_furtherAllPayment`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_furtherIndividual`
--
ALTER TABLE `stage3_furtherIndividual`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_furtherInterestRate`
--
ALTER TABLE `stage3_furtherInterestRate`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_FurtherPaymentFrequency`
--
ALTER TABLE `stage3_FurtherPaymentFrequency`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_furtherPaymentMethod`
--
ALTER TABLE `stage3_furtherPaymentMethod`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_hold_interest`
--
ALTER TABLE `stage3_hold_interest`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_hold_repayment`
--
ALTER TABLE `stage3_hold_repayment`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_individualAdjustment`
--
ALTER TABLE `stage3_individualAdjustment`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_JournalEntry`
--
ALTER TABLE `stage3_JournalEntry`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_ledger`
--
ALTER TABLE `stage3_ledger`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_ledger_interest`
--
ALTER TABLE `stage3_ledger_interest`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_loanCalculator`
--
ALTER TABLE `stage3_loanCalculator`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `stage3_loanCalculatorList`
--
ALTER TABLE `stage3_loanCalculatorList`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_loanCalculatorListOriginal`
--
ALTER TABLE `stage3_loanCalculatorListOriginal`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_loanCalculatorListUpdated`
--
ALTER TABLE `stage3_loanCalculatorListUpdated`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_loan_notes`
--
ALTER TABLE `stage3_loan_notes`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_manualPayment`
--
ALTER TABLE `stage3_manualPayment`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_missed_payment_action`
--
ALTER TABLE `stage3_missed_payment_action`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_payoutextra`
--
ALTER TABLE `stage3_payoutextra`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stage3_security_details`
--
ALTER TABLE `stage3_security_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `store`
--
ALTER TABLE `store`
  MODIFY `store_id` int(150) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `store_jot`
--
ALTER TABLE `store_jot`
  MODIFY `store_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `superannuation_assets`
--
ALTER TABLE `superannuation_assets`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
--
-- AUTO_INCREMENT for table `team_notes`
--
ALTER TABLE `team_notes`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `testing`
--
ALTER TABLE `testing`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `timezones`
--
ALTER TABLE `timezones`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `total_budget_income`
--
ALTER TABLE `total_budget_income`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `to_do`
--
ALTER TABLE `to_do`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
  MODIFY `user_id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `user_jot`
--
ALTER TABLE `user_jot`
  MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `verfication_list`
--
ALTER TABLE `verfication_list`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `verification_points_levels`
--
ALTER TABLE `verification_points_levels`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `verification_score_overall`
--
ALTER TABLE `verification_score_overall`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `warning_details`
--
ALTER TABLE `warning_details`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `wp_cc_gst_amount`
--
ALTER TABLE `wp_cc_gst_amount`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `wp_cc_gst_equipments`
--
ALTER TABLE `wp_cc_gst_equipments`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `wp_cc_gst_equipment_types`
--
ALTER TABLE `wp_cc_gst_equipment_types`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `wp_cc_gst_finance_type`
--
ALTER TABLE `wp_cc_gst_finance_type`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- Constraints for dumped tables
--

--
-- Constraints for table `departments`
--
ALTER TABLE `departments`
  ADD CONSTRAINT `departments_ibfk_1` FOREIGN KEY (`company`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `fields`
--
ALTER TABLE `fields`
  ADD CONSTRAINT `fields_ibfk_1` FOREIGN KEY (`company`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `fields_ibfk_2` FOREIGN KEY (`user`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `folders`
--
ALTER TABLE `folders`
  ADD CONSTRAINT `folders_ibfk_1` FOREIGN KEY (`company`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `folders_ibfk_2` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON UPDATE CASCADE,
  ADD CONSTRAINT `folders_ibfk_3` FOREIGN KEY (`folder`) REFERENCES `folders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `reminders`
--
ALTER TABLE `reminders`
  ADD CONSTRAINT `reminders_ibfk_1` FOREIGN KEY (`company`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

