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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$ly4W5CDnD9o1mxFJMP7Jk4Dl/paoQ9KOMpAQccSkSe3GHS8ubBDfc','user','ak_b541de8c7fff8644','2023-04-28 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$bAr7CMUWcPzyLhUx/kod4msSWVYQ.xsd5VFS36DowFmuw/QwIxD7f','admin','ak_be66bfccb7c8696f','2023-08-24 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$9hTEl9lXcVWf.k/R47APtQ2CaeStW1qD.LLs7FWUkLgJ9ndYxBnlL','admin','ak_92afd595e69c3766','2023-11-16 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$NgbMlgL50k./CUq5thkLhoDk7sfvGba3DGrK4r/O1aXieoQo7Dk3q','user','ak_c7c3bc9b10c33aa1','2023-06-15 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$o/AeKMyuEN90neTcI7wDeGAgH3XdTz.5bRHopWiuzgIzeC3MD2Lah','user','ak_aa244c37b0f12c3b','2023-02-13 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=19673;

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


