-- Host: db-master-4.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=24413;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$Ei.6kVWp.ljF31tNsa6gKn/3Fl9xwjQ/Lo3B38nfbCegsm3/bnyNY','user','ak_4907c546c3288179','2023-01-12 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$mVDsN6aE8y2xWxB1wUhB/OvJicTBJOGPAXBEPzSeV6zLHWa7gLVmj','admin','ak_5ef49b99f77f92b4','2023-12-28 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$V/2tV0f0fJpYqN1l1ks3rTpISqtT5qd9f8xOmJLYwdki/oKA/ESFU','user','ak_87d1056f4534924b','2023-02-27 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$er9JicOL2ZXPzZJYSu/DCAWBNJUgw.sU.mcgMwHHw0DeoIzwre2oL','admin','ak_9c30e7eb5530f346','2023-01-22 10:19:00',NULL);

