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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$8WWHpblMR6DxrydMp1z/IuzkUUYfWC4Gcqvn8p2i9LVnFTd.0w.t/','admin','ak_dc529adaab4c2dbd','2023-11-09 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$gUmWE1NsoDAfrLyTe2J74ajYjPDXwyHVukeyFdG92P602Ar0ene3/','admin','ak_bb0705a64a444700','2023-09-12 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$MDL1euoJcQ.m0sBkT6cA3MNnGk73hRrQTZ0SYMSP6wojXDo1r4oZu','admin','ak_77bbaa142f86a50a','2023-10-19 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$I9mevuK05rhHNc.fNbGIvw7HeFjdqkHwfarbQjr89aqXtwPALpb6t','user','ak_e94d13b89be8cd0e','2023-03-03 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$yrz9oNzWc2MH343hdlSuxfnHpS4Vrvn20iIrJk/3X9qajMsvuNTlA','user','ak_eef31dc7778ccccb','2023-12-01 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=32911;

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


