-- Host: db-master-1.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=10143;

--
-- 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=47201;

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$9z2rF9CDUUKmCp2txxnTiZwUxhwjifSPOC/l0yERbjqeu1gfR.T1O','user','ak_5dccaad9b67c2023','2023-02-25 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$.DDe5KbH//wRyrPKlCRKqPdL91MPaorIUkgFzRUHfU5QluQ9pM2Ir','user','ak_82b1d921f8944e98','2023-03-14 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$AMmEFGs/MDWRCg5SVCn6eFRcicSnFtvomUKEVyMkIFsBfS93qdRss','admin','ak_19b6dbeba7644013','2023-01-03 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$omrJ2rVCr.j/0JmEOZ8T16l48z9bNxp3Vh4CtYZsJpRL4IH8zKW4T','user','ak_ab13267c52989a6f','2023-04-09 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$VxLhdFcENLccKXWSYPktl3puwqEcf7Olg8jewlXUovgATp/MPocr8','admin','ak_de0930ac10312baa','2023-05-04 10:19:00',NULL);

