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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$/3nwuw7ETBa6Swi56NELmNEgEFpV0fRCaFNVGVCf1mqG86XC4.H4T','user','ak_81853ff2de960b8d','2023-11-04 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$wDCptCdjQSwcr327MJddxieiTzxId81shesh1uO7L8IY4Vs9ugwOQ','user','ak_584aefaa754afba2','2023-08-06 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$SikdEXsoPW1iHSBAlqbUHUjvdZsxdVVbfqWI0Ql2zYcxRnvnBj4Pp','user','ak_b6bcc09ddcdc7c63','2023-07-26 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$0r3VQnfFw5MPx75eiqQF0VlB2S0t.LFUunOvQOBQZzFko9YlOS8nm','user','ak_42f19ba98a563706','2023-04-11 10:21:00',NULL);

