-- Host: db-master-0.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=43320;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$SxHfwLJplUHDdjsQWOaUTUZDptbtYzvRWSrCcuxyuwpz.L2Sn.6oO','user','ak_718027e94e304f4b','2023-03-12 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$IujKhlOyRomJ56SRxtA.EVNeQDXIFcfTs58dVzeNWH/9nXDDESrRA','user','ak_cd47356558e4b6f2','2023-06-28 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$8oL5QzuT3z//0VxkmdLqfRo8Z7pc7.GyShMrynSanIN6/OaNp14kZ','user','ak_182117729ff5564e','2023-11-20 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$9g1eqKp55BP/JHBxu1Iff592rjt7XbmmbiOLPir3Rt9YeAbIkXPmD','user','ak_5bdcbc1ecbcff4cf','2023-08-14 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$8o18iO3l1AnUH1lb4mwv0KMQXt3bdFTPvMUp.Zy6uJcxxI/m6Ohs7','user','ak_16709812ee18ea5d','2023-07-14 10:04:00',NULL);

