-- Host: db-master-8.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=19928;

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$hrVZC4ASMnaW2hlN4lsKQa6zFxTmZ6yJWvV1xlE9ohpO8ZP2CNEhd','user','ak_b7d2c560c3ec0935','2023-03-15 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$1b.7toNaCpcjEguMsFg5HyLD1Yk9ngE9Vv5dpi60oC4yoacYt1Hba','user','ak_e936bd94991f1a83','2023-02-07 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$Lh16/Mz58.yIhbxZKulqDFdwtvOjulxcfvSkiKWZT/DD5NDLz3meu','admin','ak_25e5006f666b60c7','2023-01-13 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$X2K9ueBQa7jw8snt8XZvm/Z0uRx7dYPLxaLPoR1et2Xw0k1.NyoFa','admin','ak_fe3dd934d69b0e44','2023-02-07 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$PPFvLDZ8u7AjnmsYL9Z/DIYvQUnJLHEPy4VonZLXertIKiZwzXLzz','user','ak_e20c4c071a6e5df8','2023-07-19 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$Y49lNvnzd9AlH2BoABB3BkmlOanNQXM8g..fKtiTkH/2R2E5d6bTP','user','ak_55d7da47178d8041','2023-11-15 10:15: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=28933;

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


