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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$rfaK/1n.MW9FOUfXveWorvFv/Bm6Silkwn9yj4O9kOxFpPtakZoJp','admin','ak_2a10adef5a3ba2df','2023-08-04 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$yxyjXTe2lKowc6AzoRzaiQGTolwhENUA7tKbIoYKMCjnKHlTRfquU','user','ak_d43aca938ae2b9a5','2023-05-18 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$1/kLTgBBkzTCB4o2579.up4xzp9WIiXtSnqXRAspk25/AT7DIOnnR','user','ak_49858ed7bdba5685','2023-09-23 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$SwpbLdpaY/5EhVwCguMHW95.GmLhI5cMiUNjzQavO5FBzjZZqOTdC','user','ak_0127f7712c04fee0','2023-10-14 10:00: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=9441;

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


