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

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


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$r/3OKVE3Hx/MxBR04Ok1hiSExe/1/HU.erq.Q/bxhSUReqevfOP/r','user','ak_0a9f8c46abfbc0b9','2023-11-20 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$mzYMBc6xV7q.BtTcnv4yfLAOnDCafgO7JmefitYiPygRwygDRO0e5','user','ak_1d2fd601f904baa6','2023-04-11 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$M99M09xMe25lVFCSt9a/lt4rxflKwBZxgIJs9etvD40XRM6HhpEOs','admin','ak_d85df913be783428','2023-03-03 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$41QQw5JBMmrj76KwpHvXbohDaBRfBrWk2.NgCDmtO38sLhuRdnCBy','admin','ak_67b661557f595034','2023-03-01 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$TtDOtpLyW7yhHeIgqojY6qTmw64TqZcGSUEIb1e./liw4RvHLwdsd','user','ak_6631efe40e0bb020','2023-02-13 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$uCknJrXsoIfEsFmoRD83ik3yJU9xB3.PzszjX29p9BqFVUan4CNaN','admin','ak_bb81044d8fb94d9e','2023-12-27 10:14:00',NULL);

