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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$Hqa3x/UBGKV9cWXkVMgYWt0ZbWTfv1bwND56LYPJJcP5D0x7K4fXW','admin','ak_b91cbef126e78c0a','2023-11-02 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$0/B8zdzXis1xjnTu7YszoUcXJQk2sLOWvEMvCqg/Fej7rAcQUUSRD','user','ak_574a3004e1447a67','2023-05-18 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$ybbveb8yawWOspnRFfs4/D7vzjiCHgK/x9AQ69nW1qbHVQO0Rfw4W','user','ak_bc94f586e3f8da14','2023-01-03 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$cYXbX3nxpxLzLa/VxqcPtTOQUrah8x.lXO3gJGwLgIXBk7OVEfoog','admin','ak_e553af7e242d0d0c','2023-09-18 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$lqWhxm/1b09H300txiNMzRcfFhkY2h20OTvnzlGDbsCeQziwqpwdn','user','ak_8716e3d2df90f845','2023-01-27 10:23:00',NULL);

