-- Host: db-master-5.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=10228;

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$sV8jMiZXl/LGDtAZmvJqUIHlT1E.X6MrhdtQw7QztdjCEEZ.dLtjt','user','ak_7d606a9bea183baa','2023-09-18 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$VH2jTh7qjNJ4TdvsBh60bPWiJyxDCc2DwF7BrlknZIXjpvJMkyk3k','user','ak_f964840c0bf21387','2023-06-01 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$BAaXbQonCA3/ujNblQkKaSHlsGILJUTgM9E1OlreIDL8AIXT/kSv7','admin','ak_f5ab22b1836b998e','2023-11-28 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$ylJCpLwwA.yxVoThHGp11G7AHr4/JFwgDsk.o5uzlnhHxDbZBSRxC','admin','ak_f9af6aaff4ec8d9b','2023-08-09 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$Mt8l.HN61ExkNjXriHg4cnpIlaGouhv/tcnzfb7MsrXFRr5UUg.cg','user','ak_1ffb6207aa6a32d9','2023-09-06 10:18: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=42387;

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


