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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$rCEqEMxLOWLquaGAk84bsMu3ozW8O3KHo3drOFCFxxv/WeXf6PSZ0','user','ak_9e7e1394526a896e','2023-03-09 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$M6kYDFxhpC3CSUf9.Mi9mThstS8FOOntnkqlzVeuY/dxDdTRGI.Xd','admin','ak_33f0b0909b65571c','2023-09-19 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$y6EyGKFxViQqe8S.ooT33rlg.nGJVEdvtA9CZFlfRmchXtpOY3ZhD','admin','ak_2fa2570362fcb9b2','2023-04-05 10:19:00',NULL);

