-- -------------------------------------------------------------
-- TablePlus 5.9.2(542)
--
-- https://tableplus.com/
--
-- Database: parkingpro
-- -------------------------------------------------------------



CREATE TABLE `cars` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `surname` varchar(100) NOT NULL,
  `email` varchar(100) NOT NULL,
  `phone` varchar(20) NOT NULL,
  `car_number` varchar(20) NOT NULL,
  `car_model` varchar(100) NOT NULL,
  `start_time` datetime NOT NULL,
  `end_time` datetime NOT NULL,
  `account_name` varchar(100) NOT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

INSERT INTO `cars` (`id`, `name`, `surname`, `email`, `phone`, `car_number`, `car_model`, `start_time`, `end_time`, `account_name`, `created_at`) VALUES
(25, 'p1', 'p1', 'p1@p1', '1', 'p1', 'p1', '2025-02-01 03:27:00', '2025-02-02 03:27:00', 'p1', '2025-02-05 03:27:13'),
(26, 'p1', 'p1', 'p1@p1', '1', 'p1', 'p1', '2025-02-01 03:27:00', '2025-02-28 08:27:00', 'p1', '2025-02-05 03:27:36'),
(27, 'p1', 'p1', 'p1@p1', '1', 'p1', 'p1', '2025-03-01 03:27:00', '2025-03-31 03:27:00', 'p1', '2025-02-05 03:28:02'),
(28, 'p2', 'p2', 'p2@p2', '2', 'p2', 'p2', '2025-02-01 03:28:00', '2025-02-02 03:28:00', 'p2', '2025-02-05 03:28:22'),
(29, 'p2', 'p2', 'p2@p2', '2', 'p2', 'p2', '2025-02-01 03:28:00', '2025-02-28 03:28:00', 'p2', '2025-02-05 03:28:50'),
(30, 'p2', 'p2', 'p2@p2', '2', 'p2', 'p2', '2025-03-01 03:29:00', '2025-03-31 03:29:00', 'p2', '2025-02-05 03:29:09'),
(31, 'p3', 'p3', 'p3@p3', '3', 'p3', 'p3', '2025-02-01 03:29:00', '2025-02-02 03:29:00', 'p3', '2025-02-05 03:29:30'),
(32, 'p3', 'p3', 'p3@p3', '3', 'p3', 'p3', '2025-02-01 03:29:00', '2025-02-28 03:29:00', 'p3', '2025-02-05 03:29:48'),
(33, 'p3', 'p3', 'p3@p3', '3', 'p3', 'p3', '2025-03-01 03:30:00', '2025-03-31 03:30:00', 'p3', '2025-02-05 03:30:13'),
(34, 'test', 'test', 'test@test', '123', 'test', 'test', '2025-02-01 03:31:00', '2025-02-02 03:31:00', 'admin', '2025-02-05 03:31:28'),
(35, 'test', 'test', 'test@test', '123', 'test', 'test', '2025-02-01 03:31:00', '2025-02-28 03:31:00', 'admin', '2025-02-05 03:31:48'),
(36, 'test', 'test', 'test@test', '123', 'test', 'test', '2025-03-01 03:32:00', '2025-03-31 03:32:00', 'admin', '2025-02-05 03:32:08'),
(38, 'roberts', 'jansons', 'roberts@jansons', '123123', '123', '123', '2025-02-15 05:06:00', '2025-02-21 05:06:00', 'admin', '2025-02-05 05:06:58'),
(39, 'roberts', 'jansons', 'roberts@jansons', '123123', '123', '123', '2025-02-15 05:06:00', '2025-02-20 05:06:00', 'admin', '2025-02-05 05:07:09');



