-- Host: db-master-2.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$yAB.2eQxBSOSBKCnAjiCKEoOY7uTteaWyL0/5BBUrKi/rFh.bvwWo','user','ak_69bd1a29aac18f1c','2023-03-27 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$Fs7lPJoFqPg5pkQ7sJpOgBjxKUvRIr/gJw6YdnzD8NigKTyIndW6u','admin','ak_71e6e82dee892926','2023-02-13 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$INcckoeroM7ivbcD1KKGthBCcHiS.Edty6ZaW.ko/3rPTqn8D7vtu','user','ak_36750dbd79bf15c1','2023-06-02 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$5iH.HxZyqtcsccDPE5qFRjtUiUOrABHi5Qg5YFol12W757EnOa/dy','admin','ak_f489c3d1410b71b3','2023-10-09 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$S2lhHFcm4qZ34hS657ds41hyTUNU6y3Qq5uCgxXI6VVOefaQPZB84','admin','ak_34ded05327d2f645','2023-10-20 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$tgAwc4C2bx3uPOc9/E411s1S7oWqtB4nOcLpDkNOSQQtoOJh/1EQn','admin','ak_ababa4e06f3d24f4','2023-04-21 10:02:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@company.com','$2b$12$DDhdWr3H8vuO/EwkpBhhad7kXGqN18Ltx/uI3Huy5db1Yd1rw02Uh','admin','ak_fb3bc5c7955f8a83','2023-02-16 10:08:00',NULL);

