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

START TRANSACTION;



--
-- Database: `speedymentorsdb`
--

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

--
-- Table structure for table `system_settings`
--

CREATE TABLE `system_settings` (
  `setting_id` int(8) NOT NULL,
  `application_name` varchar(200) NOT NULL,
  `contact_number` varchar(150) NOT NULL,
  `email` varchar(100) NOT NULL,
  `address` text NOT NULL,
  `price` float(8,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `system_settings`
--

INSERT INTO `system_settings` (`setting_id`, `application_name`, `contact_number`, `email`, `address`, `price`) VALUES
(1, 'Harkaiza', '', 'info@jaydelarosa.com', 'One MonteCarlo Building, Pabayo-Gaerland Street, Cagayan de Oro City, Misamis Oriental 9000', 0.00);

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

--
-- Table structure for table `user_access`
--

CREATE TABLE `user_access` (
  `ua_id` int(11) NOT NULL,
  `access_path` varchar(100) NOT NULL,
  `access_name` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `user_access`
--

INSERT INTO `user_access` (`ua_id`, `access_path`, `access_name`) VALUES
(1, 'positions', 'View Positions'),
(2, 'positions/create', 'Create Positions'),
(3, 'positions/edit', 'Edit Positions'),
(4, 'positions/delete', 'Delete Positions');

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

--
-- Table structure for table `user_access_control`
--

CREATE TABLE `user_access_control` (
  `uac_id` int(11) NOT NULL,
  `user_role_id` int(11) NOT NULL,
  `ua_id` int(11) NOT NULL,
  `uac_type` int(1) NOT NULL DEFAULT 0 COMMENT '0 - role access, 1 - user privilege'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `user_profiles`
--

CREATE TABLE `user_profiles` (
  `profile_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `profile_picture` varchar(180) DEFAULT NULL,
  `first_name` varchar(200) NOT NULL,
  `last_name` varchar(200) NOT NULL,
  `job_title` varchar(180) DEFAULT NULL,
  `company` varchar(180) DEFAULT NULL,
  `location` varchar(180) DEFAULT NULL,
  `highest_education_level` varchar(180) DEFAULT NULL,
  `category` varchar(180) DEFAULT NULL,
  `tags` text DEFAULT NULL,
  `weekly_price` float(12,2) NOT NULL,
  `student_limit` varchar(12) DEFAULT NULL,
  `bio` text DEFAULT NULL,
  `twitter_handle` varchar(180) DEFAULT NULL,
  `linkedin_url` varchar(180) DEFAULT NULL,
  `interview1` text DEFAULT NULL,
  `interview2` text DEFAULT NULL,
  `chat` varchar(12) DEFAULT NULL,
  `goals_activities` varchar(12) DEFAULT NULL,
  `sample_projects` varchar(12) DEFAULT NULL,
  `1_on_1_tasks` varchar(12) DEFAULT NULL,
  `hands_on_support` varchar(12) DEFAULT NULL,
  `phone_number` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `user_profiles`
--

INSERT INTO `user_profiles` (`profile_id`, `user_id`, `profile_picture`, `first_name`, `last_name`, `job_title`, `company`, `location`, `highest_education_level`, `category`, `tags`, `weekly_price`, `student_limit`, `bio`, `twitter_handle`, `linkedin_url`, `interview1`, `interview2`, `chat`, `goals_activities`, `sample_projects`, `1_on_1_tasks`, `hands_on_support`, `phone_number`) VALUES
(1, 1, 'img2.jpg', 'John', 'Doe', NULL, NULL, NULL, NULL, NULL, NULL, 0.00, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(2, 2, 'img3.png', 'John', 'Wick', NULL, NULL, NULL, NULL, NULL, NULL, 0.00, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(6, 6, 'img2.jpg', 'Justing', 'Doe', 'Marketing Manager', 'Company', 'AR', '2', '2', 'marketing,web,devbio', 10.00, '5', 'bio', '', 'admin', 'po1', 'po2', NULL, 'on', NULL, NULL, NULL, NULL);

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

--
-- Table structure for table `user_roles`
--

CREATE TABLE `user_roles` (
  `role_id` int(11) NOT NULL,
  `role` varchar(200) NOT NULL,
  `level` int(2) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `user_roles`
--

INSERT INTO `user_roles` (`role_id`, `role`, `level`) VALUES
(1, 'Administrator', 0),
(2, 'Mentor', 1),
(3, 'Mentee', 2);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `system_settings`
--
ALTER TABLE `system_settings`
  ADD PRIMARY KEY (`setting_id`);

--
-- Indexes for table `user_access`
--
ALTER TABLE `user_access`
  ADD PRIMARY KEY (`ua_id`);

--
-- Indexes for table `user_access_control`
--
ALTER TABLE `user_access_control`
  ADD PRIMARY KEY (`uac_id`);

--
-- Indexes for table `user_profiles`
--
ALTER TABLE `user_profiles`
  ADD PRIMARY KEY (`profile_id`);

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `system_settings`
--
ALTER TABLE `system_settings`
  MODIFY `setting_id` int(8) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

--
-- AUTO_INCREMENT for table `user_access_control`
--
ALTER TABLE `user_access_control`
  MODIFY `uac_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `user_profiles`
--
ALTER TABLE `user_profiles`
  MODIFY `profile_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `user_roles`
--
ALTER TABLE `user_roles`
  MODIFY `role_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
COMMIT;

