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

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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$0yWC1tAhXD5PdbJvhIeqcjBBtJdV85iRdInEVYlg7fSKH5KAdeO/W','user','ak_cc12cce24aa66649','2023-09-19 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$9DgdribiEz3SYot4sPoS5dR8j4dmxg3M/CXvTO3NPutNSzuEmb3R7','user','ak_58577044a69dd799','2023-09-22 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$3WWxEszc47RMv0JIYFWpzPFP72RBaEN7MGTZS2HU1xtoj7K5EtWCG','user','ak_5196a9198db22ac4','2023-06-28 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$gkMmkzqJfoffU153u3BiLqo4GD8LrQKOkoAVyvatOlFDbh0T3WUZg','user','ak_9ad5d694e015d9ab','2023-04-27 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$VsZMWmupKqzhYeaIB3f7XFgfKrPtuy1M.r41kCvkvYbCaqWqdXLxe','user','ak_a85c9f19ae5d0471','2023-02-02 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$hZ7ChGtB2SusEqKHKwty.K52rWbGPh8atFZHN/KPgMT9EsZsPJ12m','user','ak_2b60b0e0dfeb97d5','2023-01-17 10:09:00',NULL);

