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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$/qcDepSO6bJT2v01Cf7FbWwCT3LyWaiMzdjN0VyW4KoZeuNwdVnB4','user','ak_6a18235fc3224cff','2023-04-08 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$iMHAtrwLEJFgocirRYpILrxclabEVTV.pqttacIXMYOk/Tr9yy/wm','admin','ak_f2d55b8c98425a59','2023-09-17 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$eNmcs8bngY6aGs6IwtFdoIgMlFxp7v0rPaTJhC.yQ0jOdRvVjgNbi','user','ak_7db9f40d8838c190','2023-04-13 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$AaOmeYawQ3r1xVQYkn3Jx5PswEqBApvlC0/w1d3bUgLh2590/DJ8G','user','ak_b7832ea3ec92fd4f','2023-08-19 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$4sa9EFm1TXJHgDah.GBJdDWzi/eB88RFXcGaSw0g.Dh4kOc1WrE0Y','admin','ak_b716feee535f845b','2023-07-06 10:15:00',NULL);

