-- Host: db-master-3.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=39061;

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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$6QENY74oBjBVEmHcOdYD88S6BBhPGOnN/krW5XgU1ZUVlc3WqJlY0','user','ak_ba338c08e66c1cea','2023-05-15 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$a4iq10BDUNERvuDBMBGmR60M7wpiaTgV2pMSDGLpJEFdCRsrFJ4Mc','admin','ak_caadf6c90400295a','2023-08-19 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$qTQyoVh5uqChCsVFcZbu13Ss3Gby4P6MJH8UmhevkcVu8HAcoEKnM','user','ak_3ca5476dae2605fb','2023-06-15 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$yOs8O0BD9gGos80nYaVeuAc5.NCaWuKKX2sqtf0l6DzbwNfLG31xs','user','ak_9ff984b1a2c55dd1','2023-03-23 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$fg.pfbeJ4LhUaR97yYaPrJf.NA1GVx.PX6GRzsqKsY1yJVXwZxLcm','user','ak_09ae07434b869f6f','2023-05-09 10:21:00',NULL);

