-- Host: db-master-9.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=31187;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$5/H7fcaKkxTgcXXe74wLTFV9CBBgQGhxjbquDripc4bg.5MDOIKx/','user','ak_2a1b180f57337608','2023-11-16 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$gPpuy4.Jtl1pL2yzZrIfxdOE3Nb2wNgLBRbTDS9NZFM9v/3UV1u1t','user','ak_030f7861f97cad49','2023-05-09 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$IoeM9M2EZAn7Wzfm3t02S6lMI4Vl7J4ND2ih0NSOlm0AF4727s6gq','admin','ak_dbea5de26ab0331a','2023-03-19 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$RC8GaofSSJlQQMlh1Jb5DAhvc7V4GCkcKNHNPpYYS/DBlFVPwExof','user','ak_470525d60c51f119','2023-10-23 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$8qTtYWvCiOhXK24y92HIs92ITHbBpTLv/Ykix4Ihs2dpCiDP2wNa2','admin','ak_4ecff719cd755e09','2023-06-22 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$FrgSkTEEAX28/l4wvjx/uP4gmNMDXCxUBFOviVUmJ6Oleu/4/6FdM','user','ak_fbc30bef73c79728','2023-03-16 10:15:00',NULL);

