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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$eWzYiVbYCbqtBpoDSOFRghc5E/gmUN.OXR5zG3xZBRKrwukIbF67I','user','ak_40ee855bfd2a6cdd','2023-11-22 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$Rrl6wJAe31YXJPkp.7kjSjoSY1jwW.vN5Cl.erCyaNP/cIDl1bNla','admin','ak_989c211a7ae1f425','2023-01-25 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$M7EvBGDDvTMUOVJolajyI//0TwZ1l6tpVSGx2DhpHnIkBbcWRv0sb','admin','ak_0b32f66456a9139f','2023-08-26 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$UltCkqH.kLSZUZ3sbfV5Zbx5OlIBMVfLPfW9TFqLMR1zq7N/OwE6W','user','ak_37e9878f22bfcedb','2023-02-17 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$L0W7c2ARUrPBETEZkj1LGSqlwmOH1oVz9eEcB16./Xg9pH1YjIWO/','user','ak_cb9ffd05d0d38c79','2023-01-11 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$7ZrOJYr6gPEsfFU7cWtEYgfZleL3hV0T00fjaoszFMxTDMSTEKuIl','admin','ak_3f8fb7bd74782f9c','2023-11-12 10:16:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@example.org','$2b$12$UKNzhdh/lnex0bbIoa2ggVvLxPcBjFVETp7.7wjMA.O.3QjswYNve','user','ak_72c9a0ad0de306ae','2023-05-18 10:13:00',NULL);

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

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


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

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


