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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$sb4OLKc2dvmDwezhzGj2/1vgsMTEH8v9O0bavBPlXQziiUlRCUfuC','user','ak_697551f15b7cef48','2023-10-28 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$RUi4rATEKKM3Bj7eh3Oil04z6qQOmsj0gJILR0/tk8K3lFDaaeTrl','user','ak_af46480cb8867575','2023-07-02 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$8Ra3Dv2nTY93T09ZAW/Kmv29ZmmwsmEKmTMvufeP9A0JGJsG.NMxi','user','ak_309de687b0693567','2023-12-04 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$6OCS7Iyr6OB16hV929v4efFj/anvUCdlIROQUXCRH69S7UxjHQwAd','admin','ak_1566ad122ddd7e84','2023-04-16 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$kyn9zIaaXpd4Aq4Uk5qFwPr4jrPsjAoSf3WOxLXs4hVaqouyOutP7','admin','ak_bde70f7e2a863a76','2023-02-06 10:07:00',NULL);

