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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$IudQ3.7eP6NIOeW9wdHKUU0PiwrpVhIYEFh5kQa3pEDfyHdC5HCG5','admin','ak_081a4d5bd4ef512c','2023-07-25 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$7zBkyzRWGf.IbW2UGiqsO0BYgYKmmzV1.om2X7P/HGztDtwmX6sqL','user','ak_91a5bae406769f63','2023-06-15 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$DdRTA.r.NdvR2eqRVVxgDDZM8134AV1Ot.Y6eAtD8C/PoBjv9tg7Y','user','ak_674079f0a486fcdc','2023-08-07 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$R17M8XuK4NivU9qiU/8YgCj6KtDhyCCSFEkLRwcJPM.kNEWeBzYxX','admin','ak_98292467a077a4c3','2023-09-21 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$UHGZOYYWeztQjqEWdAWBav04WyMF5IgTSmcJ/MVcuS4n9ljO7Pc9A','user','ak_07ccf530af6048de','2023-07-15 10:10: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=24486;

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

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


