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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$DCZmd7nJBoIykPl1.K9OVy57OoV0ij4TgnFb.EDcUd2exZWzAm3ww','user','ak_bcbe3100fb0c8b42','2023-01-06 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$fD5xMjecN.lXclxrzAdikdu3zBB2k9m85IO3RKnqNvL.wYPgEl6Tc','admin','ak_75bd838a4a80083c','2023-10-12 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$fxpGnhHQkYBzffOe/TLAuZRUTKlaq/7STSV/qhgpS5h9HR4BWSogD','admin','ak_992491db191af8c2','2023-05-19 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$QD070IpNh.UXvN43vR/fLgTAAoHFouhP76pYOn8cxstyPBmmOCNaR','user','ak_400fad4e44a5c0f0','2023-07-12 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$SyjilZwuowTmHtdPPStKqsHQnO9KWUuLvoyDCA.PtVxaHwni6A1hh','user','ak_0247a93bff3d158c','2023-07-03 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$fUgjC4Ifw0ISwsn4RpbZlyfJdR97Np9DnUIp3rgEMwKdIjp3OJOTB','user','ak_89a6a395c6348ac2','2023-06-02 10:02:00',NULL);

