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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$95kDTZKz7nvKjiY2z7k9EQGwBgLREr7Yu8LnUpZWvXfyrDLV80Ged','admin','ak_2b79d8bc5c59bec8','2023-06-04 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$ijvbBuxuuljrxkkwTSaZpSCal9lHGPO5tuYlZAi5bzwPpuCmDa2FL','user','ak_759051aa3745963a','2023-07-16 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$w4Dl7vKhYy38yns7YOIMvc4MvDPFmf2ZVqEBALB9sHlZ86DeSIHXO','user','ak_efd021d7748b3927','2023-03-05 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$KswQ3L5cbUhXzRf36doA8cjQUs1LKwzlI/3UZbZIusjRVrLR0dvfb','user','ak_01f1f04b3361fbb0','2023-09-09 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$v94bp0by4tbSG0L78f75nM31M.B6ib2FI9k/bnJAGSHSmp8CFYUuB','admin','ak_cd1c47b52d0f8a6d','2023-06-16 10:07:00',NULL);

