-- Host: db-master-3.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$KlN5nX5hjfqqnTfATZ.5DsuD32JGi3Rq3Tmgh9YBRgaqjGK0LDjqp','user','ak_fdf5b8e0a3c9d1f9','2023-04-07 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$oB4O466QtR4U53N1yHHFXkzicATBQDyaS9ZBXiziapnrjLpqsBtJ5','user','ak_1988e1cc84235928','2023-11-01 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$TlqTHnaIEY236eGxJrlRLwMQP5omGubgre5BCOt5fHwBeuXeCEV21','user','ak_b42180a6b13ff56e','2023-11-28 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$li5SfpbmFmgID2ScSzpjsxCBhJiyhzMox8KKBp/8M5iYEkRGsptNB','user','ak_9f6e98d4022fab03','2023-09-25 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$Vcjz4xo1yll.LQmgrKzTMuUEYVtrFFWjK4GUBt4oTVKc.CUPAiSpy','user','ak_d98ffd644ddce127','2023-05-28 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$rbKJzvEerr3OyTv5NG9pQcdUZaSmy6ZiD2B8IfT.u4QtPFmCiSmVu','user','ak_6258d25a86607ae5','2023-12-20 10:10: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=8856;

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


