-- Host: db-master-5.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$3.gpnEjwVo/n66OlzN8WJ/i2DMnG.brWIFIrgrJxhVbmknxspWWay','admin','ak_06c42687621c534f','2023-08-03 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$.8QRZmFYKDTmPBq9dAm9/1jn03vh04/RSb/2zwhgq.A8UmicPlytM','user','ak_3a8dee60c2d6b6c3','2023-02-14 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$GoRCzH3r.x135POlfhZNZneaTV96K0xDjGy1g4Aret67QVtAjVyIS','user','ak_ef7e65e6fe571aa5','2023-09-07 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$spEIh8UMcAqa0E8fA3570MOe6k7fq89/NlrVR5tBx5VTbA2TBQ16t','admin','ak_4ad429216f056ff0','2023-06-15 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$PJVsImG1p..PdVd67HKmGSKx9mcEMIuba7unVetHf5r31LnyNrF4l','user','ak_113f4237b5812f9c','2023-06-12 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$99qoUgj2OfogdoATvsE2nLjFdO3e0eRGfc5sAbX3lwibFtBX1GO5P','admin','ak_a7b104f85c9dada2','2023-02-01 10:00: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=39695;

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


