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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$aK59GjvSq68phNEXio/kl6YwZ4UiNRTmfYisxLmKz.bqEwe4E/AKt','user','ak_414f9ae2eddce9bd','2023-05-25 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$nYeA25ghTi53Yp.500fb7oM9zsOO8SD/rXI4NbNc74V4p0AtqnHGM','user','ak_d40dc7b162ad53f0','2023-10-06 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$zw348yReOMDYZVo9emXxcbdZSr2NUqanEv13DMiemGGBb1KuQpvPR','user','ak_2093623cb4af69d9','2023-08-12 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$Wi6gGwtTDGyCfEwX.OMgtQi1bJCAY0esbsx.umCAdqOwCzSTQkVsg','user','ak_79afdadfe078713f','2023-10-09 10:20:00',NULL);

