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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$GaGMQo4hk68JcKnKZ6UAN/hXDnlq5p/gCTcY3H7Rhibnu2vqs6ZgY','user','ak_88456b93ad71df7e','2023-07-26 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$t4SP3oHp7sR/zNw4Y.nmo/Y7JMxM8/kK8Z9H7eowIothu/A8JiaNF','admin','ak_4b7a6a1c291d637c','2023-04-26 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$oGkN81.u0E/9C4obYHxXsuoqqHO5EOFPtnxGrQC5s5yAHN7mAP.49','admin','ak_2cf2eb06b9e7a816','2023-07-22 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$sGpNE.gyTpZBB60ph7Z2GpG5JOlnTQv3KJttSH0tKKs1q8IyQ.XMe','admin','ak_d672596ad4872c40','2023-01-19 10:14: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=42595;

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


