-- Host: db-master-7.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$WTjoC.h88E8NoLiE6Fh5aItYwuspZfv8Ky7IjDsWy5oLG1Nq7xN35','user','ak_cbf0bf0095269722','2023-02-22 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$rCQ9lt7mTHyla0.RONGN9tOxW/3JfmTx.MwcHy/XVEx0zMhOYKZmC','user','ak_847d7e94a668a88f','2023-08-23 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$ptSAqbFkYRILRUURf.jh5qnMcMwMXsykd.ATeEbyqV28bFF168VFk','user','ak_f7ac17a8e70e0857','2023-12-26 10:15: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=9001;

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


