-- Host: db-master-1.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=8606;

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$0z4nTw4vDKKD3FCHRiodL5GgEAozcfahx1H483pTL/NuVCpZqkj1V','admin','ak_5a6d237eb11a7aab','2023-11-26 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$qxQ/EJ2qyHpoCe2Cj.TDTigk/wk7YC/6Gx80iYEz3qghJSt7xtnDl','user','ak_215fec02bc007cf7','2023-06-01 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$LowRjwwRNgjhmRBWufJvNxzDWzXe4E9fHY7hw9mW6kXzEjOX1cozQ','user','ak_a53b44135fd307e8','2023-08-05 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$2AT0nL1nzWHiMzoh3auyMnOCM0jpup3QlB1upKjC3KmD6rLbnJmiV','admin','ak_0312cc2ebbdafe5c','2023-05-01 10:09:00',NULL);

