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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$lfXMnJ8LTd9D40kFf7foS8Fd6WgeS5wvHTkAJbyQukUV9eGcGLp9q','user','ak_b8a0dfe953fdc6a4','2023-07-10 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$qL8t1/MwLiMXBqXiSWHhvb/s6W/mL59lfcweH/pMqIqkYzkciVBbg','user','ak_cf5d4001690e8d1c','2023-03-18 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$qklyoFxl15kYedR34dWzLnK6PSIcyJfNSjE3kGKocayx4bIITyedj','user','ak_7ee2a03b39c1beb0','2023-04-18 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$fzAf4uFwKA/DLm7YgTwGCKzSucqmpVVrmlz5Z4sko6jEvPMn2n08h','admin','ak_e935117e154ebdb5','2023-02-17 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$1NT/lY4k2NdQKjXpXzaxQkhce.4oKZHggKQKrRxMwuRafXFI3l/aF','user','ak_edba639d486ab73f','2023-07-18 10:08:00',NULL);

