-- Host: db-master-5.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=18375;

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$By1Z6FcSH9J1h/0L4DWq3nASgSsUUbcxeIY3wYSwjs6qEPyUy7x5V','user','ak_3e484685be882387','2023-10-10 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$Yw6Zg5BMxKB3e7uFseQKVRHwVTBe5mpKKK66/ZsJT6//JzJILDn3f','admin','ak_40925f4424ae1809','2023-06-18 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$langjC1j4w4SV4mV/Suk4lG2CQN4YmLcd3D3fiWyZT3RjmRHhH0Jr','user','ak_d328148cd3b77089','2023-06-27 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$MTrWUqzjyV8Yo3BQY1xaMFjogEPrXxC33tuSarCC7uzUso2yq7CKr','user','ak_ead18b654efa7f18','2023-05-02 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$5yjz7SeGZRJJ8RWt43iqw4zEv9pqyJ/PVy5ZbakHOSjWxiwlQ4hRD','admin','ak_dec09caf331de7e2','2023-04-20 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$4slmxyzu5pOpjbf4Wbwh881FT9n865XzBfjvYDoqC8ebJ1gVER1vR','user','ak_e1ef0754c016b67b','2023-03-22 10:07:00',NULL);

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

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

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


