-- Host: db-master-8.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=32463;

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$YeEH7H0KuIXE6Zsyx2zAe/nq2nA8.M1mQhm1jWVp58fuxDx4Yz6nQ','admin','ak_e0eb87d62dc5d4f8','2023-03-24 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$YV5dmFBgAH.0.t1n/q7n3Qtf1JaiTo38VCaMBwVoRBPSvE6mXiBiW','admin','ak_7ab8d042da3ce85e','2023-12-03 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$rUNFYmKPhEeYBCHRgV4VNhfWSA8LTOQ1muxvUZNKKGt/2sjTv9Jgb','admin','ak_d206a07dea7aae1b','2023-09-09 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$QZA9ptjPbB8FsTopqURxKetg0/tNBnOfUGZuqpolkdCO0b4dakg4E','user','ak_f548be35ac6be5bf','2023-11-26 10:15:00',NULL);

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

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


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

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


