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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$ReWsBgAy/ClLTob/Wc8trv5frLnGqssl7je9O8NitxNhByPeL0MJY','user','ak_e0fefab510e18006','2023-02-25 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$F7AOc29PmVszIPAvXz6D0aG5V9UWwJMMYcTD5im1V6NDE0ZdMXPon','user','ak_b971f695de6f8b2f','2023-06-26 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$KCUEBY4bsg8pnR834QoosWu4DciztvDJkIjpCYFFcmGnLn7z0De0h','user','ak_b19675bb369f448b','2023-02-27 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$TD4A6Z1lpOy1TgblYJU6KqLlBzL.O2Xe/213BGzMPWzh086IlbGoB','admin','ak_8d0b9988317a5e60','2023-06-02 10:08:00',NULL);

