-- Host: db-master-4.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=11644;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=1363;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$VLjIKWV8xwQzbKIH8hbxHBUpxXiKcyR/LsAihvoZpkkKa1qG0.E7g','user','ak_3286b39389e9f758','2023-12-05 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$YQxVNIyEME2FbPjRIotv1.B0zP9r4h79CwJMF8VNVEJlQDrYEC5e1','admin','ak_aa1d173b0a2f0244','2023-06-19 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$JDSLoOl2DoDHjDqgexVLPBH8n8Mz.caPbnjiM30PUJYWDYzUUY/7W','user','ak_cb63adc84c806435','2023-12-07 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$43qTu8xTtBXPXu7I66MGLovl1GDpDSIDCD6DoBR/dVxh5bPNSHKGW','user','ak_90f0142ba5ac4ab9','2023-02-15 10:21:00',NULL);

