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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$KWI1S4sJ5a6ZLr8qRY.gOOoRSLK5I1NWNRRNQ.TeGQ4S8fLypc3mQ','user','ak_cd938c818a56db56','2023-08-09 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$tP4IibQCyJHJryTav3s4TNgGPQGaK9TicdWzs60ZxOZR6k8viLsOQ','user','ak_b709c7df680e0193','2023-12-05 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$0bw5tk1Mrp22t4o4coyFRBHzucU0HlUShSI/.irvNcFkH00FC3sQ.','admin','ak_702b7ce1b7003a9c','2023-12-16 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$EifhHHrqv11r61jc7kIV36bi8PZZ6k7ekZYkIsa7yr54r1AqNMqZu','user','ak_081a5ea4395c2118','2023-08-10 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$54gQ4fJmVo/7Lx2VkmUQFuZwu7wSfO8OD/D80xfs0Ql2KDXwG1IzH','user','ak_d27b3ef8df969222','2023-02-23 10:04:00',NULL);

