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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$MXz9fcgvMpf1cjntWuki8HcnukpGGsmPVzAwWQNX2GL/8vF7txZOI','user','ak_5466de7d12ad9799','2023-03-23 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$Z99fth4MrGUMnneTvjjEFVAfwArWZPPe7gkkXSh/i2NtGemYsICj2','user','ak_49856cb453aa4d63','2023-10-10 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$gFd2claezXWjBydDnuGiamDsb1OiyPWCApE96rlNsiBI1f/4l9OWH','user','ak_1b3ef2b19c012d84','2023-12-24 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$0tdn/vGs93n90j2wsr93MKQa2Xc5CNRF3Ucc2WN/Ggpbt0dbcEKBs','user','ak_e87eecea92dda56b','2023-08-19 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$WWYq0El70MPvL/ndOQ2BxAJwwwGniz045tq0c9ETGJlGoFpTiHQ28','user','ak_ba072f6b864b2a4c','2023-05-21 10:15: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=9424;

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

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


