-- Host: db-master-2.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=2959;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$knl4eXU.KbM2cRY2aSXdq9UCuWqYQa1fiEyv86BBEGrbijCupXqtp','admin','ak_3cb2af9e4cbabba9','2023-03-28 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$kBdsjl4Z/h4FrTxfxb8eJj6UP2iqjtknwu.pD2eHCdePw6aEh0nf/','user','ak_9af4a86f57dbbc40','2023-02-23 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$6zXQGE20UCe6L7E51Cncd8knaOFoytvqlOwtmQEmy9CMNKiiLfZd4','user','ak_209328a1f51d2aa0','2023-02-18 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$35WKIPXF1QTvZ/NETcwjDerwFFkN0P7hMBD79p5.DzYLQzFVh3/P3','user','ak_ab4852858a07e1e2','2023-12-22 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$oQsIz/HuY.se6rD9XlZYFsIuoI0YsAJPtiOz4u8XL7dAyvpon/PKh','user','ak_4609d2c2b3781298','2023-06-03 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$f7ZrGlmuL7fcZhIRUi15IL7n8WypoqUvs7dS9e8ej9VEbUw4Q8Y4E','user','ak_deddb5e5bb7dc2e1','2023-11-07 10:09:00',NULL);

