-- Host: db-master-9.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=23997;

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$b5Hl.YMP2oZfWXJuuk27RP.TXTL9mQRZKnRk8Rgw1.UWr6behVfek','admin','ak_314282858e1fb185','2023-03-14 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$qceqMXdslfTSIZynQDSSRsG/enSU9nA2ODjsw6FLMm3lCYkr22Nt7','user','ak_4b3525eba3944834','2023-11-02 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$thCDv.gHoOz95UghUdBjvwV10vhG/qYOP8nZBLfCQiGzVQOzPjLAh','user','ak_cb4982296a095304','2023-08-23 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$6ST7Xt1DRxYwSrTSb9TpN17chX2YRUdkDhwS74qwdJMuNhZZ7GII4','user','ak_35a83fa84c9655c3','2023-08-24 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$ge9xIZbrqIvd4OeRo/GYMQgM8hqaTB0yPyLFbLus/VS/071xo0vAW','user','ak_355f24d6b0a781f4','2023-04-23 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$26ULubRCucBMn8Pq3RN.bMOHxPRy5KonnToSq0HvTUbiB/H0Hv0qw','user','ak_d429c9424383ec1c','2023-01-03 10:22:00',NULL);

