-- Host: db-master-8.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$pCKmeiezdrEPEbMotBkIzqiXHEh8QoGjiywxqE7Y5WCymE9NlPeit','user','ak_b0976b21dafcd11f','2023-07-26 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$L0VyUfeBQguOaFlxMF67CzhPdg7v2DniotBd2huQAGbwttDIz2D1r','user','ak_6258a85f8cc28ae3','2023-04-14 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$TucgdN26WR7TsoXXbDKAPbqNEWnrGxMbssaY6DlM7N.PLEYGP4LGJ','user','ak_52ebcb0ee8e92511','2023-05-17 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$l5U96lYb854Nj.FD0oT4JC3EYRNkpwHPm1ZnuGnLQIdr8O.0HaQfX','user','ak_ac3bbeaa0ea0eaec','2023-06-25 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$jL1OHuyilrLpZuh70bhJtMiuh55lpts7hIRXQwcFhbTk.mymaKZzy','user','ak_e2efb3f3a3aa5070','2023-07-25 10:03:00',NULL);

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

--
-- Dumping data for table `sessions`
--


