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


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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$F4xrRwNas.drU3pBISnqUgGnPve4NfK5nDa3jPYQpW6MMH/tGnD0P','user','ak_5910df195bc0ed96','2023-08-01 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$cuK0y9Zn9aU/9J2PDxRqP8hyGkCyTy7Jt6hLlmOm7Q2pIXu1XBuEw','user','ak_04452f52f13528a6','2023-10-18 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$pYJY0IbnW0qjwIPZh3mTt/tdaT5KZQYyubqbr2cKZs6qHi.QAl6iy','user','ak_b1404bc7e3ccd315','2023-02-28 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$SW/eaIgQUpNIq1ZAfAHJ3/kTfKQhFvt2a1KuT.vSTHuM10YJ17Sk3','user','ak_2409cbd00a928721','2023-10-08 10:04:00',NULL);

