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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$.CH4LavWTcrCBeGWSSo2H8z59HDCjwkRhFMIP39HX0XWrij5QLD5q','user','ak_8efcc1a9e25ffc8a','2023-11-28 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$2UqESQuaSB3dmrvxUbnWvscPPX7TyzSIwBhAm6.VybgBtqCe.aR2S','admin','ak_e608529a601ae8a4','2023-03-20 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$kmVMfFB.pKu0GepPXRxlFCqn7XY0pE01a1izVG7P2hAxXXRKIZ6FA','admin','ak_f2c31a1bb06da33b','2023-02-16 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$pn6slvYHSCOnF3gPYhHwplTZvMpVCEEKjMcNdOpGaLLp1ulaZLbig','admin','ak_10b3d1ab04e9b8af','2023-03-23 10:11: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=11992;

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


