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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$7BXzhY7Iwab2qOImhQlRHFMl9mhtvXfr6oQjT7vzzfb9dqLE3wm2A','user','ak_815d18da2606fc03','2023-08-02 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$R9iIoyLJ5yf5nCNrzB0rtuIecG9f2hVpmeRt4OyhnFQiYq2ak/75R','admin','ak_e994a486abe4246c','2023-12-28 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$nd5FE.3XA2JMTnKAzzFhSRgotSnUlg43bm06OV8limsV/dcd8z/oM','user','ak_4c84316672dcfff0','2023-06-27 10:05:00',NULL);

