-- Host: db-master-6.internal    Database: ecommerce


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$meGgm/HPMnaVhmkMSEp3DyJOP.dYp9VLmV1pF/4a7/opY/ryMGDrY','user','ak_05704aad6daee270','2023-01-25 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$0PZ26AF9Cp0fUK/Muy/aT66G75sBn13xOeIP35Q6APVetzTmX4p5V','admin','ak_668040b856bd2d6f','2023-06-11 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$2ewgzzc/o4eHfn2Ov2u8IUxK8u/nZJ4IKbABA7Qg5t8hS7MywNJAf','admin','ak_47ac890c9e0d1e00','2023-03-05 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$amOk5c0PiXhRS8Bj3Ec6uxPZWdXIlMJH/IVikbZBdWI/fgumY.09T','admin','ak_1685f6bb67302646','2023-01-15 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$x3W5O7BUoprYVIrniDu.WHlfGAyrQQ3H3R7ekfze28jKwXCubzYoQ','admin','ak_503caa56a33e5ec8','2023-08-01 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$NvFhufbERN9zyXVWBrhZ51QE9P9rYpnIh61Zi32Eoq7o0MBiWOBDa','user','ak_f5ab16acdd018863','2023-10-11 10:05:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@corp.net','$2b$12$3kY3Sy3vvV2kGtXEd9iZf1go578FAE.usG9.BabTJYYml452.PQi7','user','ak_3af425ab937b8dc4','2023-11-11 10:22:00',NULL);

