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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$PCNR8h0mjIVsoLbojc4YBTW91toXYr7Hli8ITaxPA9PrTlhLyBWrb','user','ak_0370b035504cd7ac','2023-04-27 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$11rewNeZm6utUAXATXQfgFRMaY5sW/7KLAeI/yOtPcQOuedm4Umyf','user','ak_c3b30abdf0ba6ffb','2023-07-23 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$pcwu5BoPYFhy2CEF0OMy6h4Ewk57XXQ0sna2uPKdUVJ/ZzJBsikAG','user','ak_995a7e086150c136','2023-03-18 10:08: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=47293;

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


