-- Host: db-master-2.internal    Database: webapp_db


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$QBlB2PJ5TqnOMK6Ozs9xsMW13iBk8W/HskTHA.1horsqGXZv.ULth','admin','ak_67562bb5537972b6','2023-03-11 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$dGCq8bAZLJDqfQS8Pq7DhZ6WSoMxdykT1NrvdV.h2eMXP8nLCjxKc','user','ak_6f27ca37dcf3151f','2023-11-15 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$CsAfZcC8u9updWJJJl1TgleEVO3C1lIEXgRD0pXJKRzIdibVsenjg','admin','ak_d54106b0b52df7df','2023-01-18 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$FOhLXuo5zYly1Nb1Xou2E0bsaz8aiqsr2gVY0kQJBdXNA6BvjnxSr','user','ak_f1042b74ff422e05','2023-02-23 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$DjDQBitO4Zl09SuNc6QEVFV5pc8uwilOPxd5tqedWzRX091gVs/j/','user','ak_98c8638bec297e69','2023-03-02 10:12:00',NULL);

