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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$J2bMHBbzR2vP17fok/8ffG25ZKaGlpm8eSYtD5d/hksUU0zkbwb3C','user','ak_9bc36c07456aa7e8','2023-10-04 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$YVLlH61yM3qkaUlZtLx5j.246PjKpa0zCe3N5c6OED1LzSupBKC5U','user','ak_46305f018ebc4831','2023-03-12 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$T8wT4TqjSoEtKMnESUpjXbKSRExmhH6FY9TN6puoBXqyVif85k6QS','admin','ak_d144397540b30e1b','2023-02-01 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$0AP5DHc3MwPfqPc/W29lpwl8fj/Enz4KdcgRe1FPAZBnaFllSV9vX','admin','ak_08cbd7a7cf2693a9','2023-11-12 10:11:00',NULL);

