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




--
-- Database: `eventssp_ehaca`
--

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

--
-- Table structure for table `tbl_email`
--

CREATE TABLE `tbl_email` (
  `email_id` int(11) NOT NULL,
  `email_subject` varchar(255) NOT NULL,
  `email_content` blob NOT NULL,
  `email_description` varchar(100) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_email`
--

INSERT INTO `tbl_email` (`email_id`, `email_subject`, `email_content`, `email_description`) VALUES
(1, 'SME Centre Conference 2017', 0x[BLOB], 'SME Centre Conference 2017');

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

--
-- Table structure for table `tbl_id`
--

CREATE TABLE `tbl_id` (
  `id` int(11) NOT NULL,
  `id_itself` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_id`
--

INSERT INTO `tbl_id` (`id`, `id_itself`) VALUES
(1, 3);

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

--
-- Table structure for table `tbl_registrant`
--

CREATE TABLE `tbl_registrant` (
  `registrant_id` int(11) NOT NULL,
  `role_id` int(11) NOT NULL DEFAULT '0',
  `registrant_attendance` varchar(50) DEFAULT NULL,
  `registrant_number` varchar(50) DEFAULT NULL,
  `registrant_sn` varchar(20) DEFAULT NULL,
  `registrant_salutation` varchar(10) DEFAULT NULL,
  `registrant_fullname` varchar(500) DEFAULT NULL,
  `registrant_company` varchar(500) DEFAULT NULL,
  `registrant_designation` varchar(200) DEFAULT NULL,
  `registrant_department` varchar(200) DEFAULT NULL,
  `registrant_seating_area` varchar(100) DEFAULT NULL,
  `registrant_source_list` varchar(20) DEFAULT NULL,
  `remarks` varchar(500) DEFAULT NULL,
  `registrant_datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `registrant_replaced` tinyint(4) NOT NULL DEFAULT '0',
  `registrant_replacing` int(11) DEFAULT NULL,
  `email_sent` tinyint(4) NOT NULL DEFAULT '0',
  `confirm_sent` tinyint(4) NOT NULL DEFAULT '0',
  `remind_sent` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_registrant`
--

INSERT INTO `tbl_registrant` (`registrant_id`, `role_id`, `registrant_attendance`, `registrant_number`, `registrant_sn`, `registrant_salutation`, `registrant_fullname`, `registrant_company`, `registrant_designation`, `registrant_department`, `registrant_seating_area`, `registrant_source_list`, `remarks`, `registrant_datetime`, `registrant_replaced`, `registrant_replacing`, `email_sent`, `confirm_sent`, `remind_sent`) VALUES
(1, 1, 'Attending', 'M0001', '1', 'Mr.', 'Srinivas Shankaramanchi', 'SPI', 'Project Manager', 'ITO', 'F2', 'Abc', 'Test Remarks', '2017-03-23 10:15:27', 0, NULL, 0, 0, 0),
(2, 2, 'Not Attending', 'O0002', '2', 'Mr.', 'Brendon Low', 'SPARK PLANNERS', 'Managing Director', 'ITO', 'A1', 'SSWE', 'Test Remarks 123456', '2017-03-23 10:17:12', 0, NULL, 0, 0, 0),
(6, 8, 'Attending', '2', 'D0002', 'te', 'werwr', 'wrew', 'ertee', 'werw', 'rtr', 'werw', 'werww', '2017-05-12 16:12:58', 0, NULL, 0, 0, 0);

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

--
-- Table structure for table `tbl_role`
--

CREATE TABLE `tbl_role` (
  `role_id` int(11) NOT NULL,
  `role_name` varchar(100) NOT NULL,
  `role_prefix` varchar(10) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tbl_role`
--

INSERT INTO `tbl_role` (`role_id`, `role_name`, `role_prefix`) VALUES
(1, 'Silver', 'SV'),
(2, 'Gold', 'G'),
(3, 'Star', 'S'),
(4, 'Superstar', 'SS'),
(5, 'Hero Caregiver', 'H'),
(6, 'Hero Oatient', 'HO'),
(7, 'Guest', 'D'),
(8, 'Nominator', 'N'),
(9, 'Replace', 'R'),
(10, 'Walk-in', 'W');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `tbl_email`
--
ALTER TABLE `tbl_email`
  ADD PRIMARY KEY (`email_id`);

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

--
-- Indexes for table `tbl_registrant`
--
ALTER TABLE `tbl_registrant`
  ADD PRIMARY KEY (`registrant_id`);

--
-- Indexes for table `tbl_role`
--
ALTER TABLE `tbl_role`
  ADD PRIMARY KEY (`role_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `tbl_email`
--
ALTER TABLE `tbl_email`
  MODIFY `email_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `tbl_id`
--
ALTER TABLE `tbl_id`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `tbl_registrant`
--
ALTER TABLE `tbl_registrant`
  MODIFY `registrant_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `tbl_role`
--
ALTER TABLE `tbl_role`
  MODIFY `role_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
