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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$O3YRSdQKP/ssqL4eNrI2OtGdcBYCaOQ6tnEj6rGF.SNZlUxWBWG4N','admin','ak_cf5b495be6deeb94','2023-08-12 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$65nrkqfo/.duPuI0r0sbue9qIUOSqRSD8UDO1nY/ZSXik6U00TNb9','user','ak_f7d0b1e20d94615c','2023-01-23 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$94lLvd227P9p3qitYrcTUdYZh3wR1id1eKHuVjBw9TkAEdgMcZa5H','user','ak_520a72a673307c29','2023-07-14 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$CIkA2JUbJhcLrSnTFjr/pFUm3R8zuORW4VKXSyseVgsLiGh7NUGhx','user','ak_1ce2e65b766344f0','2023-09-06 10:01: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=19578;

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


