-- Host: db-master-4.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=25343;

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$a8o54/QpA7.4bBE6QxEiYaDLuP57N.4LgjQ4RzWFsqouItYYgMZd9','admin','ak_0c83f97d2ccaa10a','2023-04-06 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$zlVuWqsME2xuirL9UgbsVcTsOpZYnq1dTDF2tKHsWZtLj8.Ea6vrl','user','ak_440ad2d534f89b8c','2023-06-01 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$67rCFXPWOeIoJ20twYlx1X8SObsXyTaltyF3oEgYExHkXiNzfJhLz','user','ak_f7a2963ab02fbcbf','2023-05-11 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$GA5NJI/r4k4GD0MfHKjGiEm4obdoBgnRzd7RMT2DPV.FdNjF6Qa2l','admin','ak_1a5734687d42f4b8','2023-07-26 10:09:00',NULL);

