-- Host: db-master-6.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=15716;

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$7bNpKzuAMI4NoS40FejXiP.YyZ9WPx.UjT25YPCxxKRcbCaMr.8/w','admin','ak_2aae10b9da8b33e9','2023-05-04 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$G0p/0C5uDHiw4rSx7ZvvN3Q9QY776F9RWLGPNX6UJ5TqaDSoX0vzC','admin','ak_a94da79ca3f40da4','2023-12-24 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$lTAmVdbAapsFZP5PV3TE2//2pW.0WjfdKxegz4ZsuMLqP2VV4cnnj','user','ak_0820ca35cda140ab','2023-05-24 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$z//9DROIztPO00CCsL59Htquu8ej.QKEDTy9apGE2zszg38g2tZxg','user','ak_5b0e6adcb80ffc6a','2023-07-02 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$E.A1pS3zHNQ/Bo69Fnb13JSuMYuDVGrScVt4zgHPkNNAbmmZQktup','admin','ak_91efbf8bedb7ded3','2023-02-10 10:23: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=36799;

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


