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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$GJqS9JmM7eZ4Cd.g7eMDz7IAIp3VCVrzjpnwetqJld/maTjxlwSm7','user','ak_1ac3bd01b59c840d','2023-01-23 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$dgIQf903YWxgVUIgy9cd5cYdXy1DTEsBR0/5Vct8cXINCKwWG2I/p','user','ak_ca64555421a4e593','2023-03-10 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$1InNIMMboWcxnVkZs9CJiVUsvmjbuNwTwUXpQpLOnVdPrlmafK/2D','user','ak_7035aa4e63079427','2023-08-02 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$kVgVylc28hjP8r5CfnZfMutChwMozYvy/lFzz34aJfKtBqXv/OhoR','user','ak_a43bec39e56a8aa4','2023-04-16 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$A7FZRcWsN7bcHO1Kvv3p7GzzrvAONGMHhmH3QaJuW1zrzeoIDMlcf','user','ak_5bbf356f52500741','2023-12-19 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$1TFDUccz7SCE.x0GOAk0RYIuJMFdFLlc8zbtVbYIBCLFvtgxhzsMz','admin','ak_5daec60f0543634d','2023-01-26 10:01:00',NULL);

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

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


