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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$GueFyJHLvb5Fzf0X4702T48RR.8bpaLgES4g/BoqRTyxRwRM0hRrP','user','ak_4d71eae6b80b3f35','2023-12-15 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$Q5pB3bsuczWhXLfmAVzacECMiQJ/33.dAMhyqdF2D8fssPHg8aUXe','user','ak_b396bbeba1e5c0fc','2023-06-05 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$y2yJLS39Scojylku7UEtDRKtpsIZF5KJt42FaYHolUKrUAUSXqoAx','user','ak_f6b426900f5ecfef','2023-10-09 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$usZUY4vHQEfSpAEjCobG01w7GSvd9TbS/lZIdoxFfKLFSZY3kQTv6','user','ak_053a6765ece284e7','2023-01-22 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$wr6faBqJLPEGYk2jtP03nagIdcP4.HC3jtNCXKGo1ueWD0uXM3sQU','admin','ak_cd41a99f1dcc1203','2023-02-04 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$nwo3EzmVOVzrfO2EhEGxUR0J1EV5/Tx8RCM0MV/eABfRceUqQtmoP','user','ak_696e675f976887c7','2023-11-05 10:02:00',NULL);

