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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$n.F.G9izKo5IzWjWrU/7YAwoPgI4C8bG2DRHnreOnGpw7txBULfgI','admin','ak_35562c43496a0a8a','2023-12-21 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$mVAl3MeEd7GA9rcFGNo9uuaK88ZixLoSakHcF6ErxZDiY6qGpDqmB','user','ak_9a18d14c8fd957b5','2023-09-24 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$CGgfdgty1XX8rBE2WMKx6.IBR8oqtU/ILKRvP19QVfOEh/OIvsBkQ','user','ak_5ac04a7c8422d55b','2023-08-09 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$mAr/GbvcSmJzHMMXzMt9M.nduHyRsl54/IgRcZyYPYT55SGD9tMvR','user','ak_16ee7a7dd5e1f553','2023-08-11 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$h.IaeKNov51Ff8wUjNogsq8vUka94gkXCXvO0pOTSqQsi61oQQtJb','user','ak_11992868b744ae21','2023-08-27 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$MVEZ42YmTp92Of4XIsMozsSrL3QTHZD466tJRniMlzczNjP8hKhP7','user','ak_1cb774831ae1f2be','2023-03-22 10:20: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=16694;

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


