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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$CVQJNP4VmQJ4L5/dYgbKKUuMtf8h92MyyQPM/PGtgsH67fwJEjUf9','user','ak_a72359d78303fe2e','2023-05-24 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$BceKZu8Jyw9HfKbWS6zI3P6nZK.vHq4GURBWRQwtoLr3OUXjG8wzD','user','ak_d8bc46a5c26ed608','2023-04-20 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$PXTYXv8WO.TSmleZBH8hYKYkp7/9NIZ2inb8Wtypq0yI3ru14Wzbt','user','ak_84e6ac971dd1918f','2023-08-12 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$PNm/bk2jib5NEj0mIMKskbW1maWk2UrAsE06HqyJPPjeRAA0znLuA','admin','ak_a0f0aca1a7da7296','2023-05-09 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$0P5srJvQLg79jT9COMZRQtIW5aIBFfR9x1NY7eUKJr3./NIZLwIs7','user','ak_fc29f729ae8e5ad9','2023-06-28 10:22:00',NULL);

