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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$R3/Rc1PI3j5oBZvjyh5nJyCCkMQT3nBnGTiR6vThI95xI2vR.H3WD','admin','ak_6ff2736f622e098a','2023-02-02 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$lqwO.DkDnlpjbknnLxEKFCzEPfM5pjs.V2bVIRA.68HsNt3FXdyOW','admin','ak_ee1caf1d7d5587e1','2023-06-12 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$HNeOJFq..6yc3t52Q69rjuDpr1IG9gCyleZ0/UNN9/eXTKzKYchCZ','user','ak_28e36007c10624e6','2023-05-07 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$GsKg2wguM.s0/D.NEIGX0lnBjOeVdzNgDPc22n4K1Jae/Qnc8ypyg','admin','ak_32f20fc86b3ac756','2023-08-18 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$J0vw/v/IDyNYH1NpZRR/k3WwNT9WyNOAbeSDbRgqdzmqNE0UrcUzP','admin','ak_a3b9caff964e7440','2023-09-21 10:11:00',NULL);

