-- Host: db-master-6.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=44559;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$5bwhcLm7HkG2Ulhw.JB4iflFxMVZe.gT5ZcO.HDlgPddqaxR5.rI2','admin','ak_077b2f1d49c8ac50','2023-01-04 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$Tcx0r8SjXB5bgKgxpT2o2UJp94envnCGUJCYduMEBz.5YeB3z3fDY','user','ak_68ddb9c6824ffee0','2023-07-22 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$MyE0Uwm2Er8dQVjAYHIDq..ZlWTcie8xYeJQGWMAGkCj5PvVerxwV','user','ak_5cfc86fdacd392fd','2023-05-21 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$5grJ2eJUjGUSVnH6VzjdxuWKLBDxW9uJcTHXrhq1wX0mRRHS9BH5A','user','ak_409ef84aecacd23b','2023-02-17 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$1Kk2OjJpUOYhRyVDhA3nYym2AdNNoIn3ej6Y4g7Mn2qOMZc9CiyEa','user','ak_2032bd35fbbafe84','2023-11-02 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$bh4YB2ZVzUq/k18jx60zPhIzoG6FZfY8g0oaWB59lAtQEd6Idm.Jb','user','ak_ac88535f0c82db0c','2023-09-05 10:21:00',NULL);

