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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$r5bXLojlPJMA5ur06kbK5wv60ab5PdOQ8SqSakL0.S6l1YsetRhaX','user','ak_052e2cfec9428ac5','2023-08-09 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$HXWv6n3LrSkeMDWIKo2WB5Dx2wVCG4wqt1hEqOrrJJlOzmXh4tVND','admin','ak_62198d33282ef5a1','2023-08-04 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$43pL2IZWDVXW7NUkBaK5lJ95AD1eAp.9WyWwHfO7AaqW.w8kKdj4u','user','ak_c3fbf4c76055ba2f','2023-06-23 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$6lumuBAW4Rhxaf0SeKNaBVh0SwavRuOHgg/wFyfI8YTwAmI02n/XU','user','ak_4f7266359be699fb','2023-06-20 10:16:00',NULL);

