-- Host: db-master-4.internal    Database: analytics


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$yzV27RDZLsHY9bTJDWB/gSFQJiHbKRVr3JaCrXjUI32ZjcGF7Zn/i','admin','ak_c4e5117965a0ee71','2023-01-03 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$ulbko0B/VqqvkSNFmWaRWCVGzaWX1LUNQQb0mKCx/YhocbUzziGBd','user','ak_bd3b6c088d42de07','2023-08-08 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$QXqys34ZNc5EnTLOpNsMzjBMsFOD6LlMjm6vECFAsx16fRsdy5IpW','user','ak_60db0ea278b1cb3e','2023-08-15 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$Eb8DHrv79BO1P8LmoFRYp7Pi13ZTHXlmr1C4gkiXPBst.rcbq8lqe','admin','ak_a54fc1f1265f6bec','2023-03-15 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$QHTyzlfPQJWMV/JLFO5D8Nf3KWd36zGcXFIVGjiyQCUNKhesa0523','user','ak_62f5c94e528b8edf','2023-08-28 10:04: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=37466;

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


