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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$W.aSVkl3XQKGFxpzaqB9tqrmeCaEWXXuYuwPJFLJ8Ybltof3czbYz','user','ak_7ab9af48817a5ff0','2023-04-10 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$XIP1HVOkBDQ8jwo4siT7U4forVeqm0j2FUIB2KvtuT8UpiobAvbJT','user','ak_695e67643bcfc4b1','2023-09-15 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$9vT8CLq4Y.sg8gEg8okTAdEYRaircMfCeuqhz5iBOUChU3Ow.7TA9','user','ak_dcafc202d9817c38','2023-08-22 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$Ed.xtBvl0r6huocXz/T3shll3YFhovJEP.0lrBFCXQ2f/zjBQuSNy','user','ak_0e6138c01ec149a1','2023-08-16 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$iW4iDjYVsQLVDxiARHgoyIrSBN5EkV9bMry46L.UmlskxJ4Pee96.','user','ak_2ab2b44f0db4418f','2023-02-07 10:23:00',NULL);

