-- Host: db-master-5.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=41832;

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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$.z2MqnJJsT8NHBxLI7Gzrn7bNVBJUQ2NToXDw0pV7BPXmuxko5Ao2','user','ak_8b038a41f1811950','2023-09-07 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$NyFzrK9FtBX8ObPvnAKAv3Qy/G26ocUbY0lfeZuyVYDh8/GMYxQvv','admin','ak_360640084196fcea','2023-05-19 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$nP1CdZtHHLdFGlYwKVqR1EcEwgzF2CAHTjmX4j2qTuBXxkLM0AdPl','user','ak_baf7f30d239ce728','2023-06-16 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$ZOw2Y2vsXwcyZjh.CAN4C3bTqInxeC1k0/ywywHWNdSPABV1YgW/7','admin','ak_885f8b2963e1d743','2023-05-15 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$l7qzkT6CTcAChaiIs0FazVLnavLR6VW2eXlVfAAjHinmE1tDX1acK','user','ak_570db69f5db670eb','2023-02-03 10:13:00',NULL);

