-- Host: db-master-7.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$aROQ7aeCL1MxvRi6buB0szT7fncfaL2iyTA9qfHhE9gMpSH0RWCza','user','ak_5dd2b7e9952117af','2023-10-09 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$XDIwE3u7oMDC7luXqodhxisGDXkBr21UG0h/rJOzkwOIliFTAC7Lm','admin','ak_e651e4e9b60023b2','2023-01-18 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$o5lGLxUAzL.ErH8aw5Eo7WoWRcWACiUJKhjykJSwpjxLC9bJob8CN','user','ak_8042b9c42b1c9c75','2023-01-28 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$dBEOKUOLfhO0MisyWiRx.p5jRNJIe9CVDrpC4Ef8wVXWgG0nFkrmm','admin','ak_c7c6c084ebe49292','2023-07-24 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$0T9M0wfKLddRvfOGC7tiNBjDeGpbY9Ol5XARSdrOPvaUU1bgSPAw.','user','ak_05f4c9b2bea56d97','2023-08-04 10:13:00',NULL);

