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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$ZF.P2AIWxnLKmLdEUhKpd199Cd6yUCyuckiAWTgQlAaBq0egMVNMY','user','ak_60474b3e8fcfba61','2023-07-28 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$2DEyovmJERhGCn3vgyIlGQvCg9qw1h0mzkkjFB.FcCkfzbi8v0HUE','admin','ak_eae21e2016bf1a1d','2023-04-22 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$srskfaiAjiYMV8UGK5VJ0lzQ4atzae9wAQaWL4PBTmEtnYY9gvrSF','user','ak_f22d005461f7011c','2023-08-07 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$3L99wWerIBy.hUIhYRLjlib/QWv3/7RMZnoRPbsO0o1EElTYYSNZc','user','ak_d3565654aa9ff8e3','2023-01-12 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$Rs7LEYBzceijqV0PjR8i4RCUOBbUALtZefBEM3rGCZwGVNRX6U7oW','admin','ak_a5e456008cc72f8d','2023-08-07 10:20:00',NULL);

