-- Host: db-master-6.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=2436;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$Stv3WVwPX4FkHA5/aMYakRDPa3rhTk6at.0HfYsCnI9nKWPVz4tia','user','ak_d8053fc9f9b4397c','2023-04-02 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$GBSglY.BnIPcTjcZORGFl6PhkPvAIIcojRUyMssIYtG.yMJWGDkfG','user','ak_739f07fbb165ead0','2023-06-28 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$uj1S90a3CUvU2lh6lHAkKSaUHZI79jf1ZR8KgckuoOwiYYhoU99YY','user','ak_ed33a290fe9b62e4','2023-11-17 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$21LGtUPdFiDCA563Xhc42rNUKdxzgVQXSrgYiUiq67SB6bD6rh/l0','user','ak_9783c3ca08e96f13','2023-01-02 10:23: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=48795;

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


