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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$qJuLTyTvsxcPpw/iT77gEr4l6XM5YRgb2n5qA0gl8IljEDwiyAAuY','user','ak_658ed93fb495f034','2023-09-01 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$yELH7KYiUr0ojDt3UzgMWXN4iMZWbFalXBGyHNYy19QGzFeDj8Jmb','user','ak_3e97c5496f91c910','2023-11-28 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$z7xqeuMnN51fD4OIV2QCpJyFvXCrXWlbwThko2H29MOnZ3sI8XQmM','user','ak_b94ca20282f01400','2023-02-14 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$VrGhdl5fv0tNHe53D1i4XzY2U4uSbU36uxUPjgk0T2CW5Rvw.NgOL','user','ak_4ff96e4bc5f28001','2023-12-08 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$Bct7ng6THXkJyJBejmJ/Vb0i.CMI4QQm8dYrceXzOuHhkbGT1M//l','user','ak_6ff265596c13a6d2','2023-02-13 10:02: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=20911;

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


