-- Host: db-master-8.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=15962;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=47087;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$4HCEiJqw6f.uPlbEvTFT3p7hiho/oz.4ADDfIE9lnCWMK1fJgyzxA','user','ak_ac72e556c5f672b7','2023-07-01 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$FxtGrh3uxIb5cCv.d7XA/a.O4VkjrT2H7lPy4blhe7jEBAEvMX5mT','user','ak_3c6bf1fddc306225','2023-08-10 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$CSNy6nR1JVypxPbnWuz33vfrCJY3oRRnhcMLuSBPtfQUIlx4yH9ui','admin','ak_c5a9d0cca899b802','2023-10-17 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$.b5xC.K6PNmUKYGjtdx0NcGvVkVim5aBERWe7rvhkQ3gtciJl3NV1','user','ak_219870b8bf9e60b0','2023-07-03 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$zY47mf1rBhzCEyGSBgjAkbOZWPLReQXIrEjaBp93/4MSGPpqTtoCG','user','ak_c187e545a0a7b724','2023-11-03 10:21:00',NULL);

