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

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$EYM1imBIV8EdlMbSfENzsUPwJ8ZWN10WIOPGZPfkmzzghmSNBFzpw','user','ak_99d51929efa32151','2023-02-18 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$MRwFo7wuMl9jhhDBTAa6v6qphpCqCE/iaKPen5pJWFpStNqD7707C','user','ak_037d51fd10eff1a9','2023-04-09 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$Dt//HsMWipUPAQnPo39z5oIeyFA1J8O9uKgN7NGv9K1AufszIW9JX','user','ak_a472725ac8765ef4','2023-04-28 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$CdYQPMJ/OYvuV5u3mrLXUk80/4krhvqPZewWIQXBsp8llsx97.Jxm','user','ak_f24e02eb4f9d6b14','2023-11-26 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$YE3fEanG2jDwsuNW9ug9Ani3gKOOOMoZ18/v5e2AlDnREwpg/lsbI','user','ak_71694ed204583be6','2023-07-28 10:15:00',NULL);

