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

START TRANSACTION;



--
-- Database: `real_state`
--

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

--
-- Table structure for table `agent_accounts`
--

CREATE TABLE `agent_accounts` (
  `id` int(11) NOT NULL,
  `business_name` varchar(255) NOT NULL,
  `person_name` varchar(255) NOT NULL,
  `bussiness_mobile` varchar(255) NOT NULL,
  `bussiness_email` varchar(255) NOT NULL,
  `business_type` int(11) NOT NULL,
  `status` int(11) NOT NULL,
  `register_date` date NOT NULL,
  `created_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `master_category`
--

CREATE TABLE `master_category` (
  `id` int(11) NOT NULL,
  `property_category_name` varchar(255) NOT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `created_at` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `master_category`
--

INSERT INTO `master_category` (`id`, `property_category_name`, `status`, `created_at`) VALUES
(1, 'Residental', 0, '2024-12-13 12:38:18'),
(3, 'Commercial', 1, '2024-12-13 13:35:59');

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

--
-- Table structure for table `role`
--

CREATE TABLE `role` (
  `id` int(11) NOT NULL,
  `role_name` varchar(255) NOT NULL,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `role`
--

INSERT INTO `role` (`id`, `role_name`, `status`) VALUES
(1, 'superadmin', 1);

--
-- Indexes for dumped tables
--

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `agent_accounts`
--
ALTER TABLE `agent_accounts`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

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

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

