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


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$5RS7ASY6IuCf7pDYZIITWhaaWuSaFsi48PZASxDr9s6DiMtcKlJiX','admin','ak_0675a6f7c299422b','2023-07-12 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$m0f6SE8NRfBlPbddhAxTec.ahzGEQugQfZDqZWFPyndFHEyK9A5zL','admin','ak_c002dad7869ebba5','2023-10-26 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$IoE.TBJErYspvE.APcG8cUp0yCurEaH3otEY5oNeahREoXWZvTB/L','user','ak_525ad8463cb38915','2023-09-25 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$yac/eJwbATFWII3FlR8RZNPrbm0s15qXa5guuDCQ6wo5JzxDKBlxJ','user','ak_0b74364e6215a0e0','2023-10-17 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$4kaWthJV.pvD2O.GZCYlHUVkHPCrrLkAZQosDwDnuJ0xawgR2McEk','admin','ak_6470d374279f838d','2023-05-22 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$Lu1KroMxj9IRhl.BDRi2qi3X0sExa4V1m77dJTb9hiVM.RV0a67Mz','user','ak_d15434fc4b794171','2023-12-25 10:03: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=16141;

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

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


