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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$Hr5mMFkxaSzyPMpDPZUEt3LO6.fhHNnmrBo6js9Ewykak6Nvkx9Zb','user','ak_9b392391caecc996','2023-03-02 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$wW80n7cXumjH0RwA51PrXpmqpfRlC7/LWe6hW.qEeszFAl2NPb18c','user','ak_4daf0f8d39d65bdb','2023-04-24 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$ha5rZ3lq6c.FVREbPIpNW0Z3z7XWirp7/m38F4foQ8COyleawEFN5','admin','ak_9d337c6335e86635','2023-06-13 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$kCZq6gv4mw0ZGgjdTPUbzNz6n/barmrZhUFMI4KXXJ9.2l6UykCKR','user','ak_b811dc64007210e0','2023-04-07 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$2XMRnCWG8avSsPWQXCmnxxPg5roLS47U.wmmxQ2HdZNEygP3M6WQz','user','ak_664275c6c7998c50','2023-03-08 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$wz/tE1wqmyXw9uAKmd.XttfiFt/iICGwdSQqe4CrXj/1uSg.BlCgT','admin','ak_b93d1ed9e84e2fd5','2023-12-18 10:02:00',NULL);

