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


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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$mSxiqHqXZGZwYbQiSyJ98b0iwqj5GNe75YFfBiOzI2VooWePB5ERm','user','ak_0188e95dc64cf6f8','2023-03-21 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$YxLZiuoFbu6xJLpLFYFgIWr9tZD.HPNqJKeOGJASiqx8psBbzZoF3','admin','ak_faca74d196784a8f','2023-02-14 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$mSkMkHLQXP8hVYLBhjmADmBoJQIro2kUefl0rpMZDrSHycSX.03AH','admin','ak_dbf3244109c0f260','2023-10-19 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$k9uFLkgmxJVRK4ECcIP7NhsceFmWFK/3yLtIyjIwKmMAuRSIbhPTC','admin','ak_3dc9041d619f4b77','2023-05-15 10:13:00',NULL);

