-- Host: db-master-1.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=41222;

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$80WowrU1llqaLIG5/nLW/8117ggTNYc.202wTcZjDC5zP7NALSQm8','user','ak_8741898740fe7493','2023-01-11 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$7PwraReoNIlV4ZL314eM9ApQorERrVRU1Cavv0.95tfPDBbvhfC6G','user','ak_6369f975dace3376','2023-11-06 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$cioY5w5uFXnIe/4n7hZUL466H/5OgG7rqtVxWWjaJVeZaDzisAFx8','admin','ak_19378a5e0fc1b507','2023-04-20 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$bIlfUBc6MEDMxjsxN5fxxYPhg1OJ7yVmQENDvZm8t13/TB3bsvmw9','user','ak_4fe826e455abb903','2023-11-22 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$wrojYaTTznXMlcouUMSXtergyvb3XLIdjj1DAV.CgmiJK0hWeUEXT','user','ak_5404bd5725ac0e2a','2023-10-22 10:20:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=42285;

--
-- Dumping data for table `audit_log`
--


