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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$CAcTi27Ipp9O9YJs657ADcLt76L10LHUoY4YM5D341G4YnzMT5ZD0','user','ak_f6467fd2deb13ab4','2023-06-11 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$gw9mYyGD82bO30RqrxHO/hmD11VuvoejFqEGcm7KEQNPS/e1WUlbf','user','ak_f880aa802b01d423','2023-11-24 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$2MXazi80dllLeRlBS/wzBHXD72ZJy7icOMSVU8w8/gLCdUvmQ0adc','admin','ak_4ee8b2ec43131a67','2023-02-09 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$UIIUTM1ahyGPLgAFT4ObglOiE68ejxPT6xmLJg4JapTNkzUozemr4','user','ak_4e69932c7f638aa9','2023-03-23 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$3Cpoobgc.xU7kHo5J3r8xWL8nMtWl4ZPaYIBMGGRCdWz7713PoctO','user','ak_6e52bb8a8a0c6cda','2023-11-18 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$C4ORFrTiuqpaKXzhEqe.ghjp1Rf2bBCL9UUQyHkGFwrUqOrYydseo','user','ak_029eb1e697ea5193','2023-12-15 10:22: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=18867;

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


