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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$Opbguwxsgfz/ATIGL.ashvhyy.JOkuJzsE3Sw0KrQXHe1pia45BCq','user','ak_2dca4fd0fc661a6a','2023-09-21 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$qsyIDN2qJvr6CrYfw7aML.2bwlf39QZq4ahJ0N3QfuaVNXI.gYqEr','admin','ak_43b1f8299de01956','2023-07-08 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$xzzUPrJZw2fP88hDSdR7zhCr/2MN.WqenYeqisui/b7xwS21RHc1U','user','ak_0d9dc17602895222','2023-08-02 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$euzu3BhYS2M2ZM53GwGmY/BjJGa.a/b80WVmBdFl475Rlr3tNuoUh','admin','ak_5dca7b0eb271b008','2023-10-10 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$rnZMSdc0u3I3PTV0A2DDpuCq11pxl4XIOwGzr4Qoy.ZEY3uD9oi5S','user','ak_6decca3c8b9c4684','2023-06-18 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$NKg4033l4nkg7DwQP2fBI79fkJ/Oo68xhgM3vr1ZsHurzeG1VJmHB','admin','ak_d6af838c3fd31ff8','2023-07-09 10:21:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@corp.net','$2b$12$.km1/ie3MrrHMXaTysXdSrP1yPvrStRY.X7yS3MMmz3gLplNvzatN','user','ak_6f949f30abb35694','2023-06-21 10:01: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=40443;

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


