-- Host: db-master-3.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=49088;

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$tDZaxo4hldgPr/O42dsbZnkrjpPiHCenJ67zzTAwkNe2rXWpLsBhY','user','ak_d035f165e8a1f759','2023-10-05 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$Bk7dLymbqxUKJmWSmsDbpiL5kRWKJAfT4p3F064xc8K5A.z23F25e','admin','ak_05c7560842312449','2023-08-16 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$9UZZ7CZc72M9J/ieITlzTMziMAR/J.sXT.3HFGMfjTmJoiJsqG3ZK','user','ak_0cd920fe01566aed','2023-11-09 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$FYEx7C6dnfxnx1M9obeShfE9hVOoOCbx46lyRJxQ0ZFdphyU7FWrO','user','ak_0384f55555a6ea95','2023-08-14 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$VXVcXei9mhOXCZ2oi/r54pH0AVm8syEAA1RL7ucNjRE7CfEJnbhcB','admin','ak_102a0cd8f0728853','2023-12-11 10:20:00',NULL);

