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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$kl5CXB8fMcOhLl2T50Vh7mDrJCoVWuyuu/NbEB0SLdlG5zHqlFfTf','admin','ak_f46f6bfd8ae13856','2023-09-06 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$FY/NK8yYpxIQ0Q5rH1ji3VKb3MCz08Ej.rnXMIrO7OZVc0kiAWmsN','user','ak_4ba6d747ba841ae8','2023-01-25 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$XzOeqp38HodGc4HZryt0tcr/4K6GjjENgtXh7M87WaKx37wElBOwe','user','ak_ddd3150319f0b51a','2023-09-12 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$as4nozp8vBSRkqh3lQ0Ow8fTBIs7m81swiaWE/LgvpK1HTXSNcaLi','admin','ak_2cad3b021915beb1','2023-08-09 10:01:00',NULL);

