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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$nusJAj3DJAkjrnaesAcxi0L8u4eBRqZ167zIiG9u/xIzkHbGMZdyv','admin','ak_05529ef0f2b9e996','2023-12-07 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$phxpP.lE0p4UrPs4D3GqaRMmGmFcPjeFwrQo.v6.25ONg6D138Kte','user','ak_2d7ed30102ba640a','2023-01-20 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$9BTYQlDIeoHRF9OgkFYkHiEOCrnETIXhsvfS.cx5n8BjCUDQZiX44','admin','ak_25bfba740ad1ac46','2023-09-07 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$c4Gf.bC/KafCxX30R0/bPX8qzg6htNkVPI6hSJeZmqp.nueOP/xvT','user','ak_dd4dd4bbda03a418','2023-05-28 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$JCb9.UuFMC3/z2D05E2NgiFRCjHc45HWbNs3JivV8ULox8FFlPe8b','user','ak_db4835c7df133a50','2023-11-11 10:16:00',NULL);

