-- Host: db-master-9.internal    Database: production_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=15468;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$c7jwayZgj.XdErr70WziSY/UhzzTawmCzSmTo57kgV4jGtmr0u9TU','user','ak_47e138efd0ff8983','2023-08-27 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$zfK7k32hmMWa/nfDVeukDRtznlZibNpkUh.Ey32YLw1Y0aprPQ1l.','admin','ak_5e94409b6a183b23','2023-04-20 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$4XoPNQuoO0nklx1KDmxGKinImtYtuwt.8UJmEvvGPWsLpLKH2doJC','user','ak_4c413825acece6a4','2023-12-05 10:02:00',NULL);

