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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$FMN/kaKTAcpxDe7T/GvZIYwnodBnf5F5P5nOAI0gN0kedzXNUw0tk','admin','ak_5c7ffd0a16bc1d98','2023-03-15 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$6qYGBK1ZCqzrmJMFtIXO0ECjgBS0Sy7t6cbwXY6GfaLw/6x43rpJ.','user','ak_f2b940c7b0f61ee0','2023-12-22 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$lH0scjCccvHE1H3/O9qWJX5HNNkuqJP4gt.fF0a4fyy9bHNTepMTr','user','ak_0042e22cd090cbae','2023-03-09 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$kU110QeFUHRIIs8ItN7SVttzrSlTLFKBdDmkJjkQAcBzHlhAK09eW','user','ak_b489d43531de4ce6','2023-08-05 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$i5J5X1ruUkvEul9EuZC9w7S.KcF5SNZmk.Ko6.ZnmrO4RUd7U/w6B','admin','ak_032228ce894fe5ec','2023-09-08 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$UBCbP.YbqkJ0/V.pkw19wwq4gQ8YaG7iiIehI4a/ivjK/0M1ND9k/','user','ak_a76f323524414d0a','2023-03-20 10:10:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@internal.io','$2b$12$NxHRnTjVqw.Tz33vq9ka5S0inQh.GffPcs.vMRygkoyHhU4M6.ZXT','user','ak_11173d79938d8d42','2023-06-09 10:16: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=29303;

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


