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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$tV.0btU6R.CrJqC.FecefwNJzjsCciMW49cgG/GgkBwSdjCg94.f8','user','ak_7e61f45c0cfcd790','2023-09-22 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$dE1UBVLAbyw2XBkdT55hJ/x//5NhRCPd5U.VTDnFsL.W2wk0MqrKG','admin','ak_18137c4fe8cf943c','2023-06-08 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$Bu6e7AT48wvWbSEVj7KlxG9T/gAiBakBoGgT4UsB2XGrafXiSHXst','user','ak_83793c3299fea406','2023-10-07 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$Rn3xs4YsLImb17tSjY8XA7dQzje8uMsNE0Kg9iy/XnaQa.PiUDO5M','user','ak_7912e8b15c329fef','2023-02-17 10:01: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=30947;

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


