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


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

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$N8skFco5XWpRxVsXCP.nDNj7i.GjnyiMGWPpW7PAV2/UjWtMUosHD','user','ak_99bb07f4e9c3a62e','2023-09-18 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$HvSp9NX6rJdOLBp5ocYmXzDl2QtpraBbKePAOaBtkEOCdltE68b45','user','ak_fcf1b9dd8eaded3f','2023-06-09 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$0d8/XVTYgtJydW.yfLYuCbUVVV5jIq75Go/mgkhjjNWksjZzfKpmT','user','ak_d5995461f4206e12','2023-05-18 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$2VX4N.rPA5s3vLp9YhflsTU7cx0RWtt2D/fzt/IvCmTE4nY7SWWCC','admin','ak_3ef4c26ae05d95a0','2023-07-27 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$Vq/2Y4yCI99HQ4DQjtcdpoTmcpUtnHM7EfQr8bDlD.tFW/PO/i41W','user','ak_c12cf30460b60026','2023-05-16 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$VJ7KK9lAndy1h8RFzSskegugwNnF1B0EZyzPl86dAAGBNJDUkeMbV','user','ak_2ab1738668148f4d','2023-11-18 10:23:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@internal.io','$2b$12$KH9ZUA65nny3Il3JDlJ9ga/cJy5q8bj14XxO/muX9cizCOedh5A9v','admin','ak_db9bf08d55ff2266','2023-05-20 10:16:00',NULL);

