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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$Vxnkyd0rOW2tlJG62v1WW7i73czCMwv9GNj05/3cbDr2MH5zrKAZR','user','ak_af2e8d9a3914b3af','2023-02-11 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$m7xBelpFuqoUtfU7rW2gD01VR7j8YfQBWiV3hga3csA4da7oB.RSA','user','ak_67e2d1386096f1dc','2023-10-18 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$D7xv56qu0pUmEfyOJ5lBds2IxT1iy413EbY.yKqVkNP8I0APEBcT6','user','ak_0e01c2f3347ad9ed','2023-04-23 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$4/G57pYwwGjcSFmCOjL0uTPA/563ndrcJwBngoqUipxWDN5Twdwhp','admin','ak_c673e420840ba2eb','2023-09-22 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$0GdU/iscVDlRNzzNIRG9OFHWy5nLfvH7asGAi50S78i0E5tbl0k5t','admin','ak_ea1559d34d7a50f1','2023-03-12 10:04: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=39861;

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


