-- Host: db-master-2.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=1153;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$ZVdIujG4IopPe9hJkGhtsEHoJA/wIqoqNUMKwrenHG0m9i4zAPeC.','user','ak_a3718fe74558ce50','2023-05-09 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$TRPtYYKJSlIMKsdEqVgaotX7R718MzOcMiLkqw1v1kwrYjnqNFq/N','user','ak_0c88e470b6404647','2023-10-25 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$d8wFIB8f/.Saz1AYvLXEFHexuXR5laHxqjtwerEU2OnhSAwFL5Pd3','admin','ak_3f2e3647da672730','2023-07-18 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$JyRw/pbjwOO2rpOF6.X8Xbf4DOvRNDfy45jqURFR4kHfOIVzi0YKo','admin','ak_34621a87b0955f19','2023-07-21 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$1eY4Y8Gdby2y0L36VAvKWi62uN6ZfBxw7pIDpW77rj2iPywO.kBe5','user','ak_f6c3ef76e1561c89','2023-07-06 10:09:00',NULL);

