-- Host: db-master-8.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$twqzlUhU7hN/y4F3XUvgwNI1z4b.GI6LqHAdKPMKjVTdEJeD/xxB6','user','ak_ac678f412e1333fa','2023-09-17 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$MPwKDWft6jkilP5dvkNIhapfDCJGdJt0K3i6KO6t5vJ43W276Sp0v','user','ak_075ae6707cc57c87','2023-02-17 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$iFbidfN4XLeJBNfLoldvS2Ug0U1OezrsSeN6Lc7R/fRbkidorhiMv','user','ak_c8a15c5389838d75','2023-01-10 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$0H7glgkRB3pv9B8cyzWRYbyLSlC04gzm.lNwYVnSJ86rKyW44q3RU','user','ak_86246b7d3086be3c','2023-05-28 10:08:00',NULL);

