-- Host: db-master-1.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$JRLqhez7eHFWEotDjGb2iBEnWKks19GUYpRjtbZck.brvO8zzWmNA','user','ak_9c1f130556063f52','2023-06-04 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$3VfOYdq4CLjnCdet2fzzF.QyavAZN6QJlunL828VWQj3AWByAgPKx','user','ak_e7579b8d4cd924f6','2023-05-06 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$Gl4JcCRBnngcBa.XXJx2vl.TLz2kyotEV6cBBY4pltg7SReQ7W6fT','admin','ak_76000fdbce5bbef9','2023-11-24 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$yJXaTclKx7DO.JfZ1tYkKBtd/GMyuBrxwsDrxUiLT9bQHEjCsY59C','user','ak_1031da41268adebd','2023-09-12 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$1bWeWyv6DBXQyjL402IUluf45DBXYII9vH/7v7zMqcEfxCiUG/ufp','user','ak_6e9d9ce56d2321dc','2023-07-06 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$G7vMXvroNrQmp0aB5h2UB.yG3yfbG04ydN95IqzBI9Ax4DXkGbMND','user','ak_66eb567afa7415a2','2023-05-20 10:17: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=11522;

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


