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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$uoIOEZkVPuzuvTcsUE68u3.pOjBQy56J5FZrFFcpQBgb/Nqae0CVp','user','ak_29f0be207ff7ac1f','2023-06-03 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$fk68U3IZ9AAe0vEUA1fpwlRGvzAAVOeHiyypR0n2DbWiJH7yR8tls','user','ak_06a577b3e270e758','2023-05-11 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$0icDBGnxIt1fom7lrPWJMd2aF27Hp38zv6DNStHUnHL6/8F4j5/UV','admin','ak_0bddd97396b9c01b','2023-05-16 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$brEZR5J/6Kp8oTOLzKrOwfbwQgQomIBQby8G0aU08WxZRQxoNSfQy','user','ak_c804c763ec3dd5ae','2023-07-16 10:14:00',NULL);

