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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$dO9wtkKvLSkxjBVAI2vtoP2DCk/aqBCJ8ycQlt9Gt9LrN7v38SP9h','user','ak_df45fbd3ad2de3cf','2023-01-06 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$/q8BIsjBR6A3wWgEVTVMQ6bxgIScdn6uAathwtpC0iXfGrjjjsYYk','user','ak_f60d9d30ad29affd','2023-05-01 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$CZP/DU0jgA5GJt84JPcpm2mpCtEtZPUrmrzRm9HVlQuCPFg9KalPf','user','ak_aa53dd10616fb901','2023-12-10 10:12: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=40457;

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


