-- Host: db-master-0.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$7DFPjg0dOeosFD2vWyqoezKZT/ivmbOoEdO9KLe6DViD4CueN9Bp3','user','ak_83f716b38292485d','2023-02-19 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$C4Ui4PuAjXtOl294BDKHgpvFDduGAPsatUFG.zgZauzInbrkdIoEf','admin','ak_c0220459220bc409','2023-03-15 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$tgGM3YGLwl4lBFw/77ve75snogPIGnzs5QOKE9BO3TL4viZWJR3Rm','admin','ak_c92a0dffd4253215','2023-06-01 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$By9MfUlSwBzkSCLIu03BM7xBqw/xPGWmxgSyMIxpO1y.EVtLsaGUL','user','ak_2716f2bd72950f77','2023-12-21 10:08:00',NULL);

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

--
-- Dumping data for table `sessions`
--


