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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$Wd8WlalkEWwnyaPeYXsc2ZO4tFvdYPJhovXLRxHzb0k6ZARafGS7F','admin','ak_6b40670138e6e36e','2023-01-21 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$/Jd2W.Td3mi/kGGna7SsNkViRvDeEShr3q4.uy3y8b2BGmIGuj8mg','admin','ak_23c3ae71d92026b7','2023-06-10 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$kZ5DnqSghKFJg8h4ogYuuy5h5jqkrQVxXCI9zKjAMh7RulPRuWiEw','admin','ak_005b1b4d35f05c0e','2023-03-17 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$gcwKQh8FrkOY9IbcpsQzoAUyC9pMwef//HTmssJsbwFq/KVqK3k.J','admin','ak_6e37ea59f4aa2acd','2023-06-19 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$gqUBx8CIFlkw8fp1wP38Zabnw4Gx8oxGnkMWp7Z7aHfJPFtm9OGGT','user','ak_2c73ed39b6d00e94','2023-04-02 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$OWHqjQa.QGxDvs96cltK90ZXLW8Jm2vIu75wHFdSx5wrocRYfZXzD','user','ak_cdcefe9862804f4a','2023-10-23 10:04:00',NULL);
INSERT INTO `users` VALUES (7,'root@company.com','$2b$12$jH7XZwGVxkTn41s2A9VPg4WibWTvPKze4D8S2Ty8FuIKz7nhnPJNE','user','ak_e6a67f3c7031dd14','2023-06-28 10:17:00',NULL);

--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=48013;

--
-- Dumping data for table `payments`
--


