-- Host: db-master-3.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=31182;

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$30QUg3Hj8ZVSQ9hqVI5V1JeQEXzzPkwipzGfilC6/cI3cNV2zGGqY','user','ak_7d94d6931ff9ab1e','2023-09-14 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$eggAuoVn0f5hu2NqJHg8llugcHmlYlpCsl9hZMXw2brQTdcwghOrg','user','ak_e073bd313a05db87','2023-12-23 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$bs.Yduofqa4.0Kc5Aaa/gZz64./pXKFbk65SacWuSepGTjuYHhieY','admin','ak_04337f6bf3ea11fc','2023-09-12 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$GyHnCCHm64faZCq0ruxsnw6DiIPciqbyeU57D8el.5wnE.20TVVS0','admin','ak_d4de61a6f0e334b9','2023-10-26 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$Jri5nBGDtf4AdMIQ0LF0ECTTV41YmdXz1Ka.3mZJoIjbIkPSnRLMY','user','ak_2ca8c3797c1f5a39','2023-08-11 10:16:00',NULL);

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

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

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


