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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$Es2tPf5nJdNXp8s2xgtwYTNlDKxp0v0wPTjqopG5jHTta.SDmcArS','user','ak_a4c28db8c0f2b321','2023-06-19 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$copBQW.mHAmVUFcxmlGEGFexfmwrx2YqhHRMl2J3lroYZEj4s9FJD','user','ak_e9e9bf9be9d110e5','2023-12-26 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$CFpWYI1u7N02cGvYOPgZboAhfVpaCH.Py2vSRq1BGJW4LbVY8Q6EF','admin','ak_a0ce0d98c2c8053c','2023-12-18 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$3FHhN03KJRMPZ3hMCsQJq1feqSQiiUPf/Z05UFtHAH0bMDvSrMe7W','user','ak_d4de268ef5a845bf','2023-04-14 10:23: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=47927;

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


