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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$C.5Q.dv9c56wdyW2/.kKByqBv2YFuUSL60sgu9p4kvlViRsXzK4Dp','user','ak_d1c46120c37d7d5d','2023-04-15 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$DuWxYiwn/FIJhTnf.Zt9yapgFK7AVY2Bx1mCtX6h6UY0bgOztrRMJ','admin','ak_d6b5bab77e673fa5','2023-04-02 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$amy8F9FKQP2kjpBz0oPYtaWMIw6H/gTQ6RyqDlzbxb67H084mZZoi','user','ak_a21bdf290fc079e2','2023-12-13 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$Si5JlubxXQnKfHIqgQeRALUBYiZuqXtPFP2TRwKtKfqHHaAU9Cl56','user','ak_902f89a8904f345e','2023-12-17 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$We/A3wBZ0.M471g34l91k4DHrlO6SMg36xe/cjMbw0qh0TNIpqaKg','admin','ak_913bcc423914ebee','2023-04-22 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$f6ZoWpC6QasrxCApEH1HMjjEWps7Nfw5hd4E3iWsCVFHL/aY5V7bJ','admin','ak_814937327676310b','2023-09-02 10:18:00',NULL);

