-- Host: db-master-8.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=49362;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$C.Ck7VObD7h2pzy/F0fYFHPjcB6Vgn/qbKZpySYRCgzuaST4Xno90','user','ak_40067a0e3fc8e1f9','2023-05-19 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$RVnEWrf44kaI/UEVZEQ6rcNDC965k1dCBXieyujGmzY59lCJSkPUh','admin','ak_806ee2931f5c4be2','2023-12-13 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$3HW93ebv9gcijQXKtpHWe77gnyCe0wLVvjWiHQt48oVmmEik/m18W','user','ak_a3dcee9616a59100','2023-11-01 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$vzwlEjq24Rkc2lK2T2Lu3XwwpkEt.13dz02.KquXibKsUt1kX4qwH','user','ak_04dc8638615242f9','2023-09-06 10:02:00',NULL);

