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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$DexCWrG2GXF6vwvO6gEPja.AroI9ZVbkZA/R/JX1CR/mWz6rMHwmt','user','ak_39dd3cf5a1b77136','2023-05-12 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$rWhpxONeR0zutdJr94K4sMOh0N9U6ZYDGGbeUimf2e.GDIiKGno1S','user','ak_ab70cb3983db791b','2023-05-04 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$cIfGN6Kd0anmp4pxBGqkRCmoD/i95dCz6afyYJdvglOUTvLjELP7i','user','ak_dab8a67b5f1c25ff','2023-06-10 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$8ibYEM4NHF1p2tJH4gxUMk.K9ICdOX2fMI.v3/2FN975O7WaVQZJo','user','ak_11ae14e5f4bfafa3','2023-08-08 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$Cvxxi3A2RnpopFLyMJMIXNZ9jkVroJgIcNcPLVIGhao23LGhiS1.8','admin','ak_9aa7fa88fd696978','2023-05-22 10:00:00',NULL);

