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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$PH/z/ktBMhrrXRlg9UabQEHFMFsi6p.yXweqqE2P5SuPaTJv4sTKu','user','ak_9cd936013d7e5af0','2023-02-21 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$kkqIcphcQmnD1HQRznDTYa5izcQVd6.ma2ttbG47F43YMKnpabfGR','admin','ak_8caa41c836c612f0','2023-02-18 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$1x3eA4wZfzpQjh4NMTtcbZau6MT/5vA2X70L/cEPY96SQ87WiBCs2','user','ak_de608bd02ee157ec','2023-01-06 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$pcir2L8dfVD6wUFT7QpniJX6InVfWTpCgo8lgh1jhBcU9wC0zP5rA','admin','ak_cebc7e608602fe40','2023-10-16 10:17:00',NULL);

