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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$qDAGS0fdFuSps6JaU2XiiqsLvEk3oaZtB//88XipTrfnq7xgzUOUA','user','ak_33609a287d77242d','2023-03-20 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$GKncP472X14pi3UntYJfxvBBt.qpBgfiKH1V.ZuSPeCvZwhfvjGUd','admin','ak_eaf9c7f48559fa3c','2023-08-08 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$Fzdzq6A6KV/Rdn9w/jLgL0x1ln9UGMVo6L48gYZv/hU/KQ5ADLHHj','user','ak_b0831a80f5413f12','2023-06-25 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$Nl.tmwHxgGUz2Gg7G3xB6nlafixbLBkF5vHP.KcitTtNDdHnXsJcE','user','ak_800e4954b61a50ee','2023-07-24 10:22: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=15220;

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


