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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$XLcZ7QX93GEG17vs0OABM2ACf76OK2Bnnzi25E3b6qtJzZgAP7Vv9','user','ak_665b997c49e337e6','2023-02-11 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$SjBNCIVlj2QCuP1HkDlrxQUY5AKt0uZr0VGYtkojI1Gz3QhFdaHpy','admin','ak_048dd223c6ab2092','2023-07-19 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$IN5XOA1.wCI5lrROFQ0rHNiGsNL7TV8.Ph25BtEi89.VNKlWqi./5','user','ak_845995ed8af03cec','2023-10-01 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$LQDgLTE2Udaw54bQIBAa/ZGsN9IX4pbj217ngRKegrpMxDcAOfG2m','user','ak_18cc35629830c50b','2023-10-06 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$hmLOeND4FCqX5DTau78pCZZBkFHKsI7B/x4Czv82UsX67Htvq3sUE','user','ak_31c63009bbbb0c5b','2023-01-07 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$a30ZvvYnnLOTyzM2HZqgfzwC2ae4NiDaufPjfJZnoP0MWidSR.94m','user','ak_3d49cc1421b35d50','2023-03-27 10:15:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@corp.net','$2b$12$cY3v7cC626QzmnSyqspvxevo50HWio6ly1uouGQTX..u7eBpHmPmr','user','ak_118fa85af7046021','2023-11-26 10:20: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=37624;

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


