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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$ZnypVJ1jvsExWiLbltMRoqFvdMhHTld1T0.RavWtPY.VYUCzo9lA4','user','ak_420aeeff4a1979c9','2023-11-20 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$eRjBsOFGF3L/QLarSjG9yNC/8I9wHK9H/VgKguGvmAgyJuHU4x0ly','user','ak_734828108d4f72ba','2023-04-24 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$YIYrMJFBhIYXlNw1c6u4yAtHgIUTIrAYxApToVo7i5Ancxf2Wgppd','user','ak_6f090ab80d9a142a','2023-08-27 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$VbwYtQ3yaQWHsm.Iwa2rMqkjBdIvex9RUP55E0B1cqOdZucGAFvi8','user','ak_6bc0ec6a9a7d25c6','2023-08-13 10:07: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=38398;

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


