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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$dZBQ80IyaZUlGIqvBNIPQk2UNKnqD0u65nAkpVjJNGor0VZ2g0YGE','user','ak_7b2d6b80b2963a5d','2023-08-15 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$SRhQYxAdusYgXjA6ecCk61FdF/wuRQa2gsDMTQVVKtudWed7a/fT2','user','ak_110324e730cbd1ec','2023-04-07 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$wU.YK3QvmspEpBygyj4RpMpWGRlPP1aCEcLSX1iv.JiKVw2rHA9ip','user','ak_b699c4cc198b70b8','2023-10-23 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$OuJuFzak14e5yfIy/iS3SppbS0sbMreX6ShISvnU41My3ClttDF0a','admin','ak_8f38edab40733bb5','2023-12-26 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$roDhhZunko1Y6JXDMB77AsUrQ7rKJPpyvYLOhVfNIxycJ/s1OywSP','user','ak_8238ededa281f478','2023-02-24 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$fYsESzOU9u/2VpuVo3rAX0fCg7Rz06gyd81hog4dgM1WxpLJf.1eX','user','ak_d7cdf05650aa3edd','2023-04-08 10:00:00',NULL);

