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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$Ej5JjG5I7MBTroHwd/hiYkS8Edc4Kd/AC71Ror73jieoqtl0tMC21','user','ak_db4635300adc74e7','2023-07-28 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$ukKqTNoZN45OcWS59aRcDS5K1itxEOLjgtjTIETiR5/8le.dScgDz','user','ak_9b01a56ba65ae921','2023-01-20 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$6TaJurGqc9REnOk8/hbAbLDwrsAXA0oUbsDJ.pSpPW9weGJaB8.LS','admin','ak_b9203564b20fe2ac','2023-11-20 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$HB9Jrb2.GchaHgbGLfgAwhnZC/nfbrZh2MMWzoa4L7QjMPtgQ9Enr','user','ak_3dee6ef17b23c160','2023-03-27 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$lO/ohKPPB/3kGyBH1oNM4/nRBL44br.VZtbHG0nj6/bzQtO2t174D','user','ak_5734d012ad45c110','2023-05-28 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=32792;

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

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


