-- Host: db-master-8.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=42080;

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$/Ez5.kLBH99UuTCOzAH3EtoX4poT7qXvR5TOdz26jlfA/cIN0nLo2','admin','ak_49fb5751fc35a319','2023-11-12 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$9Bv95HZcaS2BS52dTdouoSJfES90fk24bXwZfvWHaPeA48Qc6oyXk','user','ak_032c7514340ff812','2023-12-25 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$6HJRm3i4VwVgEZyOj01.8xLx7E0bxhodSTa0wx.dRfz9oWGosY6tL','user','ak_eb83619c0b04ff99','2023-06-03 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$mhhVPXRRzP6rJQohlM/AO7.uhUHCzYL/n2LAssYDQU9nYZAfCQb6y','admin','ak_3a7e366f8afdd866','2023-07-25 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$FpmMnEFtUjA2q/cK7.o4NhCGTO9aih0acl5wnW.WJ.n8Fj.0vjt7m','user','ak_9791c45704d67994','2023-04-21 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$P1E2souhr0LbW9i3iwSsRYIRWdnp.ZXDCj5pPqEGu5wa1r65DGA6C','admin','ak_89eaca230b531d26','2023-10-16 10:18:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@internal.io','$2b$12$kKZ6uTkzc7K2zAH9tYRw5IdB1h9/wc2ll/2CscFgFp.3FSh3/ImPK','user','ak_8e7b03c44463d093','2023-06-10 10:05:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=26401;

--
-- Dumping data for table `audit_log`
--


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

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


