-- Host: db-master-1.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=50356;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$pMuN.o1CHOqpzZt4w3Y5DFKWUXGrolIotKf40YWZE4ejxBgGGRuXG','user','ak_0480f8b442ed3d4e','2023-02-03 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$7HR7JLiKR7PC6D.3fStXoqG9vkjIqGZRzyGCMe.2UJ06.s5N1CvXh','admin','ak_0d9d8af05385145c','2023-12-28 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$RcEk7ovBfii14Vsp3UYlEmjHlTUjbDQz8VfPVDmdrf1YGrKhjPoxi','admin','ak_14a494f7554b2b5f','2023-08-14 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$.TjSconwxwpablsmxf7fGSIcSsIrfYFeBTEfDmAL0/P/NHf5b8phV','admin','ak_c6cea608436579ee','2023-09-25 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$GZusPofu5jg44mXoUek9DXTtaLmD0msnBNjprPHKAwrvFUZfUWMbJ','user','ak_f0c3e29195f6ccd6','2023-08-23 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$NWR4WcwTrITJ0JmP6sc8VImcfoxpKemgED1TSWGRDvIP5gluN6P1w','user','ak_642b96494bd47cb1','2023-06-25 10:08: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=10970;

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


