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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$3NnaBdjlXfrEYpu169VMeYozzPp9TcJhQFeQrbSer3/0AX5mFBq/z','admin','ak_8346a1951eaba5a4','2023-04-28 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$5iwol0pMXapK08EP7hvovyQK4Bfzh2jC5HPVwXmsdSK95yHYd0y9X','user','ak_d5d80cd00e41ecc8','2023-07-23 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$3ca1jmTFLl91Psm6PWRAm7BTxvOqcV8sUf7a3/dGRm44LwMJHGGTQ','user','ak_2d517d589fd8c397','2023-12-19 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$0ES.R6rfOmT4bH28bFbKpsXeI9eeHnOMHpV9iR2rp88rraUz.KnQl','admin','ak_5df0d1f6c981b974','2023-11-05 10:14:00',NULL);

