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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$f2ij4NwhOHXDUstsWYcp0zW.KWs8/SKDtvezCu1q7FOr.gxjwnlOs','user','ak_4d92527b26108671','2023-01-12 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$yCFeSGh0zsyve6rN4f7hSUNEWSBCKYKLayOrZoG73F5qJbhvJh.Sv','user','ak_a023eac642c4af96','2023-10-11 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$Vbpoc35BtTAilFoU.UmPq6A7dkcSpkwk.QijHKVnTQ3wKEvhBOUAB','user','ak_41e54c792c05f8d9','2023-02-09 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$aFgkez3OV1/0yFc/z3XfCG2bCrsqkqEszkEk9kX8PUKkcTILmnBc8','admin','ak_17e9f5e8114a1206','2023-07-08 10:07:00',NULL);

