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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$ZU8ReCnOynj6BIbekw4UxGsBgNJhpn1Bd99uCorFARZiXU8kXUw89','user','ak_46541fe7cf2572f2','2023-08-09 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$BSgZcxWvohV8zGnpDSWNeQM/4FlKJzDTk48Sz6iySHJBlD2F1.2BQ','admin','ak_f88e7981ad04c363','2023-03-06 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$dZ7qFz7lrtXHxVttw.xS0aedb.aWB6iOzfpDZaVO4UcMItQQEa4Gn','user','ak_26694ff18bfefe61','2023-09-23 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$ZEbasTlDHao6o8QDH0oyjt33F/rOh18/UXTmS21BJ7OhHDJDimH7m','user','ak_2c6eeb768aa83a39','2023-10-23 10:21:00',NULL);

