-- Host: db-master-5.internal    Database: analytics


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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$6nO5jBSW8kz5ohRwy640DWPBPh9g6LnHkF2.6oQWS.FEa91ks33uR','user','ak_3e4c219c47b2664b','2023-12-18 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$891WSBcXs9vss1fRNXAOpuOFWLZPfGYKuB3WkdlXgZt5sP/OtL4zJ','user','ak_237409873b16cd4c','2023-03-12 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$pu.YihELxE.4c9zoOUxFRZK3pKoJ4NWBx.DjGp7OwcmOXFqHIwAuW','admin','ak_cfe0da2d7adea7bf','2023-04-27 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$n7DVlTjyBAFkeIdGTWPpSqZPgMW.nU6qGQKi/FxEj20wQRFlcjFnZ','user','ak_579f5fa6e082a5bb','2023-07-20 10:20:00',NULL);

