-- Host: db-master-3.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=29002;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$RfHeNURUAx68eRYYN3ve7kRLBnFSldemAeG4DeBO0L5IA3uKC945V','admin','ak_a757a9d6baf6eb3e','2023-10-20 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$wvO4w75Q19MmgP5d.Wg8./9KrrI7aXb.EI1ef9IGyzDyq7JZnR75t','user','ak_117d771b06529cd1','2023-11-06 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$03FHpX1AU.7K4RiN8sa9GK/znd8bYddzmt.mEHIkVILFmod2SDlV4','admin','ak_c8e3f510c615b204','2023-07-22 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$CRKC.7q.R8S.e26rpqhOFJOmvCdrnCw9HK.f9z0AV1odfLI.9pzV0','admin','ak_8774b30e1cb37070','2023-02-26 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$oRQfh0by6uMskWDF6z1V3Udkp0SStFoPhg7hcZXEVo8tEFktsFir9','user','ak_8393fed47b2eedfa','2023-06-14 10:16:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=44397;

--
-- Dumping data for table `sessions`
--


