-- Host: db-master-9.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$Th2HDUztqJEj9c.SNFBuNwvTSebpoQG0azmkE4rT9yob3m7Ii7nO5','user','ak_ad2ff91062206d30','2023-11-14 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$0vM5Fq.5UOzMD2sR48mNrOXagbnRoeo4Lx4LqXAziLGU9GqGwMAiZ','user','ak_52cf2d2d81199e55','2023-06-12 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$OMFXdPEQ9oqAztt1ymPVsibl3YRRmBlM7GpOq5z9yGxB2MJsuanB2','user','ak_f3bd85bce9f26931','2023-07-27 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$sLyzPx28EGX8Wll26/EFgUOy6cejiF9/c6oc1wLXRwwpdE6Tq6H9L','admin','ak_00195d4df7b2a4d8','2023-06-22 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$r5I5oygTV3/ha2X2eOMPbmeCsLWNO0AQcETLKaBh4JrJl1MAJDKbp','user','ak_f7597f7308495236','2023-04-08 10:07: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=3212;

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


