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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$Mfz1.EUO0V/ezNtiiQuRsPYwcNoeqnuiP8ng0cepq6MbyqzfleNr2','user','ak_8240e1e109bc40b6','2023-03-07 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$r2FiP/NY8svtIvB8pzWoGdXnxuD909SLr7jLftTMXksVJaKyj21Bi','user','ak_6d8ecad69fe9835c','2023-11-18 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$.yGySXq33/aMU7VkwmUS3RYH7s3SvhrbcJjgcydQLqJqG69oJ0Wwg','user','ak_7aa37cc3f936b17e','2023-04-07 10:11:00',NULL);

