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


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$uLq6H3m9wAD0FBnQXvn8tPEM5rYRq08q2MyYdWMUurCg4pq5ZH1nv','user','ak_9359e856dbd2b585','2023-11-07 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$WVbD8Rg6Qem0Ff/RQdY33vdrqbj1fE8chP/k28HnDa6C/O.Aq9d6m','user','ak_ed858982eb778601','2023-12-18 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$J1.sSSUfUD7MDe6kAXAGz8zu1k41.DaNr9pPaJzyfLq1FJOA5KEa.','user','ak_2beb6fb29bb5140a','2023-02-22 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$lxcvdDeenUZ1MLmUsLUXMe/rVxzIJBt1UKf0raj/8iNljQLTXp1ax','user','ak_1f13c076dbb199dc','2023-05-09 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$1d9gS6f7YUXkiCXctXwix1MwjHNLO5vhGvQgE.bj5GgUi2rCZBD6S','user','ak_7d06e5086fd8c5dc','2023-02-27 10:19:00',NULL);

