-- Host: db-master-2.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=29224;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$zdV5gRDpQnbFsXarE1SPjnfamw6JeHMSqIQ7zlQJGHKmksfFtJ9Ki','user','ak_c0434b14b273ff10','2023-05-27 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$MJ7mwUZkFUp5F4Cd/CKBn7OZXB637MrAraUf29Se3wFB4Hwj0.Wco','admin','ak_ac8bcb28a7fb32cf','2023-03-19 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$3mnIl6x3e9pswUn4iMNtGDDH3VYK/6LXFLiqWvCSVzYirTAkpvVla','user','ak_376b8b983fb3253a','2023-03-09 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$P.QnTllc46VXzZaBgpOInFYtpLkxSFEAd2Iq4iOGKG9Ewa17sBg1m','user','ak_53db0d6716037661','2023-03-12 10:05:00',NULL);

