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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$f9IGBy47pngBxV3b5n51ZCed8fT2Lsut/SbR8fneBewVMp/5TTL5O','admin','ak_8b9a08286e17e442','2023-10-05 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$tvwLQR8brLw/Ttdz8DGX361ZOVpsWnvyTzHOjQdDTAwwWNFDsCnBt','admin','ak_521a4880100e44f4','2023-11-21 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$IglV81zDSaXL8N9YmUI0Whic2I9.PoWgZniUFEMtkKtU3p1Dvg7G7','user','ak_f1410184575d2bd9','2023-10-04 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$ZDK0A4eHGs28aZ0TRjy3/FcaQeo86EmmtFe5K8FlzaolKWkbycKEb','admin','ak_a69c7367c570c359','2023-09-06 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$jZr/wMA5L1Q4gs.dWRcnJ4Xg0L5YHapnFPEnVgvO25cd8jLA/OBAl','admin','ak_76f2bfe252f294b4','2023-11-13 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$jnTCvr3ohUhpV5trc010GwfFLMTr36aXAG4KIaOrfhVVmkbfX5N4a','user','ak_a7b4a639bd34d90e','2023-11-15 10:14: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=48513;

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

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


