-- Host: db-master-9.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=49946;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$JPB4Ypg3YFuTYQmcXr8VJMJ.j6ZGi868YHNPgOVCUYijEYXBm95CZ','admin','ak_9d7afcc2865c6cff','2023-12-03 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$Zo2IbPDXomswnpXM425.sABAMq1o0c.PIuyVzQKkqSjcqWgGT93Wi','admin','ak_35a5f03b41e8a42b','2023-03-18 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$Jbp6oDo0MO1B75iMMxSm/6t6gBfjCmqjC3FB4s7RL4hozNPJzZFuL','user','ak_76d90c07defa0f53','2023-05-28 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$D9jb8d9JK.NopNzXZYxcH9ja5ALtV2HnRk5aOj.b73AvSKshasNYK','user','ak_6a446dc369f48ced','2023-03-26 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$qvDezpz4b0.9CBbPCJLt927PLLQ6XEXVZCnfysvZw5hqZ80ICboMm','user','ak_1aeb11754d9b7ada','2023-12-14 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$wauAx1R4q/wwJt3EKDOWLexRnDEAU4mOZWDIoEM9hr990BZYThQuF','admin','ak_a859e42e3ac9e891','2023-08-18 10:15: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=41228;

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


