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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$qx.r0QqeSq5bVrMXzL/rbrQyMIz0eZ9qd/2Xv0KnKkO6hPGRjuqqB','user','ak_7ad459f56ff91590','2023-08-12 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$5R2kH/wDXX0ii1UUdoHALxDAJKJbGWjN5EkBfl/YshqdEOJvdEAFi','admin','ak_4401c59cc61bbb2d','2023-03-16 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$FjiRQ.OJRAb90kHnK5n401vijbWS8n0plo0Zb0j/WHQiWxwVCjMqh','user','ak_292df7346e436c6d','2023-06-19 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$5XMrsjnzIJSGefCso9VCitDUv4CAacQ6Wl9aIbYVh/nPRXECb01GQ','user','ak_8d94083cbe62a59f','2023-04-16 10:21:00',NULL);

