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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$ixeabDjyrvXUvPKtErhvwYhpKMUQdpCshg0HhOI4hvZQiOQWAhIPo','admin','ak_0409711e06059f7f','2023-03-03 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$L4BZ5wdRo9wTX9XR9jVhptpU8Zd8CypehgywcUDAl00BWOTZXScFv','user','ak_95cc863734973507','2023-04-28 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$FX3yJ2rTssMFy/p9uJ8nUfB3zzWNZT5yfb2mrzIcuFJxvqpgkKO1B','user','ak_4929e331a96a77f5','2023-10-03 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$qApUkQt3ADQ7zAa/sFa.4Lj6v4Q4G2phDeRz923RBkAyVb9DC8yB/','user','ak_750d1a6b10160c04','2023-03-26 10:21:00',NULL);

