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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$mke2Gq9HW0KRzZRYsw7VXa8IVdbxl9JXv9B8di7ItxNmWSQc4rAgd','user','ak_a5ecceb7786aeb99','2023-08-23 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$LVC/iIe4OASOcgzCYFcNMd7kVcuL5UsQ0BoJJqgzb7PtB4EiWC8nX','user','ak_b145f1513ee2c52e','2023-10-22 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$OjgXib0tU7Yzk3Xn.8GiBvmSZVvtwC1FqJ/fNbdDq0Al4yTKwqG0h','user','ak_41e09d58e7d03bb2','2023-03-24 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$eiifRoXbGBFhgv2L16qYQg3N8GpjkxngEnt.XP/1XATSLxX12I5Gt','user','ak_0cca64114832a9a7','2023-04-04 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=35821;

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


