-- phpMyAdmin SQL Dump
-- version 5.2.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Mar 10, 2026 at 06:43 PM
-- Server version: 10.6.25-MariaDB
-- PHP Version: 8.4.17

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


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

--
-- Database: `itresourcescom_taytofeedback`
--

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

--
-- Table structure for table `branches`
--

CREATE TABLE `branches` (
  `id` int(11) NOT NULL,
  `name` varchar(120) NOT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `active` int(11) NOT NULL,
  `deleted` int(11) NOT NULL,
  `feed_1` varchar(255) NOT NULL,
  `feed_2` varchar(255) NOT NULL,
  `feed_3` varchar(255) NOT NULL,
  `feed_4` varchar(255) NOT NULL,
  `feed_5` varchar(255) NOT NULL,
  `location` varchar(255) NOT NULL,
  `logo` varchar(255) NOT NULL,
  `title` varchar(255) NOT NULL,
  `about` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `branches`
--

INSERT INTO `branches` (`id`, `name`, `created_at`, `active`, `deleted`, `feed_1`, `feed_2`, `feed_3`, `feed_4`, `feed_5`, `location`, `logo`, `title`, `about`) VALUES
(3, 'Lahore', '2024-04-19 14:11:15', 1, 1, 'Atmos', 'Food', 'Service', 'Ambiance', 'service', 'uploads/', '17140582580.jpeg', 'feed back by ITR', 'Use the form below to send us your comments. Your feedback is very important to us.w'),
(4, 'Karachi', '2024-04-19 14:11:28', 1, 1, '', '', '', '', '', 'uploads/', '17140542980.png', 'estaurant Feedback Form2', 'Use the form below to send us your comments. Your feedback is very important to us.w'),
(5, 'Islamabad', '2024-04-19 14:11:28', 1, 1, '', '', '', '', '', 'uploads/', '17140542980.png', 'estaurant Feedback Form2', 'Use the form below to send us your comments. Your feedback is very important to us.w'),
(6, 'Rawalpindi', '2024-04-25 13:59:51', 1, 1, 'asd', 'asd', 'asd', 'asd', 'asd', 'uploads/', '17140542980.png', 'estaurant Feedback Form2', 'Use the form below to send us your comments. Your feedback is very important to us.w'),
(7, 'Pishawar', '2024-04-29 11:41:29', 0, 1, 'ad', 'ad', 'ad', 'ad', 'ad', 'uploads/', '17143908890.jpeg', 'ad', 'ad'),
(8, 'Demo', '2024-04-29 12:56:27', 0, 1, 'Demo 3', 'Demo 4', 'Demo 5', '', '', 'uploads/', '17143953870.png', 'Demo 1', 'Demo 2'),
(9, 'Tayto Cafe G9', '2025-05-07 14:58:52', 1, 0, 'Food Quality', 'Service Quality', ' Cleanliness', 'Ambience', ' Value for Money', 'uploads/', '17466119320.jpeg', 'Tayto Cafe G9', ''),
(10, 'Tayto Cafe F6', '2025-05-07 15:01:34', 0, 0, 'Food Quality', 'Service Quality', ' Cleanliness', 'Ambience', ' Value for Money', 'uploads/', '17466120940.jpeg', 'Tayto Cafe F6', ''),
(11, 'Tayto Cafe F7', '2025-05-07 15:02:56', 0, 0, 'Food Quality', 'Service Quality', ' Cleanliness', 'Ambience', ' Value for Money', 'uploads/', '17466121760.jpeg', 'Tayto Cafe F7', ''),
(12, 'Tayto Cafe GIGA', '2025-05-07 15:03:33', 1, 0, 'Food Quality', 'Service Quality', ' Cleanliness', 'Ambience', ' Value for Money', 'uploads/', '17466122540.jpeg', 'Tayto Cafe GIGA', ''),
(13, 'Tayto Cafe Centaurus', '2025-05-07 15:05:30', 0, 0, 'Food Quality', 'Service Quality', ' Cleanliness', 'Ambience', ' Value for Money', 'uploads/', '17466123300.jpeg', 'Tayto Cafe Centaurus', ''),
(14, 'Tayto Cafe Behria', '2025-05-07 15:06:10', 0, 0, 'Food Quality', 'Service Quality', ' Cleanliness', 'Ambience', ' Value for Money', 'uploads/', '17466123700.jpeg', 'Tayto Cafe Behria', ''),
(15, 'Tayto Cafe EMP', '2025-05-07 15:07:42', 0, 0, 'Food Quality', 'Service Quality', ' Cleanliness', 'Ambience', ' Value for Money', 'uploads/', '17466124620.jpeg', 'Tayto Cafe EMP', ''),
(16, 'Tayto Cafe I8', '2025-05-07 15:08:24', 0, 0, 'Food Quality', 'Service Quality', ' Cleanliness', 'Ambience', ' Value for Money', 'uploads/', '17466125040.jpeg', 'Tayto Cafe I8', '');

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

--
-- Table structure for table `company`
--

CREATE TABLE `company` (
  `id` int(11) NOT NULL,
  `logo` varchar(255) NOT NULL,
  `location` varchar(255) NOT NULL,
  `created_date` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company`
--

INSERT INTO `company` (`id`, `logo`, `location`, `created_date`) VALUES
(1, '17466125470.jpeg', 'uploads/', '2024-04-25 11:26:39');

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

--
-- Table structure for table `feedbacks`
--

CREATE TABLE `feedbacks` (
  `id` int(11) NOT NULL,
  `name` varchar(120) NOT NULL,
  `email` varchar(150) NOT NULL,
  `number` varchar(80) NOT NULL,
  `dob` varchar(220) NOT NULL,
  `FoodQualityrating` int(11) NOT NULL,
  `FoodPresentationrating` int(11) NOT NULL,
  `Atmosphererating` int(11) NOT NULL,
  `Ambiancerating` int(11) NOT NULL,
  `Servicerating` int(11) NOT NULL,
  `message` varchar(250) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `feed_1` varchar(255) NOT NULL,
  `feed_2` varchar(255) NOT NULL,
  `feed_3` varchar(255) NOT NULL,
  `feed_4` varchar(255) NOT NULL,
  `feed_5` varchar(255) NOT NULL,
  `deleted` tinyint(1) NOT NULL,
  `created_date` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `feedbacks`
--

INSERT INTO `feedbacks` (`id`, `name`, `email`, `number`, `dob`, `FoodQualityrating`, `FoodPresentationrating`, `Atmosphererating`, `Ambiancerating`, `Servicerating`, `message`, `branch_id`, `feed_1`, `feed_2`, `feed_3`, `feed_4`, `feed_5`, `deleted`, `created_date`) VALUES
(1, 'Moiz', 'moiz@gmail.com', '+965555555', '0', 5, 4, 3, 2, 1, 'This is feedback by moiz', 3, '0', '0', '0', '0', '0', 1, '2024-03-28 10:53:39'),
(2, 'Mannan', 'manna@gmail.com', '+965555554', '0', 5, 5, 3, 5, 0, 'This is feedback by manna', 3, '0', '0', '0', '0', '0', 1, '2024-03-28 10:53:39'),
(6, 'asasas', 'asasss@gmail.com', 'asa', 'asas', 4, 3, 4, 3, 4, 'asasas', 3, '0', '0', '0', '0', '0', 1, '2024-04-04 12:29:17'),
(7, 'asasas', 'asas@gmail.com', '8999889', '22', 4, 3, 2, 1, 5, 'asasasasasasasassas', 3, '0', '0', '0', '0', '0', 1, '2024-04-05 09:06:06'),
(8, '123', 'hh@gmail.com', '21323', '12131', 4, 3, 3, 3, 3, 'test', 3, '', '', '', '', '', 1, '2024-04-24 15:35:05'),
(9, '123', 'hr@itresources.com.pk', '132', '12131', 3, 1, 4, 1, 3, 'test', 3, '', '', '', '', '', 1, '2024-04-24 15:37:17'),
(10, '123', 'developerkhah@gmail.com', '21323', '12131', 3, 3, 1, 3, 4, 'test', 4, '', '', '', '', '', 1, '2024-04-25 12:38:29'),
(11, 'Iqra', 'dkalkd@gmail.com', '03215', '2002-05-27', 2, 2, 3, 3, 2, 'test', 3, '', '', '', '', '', 1, '2024-04-27 10:06:06'),
(12, 'cc staff Ahmed', 'dsadsad@gmail.com', '30303030', '2024-04-29', 3, 4, 5, 3, 4, 'amazing product', 3, '', '', '', '', '', 1, '2024-04-29 12:00:45'),
(13, 'asnaff', 'admin@gmail.com', '03175854492', '2025-05-01', 3, 2, 3, 4, 5, 'Fair', 9, '', '', '', '', '', 0, '2025-05-07 15:10:17');

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

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `name` varchar(120) NOT NULL,
  `fname` varchar(255) NOT NULL,
  `lname` varchar(255) NOT NULL,
  `email` varchar(150) NOT NULL,
  `city` varchar(255) NOT NULL,
  `phone` varchar(255) NOT NULL,
  `password` varchar(180) NOT NULL,
  `role` varchar(255) NOT NULL DEFAULT '0',
  `active` tinyint(1) NOT NULL,
  `deleted` int(11) NOT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `customer_id`, `name`, `fname`, `lname`, `email`, `city`, `phone`, `password`, `role`, `active`, `deleted`, `created_at`) VALUES
(1, 0, '', 'admin', 'admin', 'admin@gmail.com', 'Karachi', '022123213123', 'd0970714757783e6cf17b26fb8e2298f', '', 0, 0, '2024-03-28 08:16:20'),
(6, 0, 'Atif ', 'Atif', '', 'atif@gmail.com', 'Islamabad', '923455677775', 'd0970714757783e6cf17b26fb8e2298f', '1', 1, 0, '2025-05-13 12:14:18');

--
-- Indexes for dumped tables
--

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

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `branches`
--
ALTER TABLE `branches`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;

--
-- AUTO_INCREMENT for table `company`
--
ALTER TABLE `company`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `feedbacks`
--
ALTER TABLE `feedbacks`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
COMMIT;

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