-- Host: db-master-5.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$n32NU0eBnohVMz5ibryOVnTRcZ4PnkmDk7yBckSiA6EZetBzPJunU','admin','ak_57dfbd4d5ee4edcb','2023-06-10 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$z8.6BVH5k2291/lMLdq0Qa/p/lTbJ6nyIFm4Y1tKpMb82DgE4dLp9','user','ak_54084f903d6acb14','2023-04-13 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$7phJdvBeDbEo.BVrceeO7616FIImWjykunJz5FcP3/HUMezIqDL9H','user','ak_e5db87cb7618c2f6','2023-10-17 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$FbNcLjMvwsonOvTMkitsulSPVCs4AwDWZTW41ZwNnjvlcxJ1oXezP','admin','ak_405e52422fd11c00','2023-07-25 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$Sg4vbeovk24YcAjrrZSlYjPdTE5nNLMQ3l5aO5T3K2/k9NI/yqW0y','admin','ak_37c1e852cbf023a2','2023-07-19 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$s7Rc8n1ub8VYYt5hYTv2ZNFJnJEPenS.X2sQXYXhNTpR6L.hoFZOY','user','ak_5ec152f080a18039','2023-05-12 10:21: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=45321;

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


