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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$2vc2VrqZMTq8acRHEdDftKDo/CCbMOclpsRq0D2XeCKaPTWpavO/i','admin','ak_6c9ff61ec0bcc86f','2023-04-03 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$LoykPJsu2pHVNfcgAOSojMxXN4uxuFLADJoXXuoDUfIFFkEAm2ZCy','admin','ak_0e97bbf943b0a2a7','2023-01-08 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$biMj8OBp0gpDhv.zXAk8o2DhTMM/t2iucNz4jtB4V2F6fmB5SxEqN','admin','ak_7bb8116672eb41c2','2023-10-05 10:17:00',NULL);

