-- Host: db-master-3.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=10094;

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$NTEtYNSwe.QeMMdcDsX0I4o1dMjQK43pgMslCwMrnIBYYwfAXQM9Z','admin','ak_6c54a475494faf1b','2023-09-18 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$rBab3zReze320e7xyUAvjQKwPOuo3g9TGldrzXbahAzaAIl13dRTh','admin','ak_324ba41bcab5542b','2023-02-02 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$Oh6doZV/FPv6stgS8XRLKRRR1QYZUtFzW6/M6BktisemzjesqQPhj','admin','ak_3ed59703973d0e8d','2023-06-19 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$bY4XtYjecPKzK5BrU1Avf3dDiFV5lUAuXypSPMlXvq7LoR9NeFFSE','user','ak_a896983ecb6cad4a','2023-11-20 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$hihqhbhcr5jXhPeikgC9zkuGRSiQl/TjXahyZbuT47UX0hbw/WAwW','admin','ak_0428f9e4ce0979e2','2023-04-04 10:06: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=37973;

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

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


