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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$d5c8vpPyEAkAdDljQLGi26E2YY24vrHbs4x5ezchKXZ.FRAH7KG5d','admin','ak_818ff7a7791a200c','2023-09-11 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$XLTqUImuS1Pw/kg1iF3q1px1M7WLJn90uRaxXLiatsXG4DkKYWNAY','admin','ak_fc12b0e67ca13977','2023-09-15 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$yZWvB0s8NzfQzr.hhJtipbdZ.nqofzwlbbnJdBDO.ZS.JxZl1mDDT','user','ak_0c1f14503e5a42ac','2023-10-17 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$ThC.ERvwb4ts1/kXXzNgaB1.GbkSyfcAQr/sqXUEXFkzF6w31Tiut','admin','ak_3eda38b05000c0bf','2023-10-22 10:18:00',NULL);

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

--
-- Dumping data for table `sessions`
--


