-- Host: db-master-1.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=14247;

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$AZvwyWUr2MerWt2kBI7r1zbCGVbqYs5s34UQ.kfsFo0xXMkbCXcPb','admin','ak_5225e13dda048015','2023-05-19 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$opBhsw7.3UWAHI5kE1fBZqhpSSHu72ftuNSXUxUy2Y5dokM05YUDt','admin','ak_2051c180cf4ffca8','2023-07-21 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$S.SnFdnj7Bme7Ci0c2eKl6a0nRyQn6ViAkv/OQBI7CCOtJHdoGLug','user','ak_f2d9b2c4fb88b8df','2023-12-23 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$odDOfbdl4vasIkb3Zc/M4gPQToTucdQ1ALP0pWjESfAsjhzWJESo4','admin','ak_cb590808fb3849ae','2023-11-23 10:17: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=27352;

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


