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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$w/G3bQqJOOkBpSbRXYAoknzhIzId6EsiFnFZP9Yg1qcnE1cwpWbU1','admin','ak_7d5513ef97bbdc5a','2023-10-04 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$32FGA5yLg9sIel4AjYOXnvLY4T81najP8JhHhuX1l1SW0msUER9AU','user','ak_bb5c16d06e0aa381','2023-08-01 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$16fHra.ZyPnh1R2e5uXBPLPBnurmIRtm0DGavjo1wxV.qcx6VxIil','admin','ak_85635744a49d4512','2023-01-09 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$hRuc20whFEu..sh/ZpD9Z386gBGeqOW2oZ9Y.t/TImnaqvwh8qmEF','user','ak_9801afd47088102c','2023-03-10 10:16: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=47207;

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


