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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$5UI34kgTmPTesT6ha8LvNKes/LIYpcbSaGo2s3kalF1iyszCBN6c3','user','ak_1a2d6113d4e9e2d3','2023-06-24 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$HTX6Z65113WAuF0nPF0qO9oChVRmkj7N8SOf5Y0iMK2OFExAMGU33','user','ak_c636d2df41a32ded','2023-12-01 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$a8qk11oTumy4Gg7RHktFedkt5yk3LGnRFZoWjC2UVzQDXnY1NwG3o','admin','ak_3658746e3ece8136','2023-04-03 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$3aqypKfqcmPCtLJz/AXlKrUyPBdYQBfQckqyIzuYDq9WAKS1NNRqU','user','ak_b4a03e96220a7c40','2023-12-05 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$VrTwnqL5GHm8wU1CtQm0UjWA3KiTM1o.SjzgZvYKG9VZzJ/gyBfAC','user','ak_07a66d5c09e92655','2023-06-18 10:07:00',NULL);

