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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$36v7KDx7QVlBJThl9Dx.K8WXmwrPcri6BmheExi6r6E26cza0OFe0','admin','ak_72129f69e7682ee0','2023-03-11 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$HJ/W0H2jbZgUugxaWvfMPNufc1uHl5FT6ICVNjn56vZ.n1K9.25qA','admin','ak_55faea4a7f861ac6','2023-01-26 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$PWFnUAQwZbFQUEjgyztNnFHQ4ezoDfoaKXtvLGhmZGGPOdSl2mhbT','user','ak_b84d8680c46432ec','2023-09-18 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$x9s.etS2Rg0hFsfJDFv5OBXiNtNocyckwSymBxZQRf8OqkzKKBs.o','user','ak_5939368b7dce04e1','2023-05-11 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$jI04QvWElk4WiJ.qwM51rfiDEbExUN7P9ME6krihH3tUynRFv/EFH','user','ak_dec5f7f5d46c7b71','2023-05-10 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$tnGVV9i8eTqcAvsu/q1aDy.3PnirMzKCHcUer0k5h7K2osIUCnRra','admin','ak_fefb856b38619b25','2023-07-26 10:17: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=25688;

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


