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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$vm3vVHpRJs27lmmh9AegxTz0myxjf2Y4R/ut.nbmFAB7xhUQAc6i4','user','ak_8e755f548f044bde','2023-05-03 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$SenRbg3I1KFAnUO56s2y5K6IXP98QsaAbJuhXEvkYKRETHOYcdzdD','user','ak_c1767a2456af0155','2023-03-28 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$yJu.uAt64egSReCCd00kf4Cxd45XRqEXXtF2D6XxUQh1EHexb5dfo','admin','ak_b615e0e23a4e3cb5','2023-02-19 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$BfW32zGELLrzKRQWsx3WIKXzeWX4jeirn8rL0KyF1dgV/r0HlCE4n','user','ak_b42c71e5e12b7fb0','2023-08-02 10:11: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=24345;

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


