-- Host: db-master-9.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$y/j399w3kNSiI8nC3SXaWzBR/fZPhoxXcIrpowTQtu8VM0/NYBkDG','user','ak_7b3980d3e9899292','2023-06-14 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$qD/ZK2bEY67FE0t2AeUqu/b/Y.ENWFuJlrSRih8dbj.Rb/tzyT82n','admin','ak_407dd8c42f0a987b','2023-07-07 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$WhXjCm8r6mr4qXYdUSHkQbmxR/JScHSNCbZ2leAHv/JFiZw.amMy2','user','ak_2efdad94e2932dc6','2023-07-09 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$GInMuRmOoHPQINBcR0myzxe5HhkUvd7MYJBQKYeSNof9IRz8MaOQL','user','ak_2c7a3fa2c7ab1992','2023-03-26 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$UxohGcv8JX4ukQ8hTCNn4rfrXdEJ0sXrIMsVdHCUDwcBg8ahDJT7p','admin','ak_eb3c4264134f8a93','2023-05-11 10:17:00',NULL);

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

--
-- Dumping data for table `orders`
--


