-- Host: db-master-3.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=10525;

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$Xy40wCSNCaa/zDut7Bio0BStZbHq2o/Lr0b6GikPLlrKCdyHbzffI','user','ak_89e73e0d27e5884b','2023-11-11 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$YZ3sW.HR57sue6kUHGFjUUZG8PAQAr2yGKIacUOlp5neT/Ykcck7k','admin','ak_db6b36b273afd54a','2023-08-01 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$ume7WTHWSdmDjJRgmMpf4edvP2Ds74XYRbbgRl4av75u3jOpjqpAn','admin','ak_486ccc4306ef8339','2023-05-27 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$cXp9HZy5m.mVu8NNexBJmzJi/eIbTr3dKjk/F/pf2mCPID9PeI1sQ','user','ak_714c21ad9ec767c0','2023-08-03 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$lG0UkmWKST4L0yzk5bvnTKDYSk6t3DYPq26tZyDe/1fGQZWgOUnjS','user','ak_b660bf4264945591','2023-09-10 10:16:00',NULL);

