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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$vWDlaGJBhPSKlLoRqRQzNECC4DXfgfzpA6RWce2EmLDgN5W3qdyrC','admin','ak_bf938173a95da4f1','2023-11-26 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$ttlNdWOov6dLylis7Ha9kYcIaZBExJsXiUI4C2VUz8jVk9Dn53xD0','user','ak_b151f8ee6590bc88','2023-07-18 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$ehXV4u093UXpBGmhUFGLbMNMI94xWDbI6rZzehpD89gC7V0gxMQFa','user','ak_0008d35472cf104f','2023-08-22 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$Ds0pe9xiIo7ExQndx74cKNtqo88hPWMSviBEb2JvS7lOcGG2FbABx','user','ak_274766e20b1c254d','2023-12-15 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$VU6c7yU.1uUKZeBlJOillCKt2glXWwQZit/hDoKTgIRBj5yZlM5LV','user','ak_cfc2bd4e644fc37a','2023-06-08 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$GNRleSFekzrqGarZbdyb8MWfC12XcR6v2vXcGIJ/.BrmJcFbFG3bt','user','ak_ed88d5929ff0fa55','2023-10-08 10:04:00',NULL);

