-- Host: db-master-8.internal    Database: production_db


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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$Xbr2mVA07MG8wLhNo5DwasW/yTLh1zIkXMIbu.y2341.5nCJuqYMW','admin','ak_903ee5463bfc70bc','2023-10-19 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$S8QQDnjAmok83z9ZOTkM/6GmOFvQ8p4atVBBVajL7ylXO6kxdzIft','user','ak_5afaf8348108636a','2023-10-16 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$sz03b7n0PaR98sjCH/mq1FaQnCBGxacQwfvtfPWtAzpl2VXtQj8a4','admin','ak_1b18196cb55d1e4d','2023-05-10 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$UqYrC.I3m6JT0b/BA1PFRrV./Mt/9MWkKMwhjcPTvOZjLG4POSv1z','user','ak_d2b3f61b7158b379','2023-11-28 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$sSz2idD5JbIVl42rwjPRy3HyZzKvV0t52gEG4zNXI/Do9cYhdisSM','admin','ak_552639ecb8040de3','2023-02-16 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$HS5XLkoJ/5.zrZYvP.KzrcP2PhX.gs0jNp8AgYdcbWiayOufIxOXz','user','ak_2ab599115b23f2fc','2023-04-05 10:02:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@example.org','$2b$12$bmFNvmrkl7ZsFxv6anSqTzfQao.obc9ASHFU/ePGL/H.crs93WxyP','user','ak_fd4c5e278769ef8b','2023-08-11 10:08:00',NULL);

