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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$CvWPdSEzEJC2hSne4xs/5wHWrYsqULYkKKGMhoiYvettLMjoPPfSq','user','ak_ebf4ea918cbf7893','2023-10-26 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$7jXF0R6lIz1W1uZC.DZsD/ryl/LhUzY2jsdb8NILdLbSBL4N8fT2H','user','ak_9fa34b45d1db9198','2023-12-19 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$opYbM4WRfyEL/2cqWrwbU7QYIZribE5wQB4Q5kbASnel9f73fBZ1e','user','ak_8a4f126999ac1bc5','2023-10-21 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$GG94mLsWANP6ITpLQvl3mLVjdkoTOJz45/5Hgz3B0pINWOemdPpvL','user','ak_a09fad6c0f17774e','2023-06-28 10:00: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=1567;

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


