-- Host: db-master-4.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=10334;

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$AS2KEmACPrw0FQ9029KKRpJLeAlkIjzf11WPow61Gsb9qaaNxOLXr','user','ak_6ff8e63e188db97c','2023-02-10 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$VD1CGkKaBnFHKmdnOBwBXPo/o2PQ9cudUDrtEM53ej3fQm/sqVNAV','user','ak_f54c5c380457748f','2023-02-15 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$swERydvkC5BhjUxtoeztdMXgZnD/6TNVqYaA9ckomwItHgeAHN/Uu','admin','ak_7a4a310a84c06aec','2023-03-04 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$OS.k77ZjjPLvO.kTk70ZdZNG7S4XJQZ2FV6wdjN/q6BKmC5JT7Tca','user','ak_8a1b22f4e40110a0','2023-10-12 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$uIRi2V9X4J72oUgvYCwJaedAVOA8jDwfgUXuA15KOnP8XCvu9BzuE','user','ak_f80314c2efc302a7','2023-07-22 10:04: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=10007;

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


