-- Host: db-master-9.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$KP873ziQELi/9cajdKW86e6cLdq33BZRBJIkzuUCZHgC0iec9DyAa','admin','ak_8ce7704256e2f7b1','2023-10-16 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$O0HerGe7uzuiM2RmQzVO9O4shdxv6zz7cvxussNQR/SnFfU6PdWOA','admin','ak_a035f537d8fc3694','2023-06-02 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$aamjy94oLUZJlWYYpzAutQHgnIojLG2lKvoOtj56ivqtlje3TvHWx','user','ak_4239462150f34d89','2023-07-23 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$YKPzDTmDtkFuKuE4Ks15mdOR5TOy8EPOchqLJhQsSxFTkXXGd/xKh','admin','ak_d93a5b019105e621','2023-07-03 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$r710/WSjAj9qO.iXvtXBe/4pKUPIYJf/n6o0esBKjk3rzHgWGwMY6','user','ak_ea40560b40f44304','2023-06-13 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$DuQKnb.sQHEHgHVGGpXKIT.5g8ahZPwX1Gvu9vZ/vMnTYm7okB0MZ','user','ak_4de09039d1b050fe','2023-12-13 10:01:00',NULL);

