-- Host: db-master-6.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=17954;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$W9ILlS3.n/X5yBFg3lYHUe7zALt5kvklMIIxPXX4BLCCgYSQJyJ3r','user','ak_9ed26e738e9edffa','2023-12-09 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$iumH/vWv4ZkVNfw2OPJZgcDtDq2QpdqEZfI9TBiHqAyXz3zZnIK/.','user','ak_dd820530d6df0296','2023-01-22 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$pGWfnu3hPdffF7rglj1v/REa/W5OeFKFwMpWfUa4NcxstM0IzOc1S','user','ak_a2eb8f1f69a6b5a7','2023-02-24 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$i.rQRaPVNjMYVmAMKlumcsPlI8vf2szviTXZC6e0DPNW6haNoPWH9','user','ak_2b6c1d6086b195d2','2023-04-13 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$uMTZS8ATLH9XU7vDQCHKIqRiyRSTBBS/r/XRvzZ4r/X9lPmNGbY8I','admin','ak_3975b49d1d86c907','2023-05-25 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$GJNQFpPTsmWFTLWIiVU5SxxWpyFcveAfdw0BO.e2b9Ym4w9P6lw9q','user','ak_7af08e476055b120','2023-01-17 10:12: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=24693;

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

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


