-- Host: db-master-3.internal    Database: analytics


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

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

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


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$lBTWvsRuQLXl0SgSGDmCGaU1koQ0nmWe5Wqrvt2n.xOMTLKJuXeUx','admin','ak_e82ab3ea28efbd11','2023-03-09 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$FtXLzXmjgL1PcRqNb4PusPFkkHN6iQu.Yu.4zgKnhOEVLx3l.dNed','user','ak_617eea28caf70d84','2023-02-13 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$GCdxGnKxNU2cZ7kO0EeDIBwjGPDA2wTev6K1O6NNgfk297DGCqI.S','admin','ak_61dae7cdcf7f22a1','2023-08-23 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$jqG5.DNqi.g8N3Iezhu9tECE30veE9js/od7H5CIRPDZbuBXa9r/.','user','ak_a2070573b741effd','2023-07-06 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$82BYRSnMU0fMIMQrKv.zs0AeC5bJwRNQx79.hTCq3Bgap/QAc4Y2G','user','ak_e95553c4bb225ead','2023-08-26 10:12:00',NULL);

