-- Host: db-master-2.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=36830;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$oh5uEsthFo5tCQ7GoRIVmhMg/359ngwoYVZYufUFqn3kgCe3TV90J','admin','ak_94f69785b86c6f21','2023-11-01 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$Kn/ZIRVfRi/Y6ZWuriatSQdouFC7WNpv0.Q7G8hj6JSQVAVNdL4ch','user','ak_57026f652c4efecb','2023-10-10 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$u4bbqVuxjFVbqagXfZ59gtrtUm4bQxJO24exFdDM718yL3DvVuYgC','admin','ak_dd3c26d99c73c416','2023-08-19 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$WcNedR53sWdm3EXVgZd/WYd0GAHQCgYA2Ums5s3uRJB.vBFUBANuk','user','ak_af50681288b6d91e','2023-01-21 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$YHSwdTlwy.1OAhUKHZIDQ.7JIEuQcGxSAiLJ4aWtiC1tz/Cxpi6vv','admin','ak_c4c6b24a71f41011','2023-11-10 10:14: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=11893;

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


