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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$KJMS3QNeZmbOvW75vRznjcl0kdbOsFCwZKk7kqprGhn3ZjgVTU.gA','user','ak_80421879aee03122','2023-09-14 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$bPL79LNc4XquIycdaAwXxcFRe9ydwQPSc99L2DvGjWVHn1YZfqIm5','user','ak_07c7ee933a5f412d','2023-08-25 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$bry4stp75ibXAKMwQoi/WLipmM/tK8tj5KZ/tow2bE0aqauPB.4Hf','user','ak_a03665b33d14a170','2023-07-01 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$KKpJDz88sz1YwGZdNdPQ/1yG2WM1PTJCLUbbV2ZyKLNrKBsny2C0x','user','ak_be38ba110e23a2e2','2023-12-18 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$qlKveUQ.JsRtyK/hMRPrE/Yf8kjbgC5KXz8GauyoIQL4quNE4qDwQ','admin','ak_cbca8d1dba0b56ee','2023-03-14 10:03: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=7441;

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


