-- Host: db-master-0.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=9027;

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$FnHJpK6MyDS7gcgdcsptSwPPYzvjTfuRgQURs28NRYYV3G1Y8HRD1','admin','ak_2fef822b76900e61','2023-11-02 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$.45NYIxQfdHyk0LkHPiHtk8uKMqYnBp/NCUaGx3Kdxv34QbogCJx8','user','ak_d18ac1e770d09159','2023-07-01 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$mxqJ4XqtO3tTE0i9fERM7.FMgqRnt1BjPzCa.bjkZXfEA4/FGXdu2','user','ak_1a4376cf237d2851','2023-05-25 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$yO9ljXOUnWGX/g3trLCQIrZoVo6QL2jbKF1AIeD74z7IE8BxoE7J5','user','ak_c00cebee27a1e807','2023-03-08 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$hODFeT7EMTAmoihnAAj4MGzVPPvV43YVnkSeayxJitRALNV9TlrAz','admin','ak_515d9ff3483342d2','2023-07-28 10:22: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=17202;

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


