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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$YKTpAsyYotjBLFqVCU1IJqE1wUTiKRNQIHKLLex/vhmH0XrbX5T5u','admin','ak_3204346b43396855','2023-10-17 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$H.msIdj.7XsSt.7xOs.6Y79Nd0aVeUSZeNxBkpgSR1JsXjbx7lu4F','user','ak_0ccd833dababebbe','2023-02-23 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$7eTwEjNwcm0plQhLJ8Q.nT.10GFplfpbCXC3imb2MgjDg/OoNRb3a','user','ak_2e44fdfb0c42a68e','2023-07-04 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$qDV9if5XELp1eXoznoZ6A9VExQXuYvSgHdNby.j8tdQd0IgFbzmBJ','user','ak_4c1bccfa57791e92','2023-07-14 10:09: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=36088;

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


