-- Host: db-master-8.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=46467;

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$RxId7JHxB9HvTzk4a2DjGZgzmU6laO66Cdi4QzUFrLCrOCnAQ/Sth','user','ak_c56b7e6ebcc5e895','2023-04-13 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$SG0hmu20LwchOh9mSsqUGs5YXgX/umKOQxbZEE9aelBK2nj32uhN8','admin','ak_4cfbc2d9f6b5fc65','2023-08-04 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$JnAR0QiGHKyGdwqdrI4xNLL/t58nzv6wEeHWzHkwTNFNzUM6GmFwo','admin','ak_8c1b657b9b7f6fef','2023-06-14 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$Yl3GWhFMq53qTeaB0IdlzEBn8oRna7C4obofPrPAqmi3PmrOscBrQ','user','ak_16284200877c0589','2023-07-26 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$z9oKlERuz8kE25SJttmgcLBFo7xWZO45JfhNdkah1r9tBZNSS8fHE','user','ak_ad6f039bc6ab88f5','2023-12-24 10:08:00',NULL);

