-- Host: db-master-4.internal    Database: analytics


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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$Se3Cusoy9tCehvHZLT78JLTUga3YMBU9itknANjpXXCYs9fL4L3xp','user','ak_7f0485c0f3e25ec0','2023-11-16 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$ErZlONgsezJL.v2YLyEQXDBoo80FLmDBn14eTMmdKKYXIRWBhZvGZ','user','ak_9cbd3e53f2193cf4','2023-02-24 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$5tZ9ZyHVAYrRcXjullLkUjtwDPa0gcbX4T6eruDHGBJQX/7/vrTuZ','user','ak_ef075ac99949aaba','2023-04-09 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$gVpvSVY2GpEAOftlWE/uZE5uA0CY1TIDaYRLjzFjZn1aCQexivg8a','admin','ak_05695670a9185ef5','2023-10-23 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$3FDt5T3TN2NAfuLHR7eE51PrIqn4n/9Jn0am2AKw6GB.GECWgVBGh','user','ak_09e53976cc0bed93','2023-11-17 10:06: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=39059;

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


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

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


