-- Host: db-master-4.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$MdXPtFfan8mimY/sNtAjc6e1G6k9PfWHbJsNFPcAj1MdIUkXluJZX','user','ak_d3e461ea26d9aaec','2023-06-10 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$hhuoB0mxaYHuLZLC8Z.xwuakP50T6M0grBxTB82QqkK.WGsldNRwX','user','ak_be9c693353717b95','2023-12-12 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$ND4cDf30SAAHXDxkC23Cn8JHUQWovBnfFizIcxi4e.kXWbCQEJ4K6','user','ak_90d3b7a741c7c9a6','2023-07-12 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$VxC/NDGEpDjAZnXtWNvPdU/uCT/Ihfdhxt5qiWACa75ui1E3ePY/W','admin','ak_95d8283edf7e11ba','2023-06-12 10:10: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=1755;

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


