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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$.3p2JjdUrH6tb1WoGdEyAg5bZwdykgxy499NCQ7fZcZ7i/zuRikOS','admin','ak_bf7ee092b5796a02','2023-09-20 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$CbIOnrhi9QEEfPwVapg1X11Myho/3jqXaDJ9nJXiYMGNwbDxVpSED','admin','ak_5dfa0f07213d9324','2023-03-21 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$YCn/lPHfS7gybVsZa0Zpz67NCH5/zCUXOVBJ2/AV2VQsK/Z9q5AYH','user','ak_1fb34227402443f3','2023-01-15 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$1mJEeSQ6gXoEPmgu2.Gcp.hm69R/JEEmdIe9eUo0xs4MmcMqe8EhR','user','ak_44651b04a35f9d12','2023-04-26 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$ygzOcLH7i/IwFjVRN1hdv4.Y/oG2UDmXEU0yQ.DS5tflv97vyzWZX','user','ak_406f485bd84f6b68','2023-07-20 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$R03GmukA6x9hrlO4r4guuRxU6wcCfKS4wRN1CFyoY.zNfxCjIV1AV','user','ak_bdc1eb8d90d4419d','2023-11-12 10:03:00',NULL);

