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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$/gyYX9Ct7A/q.3MJLi0EsB8cC/IidWS./twse.JxKnfXJkpqCABsd','user','ak_f9765d25cbd101f7','2023-06-21 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$5UiC6vNzCouidfG3.n54fcp0E2EnvzlijXK9OXbFiT2Wrp.u8sXkB','admin','ak_0c5505c722b5e18d','2023-01-16 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$BQ.//BRR3UtWreaNQDFviMZbf9GmMzD2.NG1p9r6RuhWp6QHS5etj','user','ak_55f94a98cffffb3a','2023-02-18 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$8DCHZDQAWCJ5sPfH1pjKNQ8.6jVmiLGfyZ3knKb95QuLYnp0.60hU','admin','ak_18ec5607bff270e9','2023-01-23 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$mn83BFGpxpJTEyCNCqmGA4JKSQxl8aUmnkkErGvI52GWmeo9SWQFx','user','ak_eeca2cbe4baa0846','2023-04-13 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=40810;

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


