-- Host: db-master-3.internal    Database: webapp_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=7572;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$m1eDUz0ZeZwjMYwFyQnon1u5xwJR9i9dBXISJUPT0osSKetUlE9Ak','user','ak_6eda41c9fdb83267','2023-07-21 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$cm70RzQejFOn0VPWVtMB0uM2llWPk4o.yjziddnhbotiwjvL9n7Xu','user','ak_f371e0672895ca52','2023-04-23 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$0nFSifIvONfF3tIcSp.Q6xfyp/9Tzd0MGPpbICRwcdy4E5pmuwR5Q','user','ak_1a45eaff24e9618a','2023-05-11 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$hzrYz1GfWFh65mET3GZdCvOu.jnZduAlFxbyJ/y4lTS9bwrR33fOL','user','ak_fb9bec636327f275','2023-03-05 10:20: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=38644;

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


