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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$1iohUb1lUcbjyYCQrHw9mjKqz2hCN8O1MXIyQXtsB9CijwYw7FprB','user','ak_aaafa91e4480f0b3','2023-09-14 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$d.ypRPlrkVohhYhstgvSPAafk7OH77wfBaVqGIqlj0xf34.fNp59r','user','ak_5757683942b308c2','2023-06-24 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$qXkJf/9m08uQro/IIPKTs2rxRY4zhib1ZJMn19b07K0MzDnIM4EwS','user','ak_4e6378b5e7156e7c','2023-01-14 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$jx8aUvFASK5ozHn4kpo74Hdl/8Ef5FltJwBU0ZL4xyJ6wIfFff7HY','user','ak_0447925081873893','2023-07-13 10:05:00',NULL);

