-- Host: db-master-2.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=32789;

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$SknW5RACOSNrOmiLG87z1Mxq8kRjDEwHcAkpHfNMVtK3ZqlZi9.E8','admin','ak_4d6f8da85b9db61d','2023-09-18 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$EddPOskbpVE0W9CL/wjiB7hqRj3HH1GtV4J0FTGGz5Xyn8hZ9331n','user','ak_84db6c59adab4528','2023-05-10 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$SpOk9WU0gUoaaVLDYJ2ki8y8U08zDWkIAGT2QtVMqN7YqtHTAGX8f','user','ak_d201ad924ce66aaf','2023-01-18 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$B5aVNM9HVAmcWt/nVtmi7IAlBWWPnjF0PsAB7H4wHwnjOiRwp6aUH','admin','ak_0ba78de0415ecd2c','2023-01-07 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$BLRyivM2Snz8XJhnpChsyR3bvxlKhvg2bidS6UwDSCO1mX5pDg7Q8','user','ak_4ac63e1add345377','2023-12-16 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$DkB/MWwCgCNIWFDtY7ePPbT7yCUMVW1oyTk0S3kYzeEV81sUgWRHL','user','ak_5ad61c7d195648dd','2023-05-17 10:07: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=22016;

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

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


