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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$CFhJi.48syXMYrbUCY3UJy1FD.7g0IIRoka4TtNDFz5mHA6qwrG4w','user','ak_1a19ac0b5411894d','2023-11-08 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$Ol1y6F/0BkMQ3KFWs9fkkuq9sye.96mMIryRYbSxuFKW/svTEn5fu','user','ak_93c7d4142bcbe7df','2023-10-19 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$CB8x9K/0cXzIeqahC37UfFGNicaiFGxoZ3d1Z.BAIIcZ.0VvOh2kk','user','ak_7765a1a0fa71ab07','2023-08-28 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$47ZIjlzqF/aWAqe5TZae.AqHZGIOYfU9TvaAkFZHZbUL3MEdXY403','user','ak_cc364489920335de','2023-01-11 10:23: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=46529;

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


