-- Host: db-master-4.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=21400;

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$x6kq3b0hHJFegerYU7SjQ6Zg7r6AdqUdpIzFELaaU3AsQoU.EuBoE','user','ak_01e232f5be131ac1','2023-08-07 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$DGKiyvCS2rM46.o4mnCck08d2X4jbFhvX.XUDiGEY7AybEWI58DgJ','user','ak_d6ab48cd99e3cd68','2023-04-28 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$UQnBG.LGyokTw7B1/YObFPzWBpBDRCPwJLZu7cq3asFIrrsyDb3lt','admin','ak_8855cc7b2ca41f14','2023-07-10 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$xjyoHYDTLz34FNBUlvnVnFY2UoHus0tdK4MM3BlKFGXHw6xym4hcg','user','ak_39181c91e998565e','2023-06-23 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$pAMOUrdYHw1OiFZkRpPqr4E9b5ChhGuntshSv70mQ6UKNnVsIeZpG','user','ak_5d227f82b267bf9f','2023-03-27 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$t7yVFDrREbB9UBOh2F/0dRfGP82buj2herwSjcjcgDqM292VtlHgR','user','ak_43b5487b825e8e68','2023-04-20 10:10: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=41311;

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


