-- Host: db-master-4.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=36322;

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$71R8UK8DZosCAyfWdxReIrTiIchT6RikP7byCGEqqvmw07/Z56bpV','user','ak_c8ce4cccd47e70cb','2023-04-08 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$mxhQHX0nixEOHVXtFceS06nDX21wtY2JJHjf4VK908ugAi/FN2sj8','admin','ak_c64969809f5e7b4b','2023-05-08 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$Ly5wqL5i3LmLJ36e/fWCqgEBk/iJhGSA8RS76Cq/MDXXOydJPPGlN','admin','ak_6b412ba0412a294b','2023-08-09 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$MI1Hrtx0ufRrr6u8jeBLpg6XQh0pnT94adWZEBU2ZIg0B.VPwpvAC','user','ak_f706dc665a052367','2023-12-25 10:22: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=14966;

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


