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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$VmSzo/hkCSkHQ.X6xEVxuWYYAE2.hZlY3a2C9/rJ7MzodwXEn9HlU','admin','ak_b0ce0ac7e4b6fd30','2023-06-04 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$GGOdpvWHr4ivmFDHA5ypr/viLDKzKqwmeWZd5JjI3inDTFqOvrocM','user','ak_2e4b99dbbbe2307e','2023-10-20 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$xA6.gdICYP6BpjR4wr7VkVtzjewJnQqVr5Rpfu.8LSKo81.QwonyA','user','ak_3f33a0e4fb42e56f','2023-04-01 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$WqVu7A6cDVAMvrtNd4FxKRoulYzJt1mUJ3QH1WNFLlHdFGaZfZI5W','admin','ak_f42752993280fab9','2023-05-07 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$.n8juXtQmDmNmUd9UhtTI6T5Ki.5l36E495r/LJR1NPZehWEeMRjX','user','ak_b3a05039775d7c9d','2023-01-24 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$Op2SmMATXvwkChUD.X7SA/x9mQUaJwO.TGFe0xUsqwAbKIBltVftX','admin','ak_9dd80c03f7696493','2023-09-21 10:13: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=12583;

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


