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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$4thPUbAMH/9T1we2TyaSTHLnnDlbFeP1VE/5QjxC6dpZHL0byoGQB','admin','ak_858c8257be79fc40','2023-09-18 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$m9whDRKCATsGjKmaPJj0ekk30aNPmKmlzc2cP5uIG8L5StzxRUkfh','user','ak_99c158616e38e7c7','2023-03-10 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$bonfWsDyLk29f03QaWBXOFw/pIvXiX5W6Fbct5SriLw.J6eSkJS1W','user','ak_5059d1d66d198b4c','2023-06-20 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$pTFfh534l4SCzk.08F/k/febGYjkXTzmPjjQB/gK0dcMSLvLQsw51','user','ak_51e9f332b6199024','2023-07-19 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$xRROVTyVRYgh11aZPcOt0BehRoHXVE5Lduvomp1yHh4FRHYg11PlA','user','ak_032b6031084c9dde','2023-10-19 10:04:00',NULL);

