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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=46002;

--
-- Dumping data for table `products`
--


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$DZKTt/HjMb56ACbfYw1YOmYKCVz1pQNR1Qz8i67EIwIqL9p/ZyHt.','user','ak_f91525b5b68d3a37','2023-12-27 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$d5VW4d2fYMXu46lhNCKwKuGIqb39pJvM0AupZ/3XZetlX9ICmaNv2','user','ak_8d2fcf39ff005069','2023-08-07 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$LcSdEsyOtkdR.33czn1b0fVUOS82Jmao37eOxzHmwuABLiRQFVQlZ','user','ak_d5e0f969fee274e9','2023-12-20 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$Tc9PwVlALbozkKLTCBpLTXY.Ge/0XMoAAH22AoC5ogq/yYBRB7DzO','user','ak_4933a0a484a2fed4','2023-01-14 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$IYNI2Fn8fIdwfFziyTGzAPJVMZM2.s5/RUfW7dvtr7QwU7sEQcbVo','admin','ak_6b3486ac9ceda317','2023-10-22 10:03:00',NULL);

