-- Host: db-master-0.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=38822;

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$D47Y/fJKqGTo4bXM4iNBh4uqf3A.Oa0rW/pwP4mandIp68bxNqFti','admin','ak_8964703e71e22a72','2023-02-26 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$euSBahF5ji8GqLKaquHGmZ8whRzuRA6G3cfRJ22vIVmX.i3f17zzH','admin','ak_d476387e3db7bd7c','2023-05-09 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$hH1fLR3UiYE/xxepkOY07QBE7lBgjAJl6wEvMEO0tyRCsZ72qocqR','admin','ak_e9c39c35170505bc','2023-01-14 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$WoSieR9guF57OehE2W5JSAN6wlyvPdUYpts7eV/hZM2tp.N2ROhvW','user','ak_4ee1603ce52f25b3','2023-01-12 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$6SLK.l.McsbGtLYs4UoY6WThz7XjPx6FTeu2uFaL8kTJhHu/yBsJk','user','ak_4a6e568b610cbac9','2023-12-20 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=14899;

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


