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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$yzhAAJO6IQUA8BF1UhG3BLgSfUi/2BAf4QM2vgwQ5hsmqXJXZKVk/','user','ak_cee73c42ad79d8d1','2023-08-09 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$kvVzOg5jZ0zvWAJz7uw2Khzdd85qCbonEGPKgPDMZ89RqyEb9XPZN','user','ak_924cbff168ee735e','2023-06-12 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$IxVD8cQfmLLRGMXVHKDVuBmJEumBDskUMLZYS42eWk6JnLxZiUVa8','user','ak_328f54c71a7baf39','2023-01-18 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$mBsd5v8Ibjd8AgzCOz.Mcnr3AnNTqkOl0DiS5G6sVYr61J2gYNq1P','admin','ak_ef497b5d35c5a8c8','2023-04-03 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$wCcLjxqrASC2rpk8i5wvvdYRMTjFGLqwm7CLwmLzMqks2YuieTJRi','user','ak_824b41b73d6b72ef','2023-03-18 10:04: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=50505;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=18287;

--
-- Dumping data for table `sessions`
--


