-- phpMyAdmin SQL Dump
-- version 4.1.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Dec 15, 2018 at 04:13 AM
-- Server version: 5.6.17
-- PHP Version: 5.5.12

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


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

--
-- Database: `property`
--

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

--
-- Table structure for table `asset`
--

CREATE TABLE IF NOT EXISTS `asset` (
  `asset_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `asset_type` text,
  `asset_attachment` text,
  PRIMARY KEY (`asset_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;

--
-- Dumping data for table `asset`
--

INSERT INTO `asset` (`asset_id`, `asset_type`, `asset_attachment`) VALUES
(1, '', 'RM10000'),
(2, '', ''),
(3, '', ''),
(4, '', ''),
(5, '', ''),
(6, '', ''),
(7, '', ''),
(8, '', ''),
(9, '', ''),
(10, 'option2', 'xAuthors.docx'),
(11, 'option1', 'x');

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

--
-- Table structure for table `client`
--

CREATE TABLE IF NOT EXISTS `client` (
  `client_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `client_username` text NOT NULL,
  `client_password` text NOT NULL,
  `client_name` text NOT NULL,
  `client_ic` bigint(20) NOT NULL,
  `client_add1` text NOT NULL,
  `client_add2` text NOT NULL,
  `client_city` varchar(50) NOT NULL,
  `client_postcode` varchar(7) NOT NULL,
  `client_state` varchar(50) NOT NULL,
  `client_phone` varchar(16) NOT NULL,
  `client_email` text NOT NULL,
  `client_picture` text NOT NULL,
  `status` text NOT NULL,
  PRIMARY KEY (`client_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ;

--
-- Dumping data for table `client`
--

INSERT INTO `client` (`client_id`, `client_username`, `client_password`, `client_name`, `client_ic`, `client_add1`, `client_add2`, `client_city`, `client_postcode`, `client_state`, `client_phone`, `client_email`, `client_picture`, `status`) VALUES
(5, 'admin', 'c4ca4238a0b923820dcc509a6f75849b', 'admin', 123, 'admin', 'admin', 'admin', 'admin', 'admin', 'admin', 'admin', 'images(7)', 'admin'),
(6, 'amir', 'eccbc87e4b5ce2fe28308fd9f2a7baf3', 'AMIR BIN AHMAD', 900314109003, '66 JALAN KP 2/19 TAMAN KOTA PERDANA', 'SERI KEMBANGAN', 'IPOH', '43399', 'PERAK', '9008', 'abd@gmail.com', 'images(1).jpg', 'client'),
(4, 'luq.ra', 'c4ca4238a0b923820dcc509a6f75849b', 'MUHAMMAD LUQMAN BIN RAZALI', 960329039696, 'LOT 2830, KG. SG. BARU,', 'PENGKALAN CHEPA,', 'KOTA BHARU', '16100', 'KELANTAN', '+9875643', 'abc@gmail.com', 'nophoto.png', 'client'),
(7, 'nurul', 'a87ff679a2f3e71d9181a67b7542122c', 'NURUL BINTI IDRIS', 9005519005, '223 JALAN DAGANG 1/4', 'TAMAN DAGANG, AMPANG', 'KUALA LUMPUR', '68000', 'SELANGOR', '09876', 'nurul@gmail.com', 'nophoto.png', 'client'),
(8, 'saleh', 'e4da3b7fbbce2345d7772b0674a318d5', 'MUHAMAD SALEHHUDDIN BIN ZAINAL MAZRI', 90060019006, '224 JALAN DAGANG', 'TAMAN DAGANG, AMPANG', 'SELANGOR', '58000', 'SELANGOR', '0119876543', 'saleh@gmail.com', 'nophoto.png', 'client'),
(9, 'x', '9dd4e461268c8034f5c8564e155c67a6', 'x', 0, 'x', 'x', 'x', 'x', 'x', 'x', 'x@x', 'x@admin180506080600download.png.jpg', 'client');

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

--
-- Table structure for table `firm`
--

CREATE TABLE IF NOT EXISTS `firm` (
  `firm_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `firm_name` text NOT NULL,
  `firm_password` text NOT NULL,
  `firm_email` text NOT NULL,
  `firm_add` text NOT NULL,
  `firm_postcode` varchar(7) NOT NULL,
  `firm_city` varchar(50) NOT NULL,
  `firm_state` varchar(50) NOT NULL,
  `firm_contact` varchar(16) NOT NULL,
  `registration_id` bigint(20) NOT NULL,
  `lawyer_id` bigint(20) NOT NULL,
  PRIMARY KEY (`firm_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `heir`
--

CREATE TABLE IF NOT EXISTS `heir` (
  `heir_ic` bigint(12) NOT NULL AUTO_INCREMENT,
  `heir_name` text NOT NULL,
  `heir_hp` varchar(16) NOT NULL,
  `heir_email` text NOT NULL,
  `heir_add` text NOT NULL,
  `heir_allocation` varchar(20) NOT NULL,
  `asset_id` bigint(20) NOT NULL,
  PRIMARY KEY (`heir_ic`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `lawyer`
--

CREATE TABLE IF NOT EXISTS `lawyer` (
  `lawyer_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `lawyer_username` text NOT NULL,
  `lawyer_password` text NOT NULL,
  `lawyer_name` text NOT NULL,
  `lawyer_ic` bigint(20) NOT NULL,
  `lawyer_add1` text NOT NULL,
  `lawyer_add2` text NOT NULL,
  `lawyer_city` varchar(50) NOT NULL,
  `lawyer_postcode` varchar(7) NOT NULL,
  `lawyer_state` varchar(50) NOT NULL,
  `lawyer_phone` varchar(16) NOT NULL,
  `lawyer_email` text NOT NULL,
  `lawyer_picture` text NOT NULL,
  `firm_id` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`lawyer_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

--
-- Dumping data for table `lawyer`
--

INSERT INTO `lawyer` (`lawyer_id`, `lawyer_username`, `lawyer_password`, `lawyer_name`, `lawyer_ic`, `lawyer_add1`, `lawyer_add2`, `lawyer_city`, `lawyer_postcode`, `lawyer_state`, `lawyer_phone`, `lawyer_email`, `lawyer_picture`, `firm_id`) VALUES
(1, 'a', 'c81e728d9d4c2f636f067f89cc14862c', 'AMIRUL BIN AHMAD', 900314109007, '66 JALAN KP 2/19 TAMAN KOTA PERDANA', 'SERI KEMBANGAN', 'KUALA LUMPUR', '43300', 'SELANGOR', '9008', 'amirul@gmail.com', 'nophoto.png', NULL),
(2, 'x', '9dd4e461268c8034f5c8564e155c67a6', 'x', 0, 'x', 'x', 'x', 'x', 'x', 'x', 'x@x', 'nophoto.png', NULL);

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

--
-- Table structure for table `qualification`
--

CREATE TABLE IF NOT EXISTS `qualification` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `qualification_level` bigint(20) NOT NULL,
  `qualification_institution` text NOT NULL,
  `qualification_skill` text NOT NULL,
  `lawyer_id` bigint(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `will`
--

CREATE TABLE IF NOT EXISTS `will` (
  `will_callnumber` bigint(20) NOT NULL AUTO_INCREMENT,
  `will_type` text,
  `client_id` text,
  `status` text NOT NULL,
  PRIMARY KEY (`will_callnumber`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=112345666800 ;

--
-- Dumping data for table `will`
--

INSERT INTO `will` (`will_callnumber`, `will_type`, `client_id`, `status`) VALUES
(112345666797, 'Hibah', 'admin', 'PENDING'),
(112345666798, 'Hibah', 'luq.ra', 'PENDING'),
(112345666799, 'Hibah', 'x', 'PENDING');

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