-- Host: db-master-6.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=48657;

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$jaBwO62uTyioB5DjpPg2Ojw7J/hA.ZGOETy.4QFoLFbRlBGidSyCg','admin','ak_a5653c52edb4589d','2023-09-17 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$uBJkT6tb1N16lVa.SjPRKyP1GrZTvNMhbKn5bxlCsBPb9r00WHAZY','user','ak_d9d96dc2aa018f31','2023-10-13 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$CseEcqJS1NQ2PbrHVWEiGZZI0SJkhn1hMQl2bblSRrdkr5mGGo2vS','user','ak_7496ddbb34082d96','2023-03-06 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$ZWBnHlwXL5V4pvfLAceVYeNKRCOM4e4CvzZRP5TEQM86EtOXLZbTY','user','ak_78616731b98a63d9','2023-06-22 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$VOJow/lrngjB7AIuhYn7XJfUDQudfeaXVI4WHWP1ni6lAUfixXS10','admin','ak_7b68e77728542cd1','2023-03-19 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$nutItm4wJVJeNGcaCtBGQYR2DobycpTNLCPlt5IHIFslgXORfOTYT','user','ak_b05125704a21c97f','2023-03-16 10:13:00',NULL);

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

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


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

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


