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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$cBoG7ykKcq0bKGrlsZtGfO.lE0OJEFEKGfA444GbGXoN/XJpX.JU3','user','ak_a03f1a607b4c4df5','2023-05-13 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$h0X1..farLpLVejd/7BQ1E790P78tPEPlvKbXfq2APCXtKS8gGIBt','user','ak_0d9ad59036a705ef','2023-05-09 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$sYdP8ziCiDbA3lsFoNdiykhWLmZ6mZcS.upZLRoR3F/175nlg7q8V','user','ak_11cde26bffc745d6','2023-10-26 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$gp643R4aIAnkt0/hPZ3z0hY1kA1qHvPyKHwhfKzi4gayRc9dMsUj8','user','ak_c05e446e93d5e52d','2023-10-20 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$CT0kSH7KeQ21b46P2c.mDiILlOkbtHJvo68MpCxQf6xt5Gw7ac2Iy','user','ak_18db5c8ccbefd7cc','2023-11-11 10:21:00',NULL);

