-- Host: db-master-9.internal    Database: main_app


--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=4834;

--
-- Dumping data for table `orders`
--


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

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=40551;

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$O7hxYASEU7yVkP4gkCjr4KrJlCsEg8K.2zzjxtCyPj72grP.2DdQ4','admin','ak_ec7c74ad242e5084','2023-03-02 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$4ibWdt71u/4StTDdm1KPLm50TQP.4cUbBGhmJdUeJkgt6JNhObaMq','admin','ak_967878a6b08c2270','2023-10-12 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$xM2ZgpgJLyIZJ86tChiBO6SnputapUM6fW9ySuTjZ58UajYS8cxX7','admin','ak_50c61afe36f05e0d','2023-06-26 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$sN7jPydCAkRgMNDMm77VKYqlR63mFEHWadDha3ETaqPDGgQpLcAgT','user','ak_27742b3752c9714e','2023-01-05 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$Z4ghQjckYaDrbuPfamPI0HFxcbuZrmZynUycfR4XyxIx.cReegqAK','user','ak_83e9f0e4a4b8fae5','2023-07-03 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$ZAjq8HoQlV8LCdHjxg1TdbWvuOILAblrFph9e8VmyDl2efCIa3b9s','admin','ak_7f2284d2a1771a00','2023-09-11 10:09:00',NULL);

