-- Host: db-master-5.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=49548;

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$dfwgpRSap6JdvLVqPXVK42EWV3/CXcGS5GDki92htHGcZ3Pxq6jqb','admin','ak_69ded9f228dacc3d','2023-01-24 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$BSdlBNYvC4/czswyQXn2p03PoxmCepydQNsOsxlqb.tiJLIiu.Rkc','user','ak_3c32269d45ad9be2','2023-11-26 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$52Q232ySwk5wldOUZNSlFB.z4bhix3Zu7lhmzfdumpCzqFAxUl82P','user','ak_6dc9d22c10f5f58d','2023-03-21 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$oAs63ZMhg464XXJgztpXa9LnoichiEjnOy9kPtKQOdqdwr7l8p73G','admin','ak_a3fa4cbdbac3f9bc','2023-09-13 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$pTBKtC2Lv.Mq8vtQTcmbV3c1FocxIkoUxIu5nZgOuuTWWL4TtGiRJ','user','ak_73e116a34f6b332c','2023-06-15 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$dGHO0pXaF2yJCEC26nLhb1F5qs6g0thhSKJZQ4DhRpz0nLvDgpi8C','admin','ak_e50c867f7e11ea75','2023-12-14 10:01:00',NULL);

