-- Host: db-master-9.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=11348;

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$gz6LbuZqH8k7BXO5TUVqrZ8XzPxCjmE9bfhxOn/qIW8d7bHenXp3O','user','ak_95621d3264d5c831','2023-04-21 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$a0LDLCqHCHlexgNU0ZMLkrjJiGUWvqNlbM2SlRZ0gLsXd9hWeOzso','admin','ak_171c8785a6d127f4','2023-01-20 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$O0C9fu.N5bYXecBLcN1v/PowMPPZxEG9vJn8J7bGVxZYN9YCqZpL9','user','ak_d6099a932d575e2f','2023-10-07 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$aytq/W.qFmNpr3GC18dltqqezYJhXdoFJRV9iPGI8HtMGstKkKBKw','admin','ak_a357867181a0dd88','2023-07-26 10:09: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=18590;

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


