-- Host: db-master-1.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=21979;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$AJbXYoqvcketQa2hdy/0I/dW1zL1bdyRdoQvJeqF.qj6OdwT.K/Vm','user','ak_c451ebd60c71898b','2023-11-01 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$5B800czNexCq7UYd50G5.h0U7whXeFGldQEBcK15UNM/JryyCnEDB','user','ak_6c1766a1deccd898','2023-03-16 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$/XstqE/35tPLNu8WeESgaNovtMkM6bhHm/eLpJyUao63dGsQP6zDc','user','ak_e6f0de6bc085c637','2023-01-01 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$3cFF4OWl2xV3ALAZYKSIWqnSsPtLoUMUNjpX6h5jN4rEBKE4GMr1w','user','ak_83248baa27cdb598','2023-09-06 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$OdLkypxMB2BoEW7FRfuiCPqCrlUD.bYhVjwwsLNeBUaKE5J52FweY','user','ak_1310adb51952241d','2023-11-06 10:03: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=12384;

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

--
-- Dumping data for table `orders`
--


