-- Host: db-master-2.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=29261;

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$99zfTYjYX7NGyyyV4v4nFfjybNpBunD8y.fdYx5waeIK0Urpe8Mp9','user','ak_e2d2cce8a4162218','2023-03-08 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$WQprSG8SCbjv89Cj.QNOhCU7xahh.Fy3jl6Ydw3xkBdCzh4KXhooD','user','ak_54c99975bcbb691d','2023-11-02 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$XqZjHX1z24ahAyz1TuB6PnoGo26C3XTiD7PQNPq3qauBxTu9fc/Kq','user','ak_c743623f97ed8449','2023-09-05 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$y0btvX8LeIzGRiISr3gXvcq61cxiqR7JEYSuIIW.r5OGXBaQtOdCw','user','ak_6aa9af2486fffd9b','2023-07-22 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$LoWFUnPeZUrNf4I7DZ5mpLZQvHGl2IAZROQ.r6E6nJphLVruwWeAL','user','ak_5d6ce8531aa66dc6','2023-11-21 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$ICf2S/2ueHHltvl/jBeZYt47Zh2msPL71g1qRw88GqHwKJHWip6Bb','admin','ak_c65e38644e3873bf','2023-01-21 10:22:00',NULL);

