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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$6l8biLSVAEYe1BNnSSgTTZdQklZxF0aELxndJNYrfJqlCE5xXFsbq','user','ak_204246a96a87a199','2023-12-24 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$7H8TaXbpQtPUZKA7BK4tLGheSPHb6RiSmhbqBfUSc3Yn3eXS0jrYw','user','ak_6757bc1119f223d6','2023-11-25 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$qefBGRfJYMla.wbYLmnWjxrozRy/SSBf7NRjzM8u6m64OiXcRIVUd','admin','ak_fd8a451eeb64d62f','2023-10-28 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$cQCfjp.cl.imH7mMAyMxu7rAXpulvtVMjDUNzlkSgfTO8V4gprl8B','user','ak_eec7ab5c5230ea6c','2023-01-10 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$xuGFKG3hsRO7leC2MID005jTBQNjOxitBZgBJaqxd962euhiTufVc','user','ak_e6182dd9a9854929','2023-09-28 10:08: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=16175;

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


