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


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$vM6xkAa7NozcXCGBbg40Xc0EYE7L8mkT6hLl2MrD9xL35YmDhNWso','user','ak_0a94d215b67caf44','2023-12-15 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$5L983dWuXpAhuPZ0u02KBumrgw9Ld2NU.KzKO6o8C/x6qADTpknkn','admin','ak_a07d5ef120f1bb93','2023-11-06 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$lxcUvt1nUaCv8M.upXSMErk2vXRqNkAMK582waoW5zuay8Kxi0a7U','user','ak_f97711e241669812','2023-02-26 10:05: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=10308;

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


