-- Host: db-master-1.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=22733;

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$F6xrdNwzbS62beHcALThENpRVg9XldY8EPrrdgrLqLLxwTTS7FxKc','user','ak_c7ca5598ac89f90b','2023-11-17 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$2Yap1jlBsMr8BykpizLp1KOwcRsPEY19c63ef1mOmPm4ep4u5QkfP','user','ak_54f02ffb9c330333','2023-04-12 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$0dZbX64cg43G9Acsswm84auAO8mSxyoF3cCFKV8mBm2HsNrvBiP49','user','ak_717b9f4a16ff1de7','2023-08-13 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$GVlQz3hv/2lC1hsiKunNS3o3eBLtjNHSyRFV2LMO..ExFQJA4pc4t','user','ak_b796b962315cded4','2023-11-10 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$y.eIIH3Ou52eHnFzKO1C4Dfw/XR2x0dtoWL9IsY9EMomR3RP15G/p','user','ak_44953fb751d883d9','2023-02-23 10:08:00',NULL);

