-- Host: db-master-9.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=19183;

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$JxJ4qb5Iixz5uqo.FRJanE7C3ESvTXtR5Q5ncJw43zgm/Bgimuzsp','admin','ak_e3ace9c218070338','2023-11-09 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$EFq3zpGzlefhf2gcJVTqGkfi8RdWNuTymKa/BFMd4zWmRuYeUFFaG','admin','ak_fa56e464f4a56902','2023-12-22 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$0HhtKN9ZR6KS5eSbiD/DNThHjPKRtzQXHDkTtQc3TK2FOkZZCjfKt','user','ak_e77d658d85cc4d71','2023-02-08 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$HYmlwsCH54MuQ0hi4.ZhJ.L/AFcbN9f0PHtuD1EugrmrcDZ8SdlB.','user','ak_6600843259c4b51b','2023-08-19 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$Xt2jO5PBuEYDez4QsS//egAus2ZaQaF92zzeV7v5r6/JqgBNC.L7p','user','ak_4d48741b9c80bd97','2023-04-08 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$TfNFEp20m63KPBe7Hv3HaOmzJ3YYQF1bO7N3XYpS9I7861N8QVd.C','admin','ak_8f4465db6bf1aa7a','2023-10-08 10:10: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=45199;

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


