-- Host: db-master-0.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$cWMgkOqZ1NniED2t3q8EId/UruEvD7u4eJ1z5GtqRWatU2r7BZ0be','user','ak_bac5425c7cd1d6b4','2023-04-20 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$0HJsKXxY6i6riHPd1NL2JXkWqaqw1b7LwUW3SE7UfHLlkJZaEIJ/n','admin','ak_71c2c458ea1657d9','2023-08-10 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$c3OWzS2FuBa1sccEKnPGnkiaRD64PtVyVou6FvAr/zd7WfWNChDoR','user','ak_764833da7b1f7638','2023-12-02 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$OzfuqroIrcqHphRl3Etd377oP37dy1VsfKgfwRcDEk4OjgmOPAwAI','admin','ak_4e87707883c13059','2023-01-14 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$Diq47MkkgV9cvK2AB8MsUvH5C3u8GE1uNu5ZIooPYN2GS2IyaB7W.','user','ak_e3010ed697030b0e','2023-05-02 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$OqS3uZI5eHOi4a8y4N2S20MoDnsttBX8Lh.yMl6Ax9B1aJPTv2Yoj','user','ak_4976be2c2e7d1872','2023-08-07 10:16:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@company.com','$2b$12$Ts81z.5gfOyF6/8xiydXOmW5LXqBtrM6djx4qipWY5WYDmCVFZrw/','user','ak_b9e645e2350529d7','2023-03-01 10:05: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=24556;

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


