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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$L.mwc3pWYP/FyAVdKvnDhdue6OeKrxdFzumufG7703FWihoWnIiKQ','user','ak_8252ad3fa903339c','2023-03-21 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$fRPx5GS9p5v3TNfgPNH8A1zut2Hc/NSC3j5LEHv0y15aG0iN/YzY6','admin','ak_ebe51112992f761e','2023-10-28 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$L6ote9EzNRGopkbs7vrB3z.tajzh3UAuVUbMyDHxsN0I.j6GH4LFD','admin','ak_2c6727211319d396','2023-01-08 10:17:00',NULL);

