-- Host: db-master-0.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$Ut4p1xVLBGeWs0FwJyIsa7JlmldJ0xpsKLPZNMEwY7786ky6uUXvl','user','ak_be86076773cb1588','2023-04-05 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$krRZPEz1Ihp0ZMhLvTbM6rP7MMUCV..Xn8zQ4kq.Nf0aPErSaiYKg','admin','ak_e0a9e33150945c6d','2023-11-14 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$07DW31GYTUxMHR6MulJAqiZEQlIy76fZJOVCTPOLyJlmPJu3LU6Lz','user','ak_bf87a610dbc5fd8c','2023-10-28 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$q9MYnSxpPdxyxBj6UCqfM0Q4A7rDnnftNyfQP2oRIc2K5CGMwOtUk','user','ak_bd774e9ac7768cb0','2023-09-19 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$NQ2UyuD5GZ5NMFAxEMj6hqXxZqzXrq80PLQEl7Rix.4T1Niha3KHV','user','ak_aecb147ab6e6fe34','2023-10-17 10:15:00',NULL);

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

--
-- Dumping data for table `sessions`
--


