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


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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$/Kb0RSjFfJ4BOjkI8k9ioAtrXwuG36wdLpMq/CZvRmgo6NSlpR9jn','admin','ak_a5e346298b6ff0e6','2023-01-19 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$NhMkofh3MFU8sEKYQnn3CC1FKmXPb17naYvYNfroGUqHj10U0IudJ','admin','ak_4fa1ca48fbb91602','2023-11-10 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$HEmp.YedJbPwYFViCoNDJS125pXVS9.CfJgygi9CK3bQRzZtpr0hD','admin','ak_f5d8904a8a4be484','2023-03-17 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$CWf2/hvCD2qGyERQxZYfNfp/zXynFY1VE1dj0q9IJVsTEA/2L1bCZ','admin','ak_43dabefecee68d08','2023-01-13 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$BkhR56QusnCoB5KsS6zMOeHR3Jih9XwvMst7B7s8Yzk04W3NgpI1I','admin','ak_cdcd9f2f1299df1f','2023-10-04 10:12:00',NULL);

