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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$.h4f8TnQ2iHuTd6R2as5vHzJgOzCCAhP7LaTYQpX8ehfjz5CNYnos','admin','ak_9cd3f27f6619897c','2023-10-23 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$uSaiBHAzbTGHZiJ3Os7HdNGiGLIlXHzVRpn.s8pj3c029eGl4RAbc','admin','ak_9464dd5fee762fa0','2023-03-13 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$bdVX9IbRNf81Re4ANMBPuxKmxbX1DfAGRejwnE0H02e5vSz6EpJhR','user','ak_4488adfd9cbe9502','2023-02-13 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$touhMGUHcu3TuVYoPIfuigbicuWNInVS0UBtuBJzcbTSFuOtLQHV3','user','ak_d9f26d0f139bbbac','2023-08-25 10:02:00',NULL);

