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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$5PUizo2.hgIEza3m8WVOpWZZrohPOwdQ6Ng/lz6ZM4cvpGPwe0ZFt','user','ak_0ca1fdb4b89a5008','2023-12-22 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$.wyt6Aa6MkOtFqKhQacJEzdtql30R3w6dt1Aw8YDvPN3pLwGXgKp5','user','ak_89deb6738a7e5e0b','2023-11-18 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$SqXJA/UfIPgbaB0/n67ilxa6mDl54TPaj77DcStYKAGVLH6t7iM4l','user','ak_4237efb735c9f6bb','2023-02-16 10:16:00',NULL);

