-- Host: db-master-5.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=20852;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$TzIOovIA/Q5ZJeeol/oI/IISn16hYepxFOY1gn3ixfCfGGYgcHzrn','user','ak_bd5ed5c47c5075be','2023-04-01 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$UdNDM6iFKUeQsjD/XWovo/zLj0cf7Sirex8DvhLRGeoQGB2gELjn3','user','ak_b20fe13b8837b0c1','2023-07-04 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$ngUxZLx9w5J7odIOOYnkEl5Q8l2ioCxpjCdDftHXob7WJr4H/wTy.','user','ak_9db06bb0e6012c2e','2023-08-08 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$edDJDWkYQ.0lkDzxLIPy9vBrTOoKQn6WA9Xy19aYbFPeotbVwstr3','admin','ak_90720e52f8639f51','2023-08-28 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$FT/DNzCi8lB8MZ93qlHn8hG2kRoaRms0MxIhuPv.OLk.kq/eR5bol','admin','ak_954621d1073aaff1','2023-05-01 10:12:00',NULL);

