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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$WjNs37/IwGuit10Rjq7P/NO/csqt1r84qJuYO1yGZ1XX/6I5Y/7Fi','user','ak_38386f64453daf87','2023-06-11 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$ohkMmDC2yj8Xlf5tZs5y2V3B8okXSMQdPpYh0y1zA2/oNPTPC3M8J','user','ak_6e2576e9bee73938','2023-02-22 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$CSPh9bdymlNUChZU/1msbuZPMPqS59r5MOcNESTQylHxuNioX0fQQ','user','ak_6fcd602a7e4f28c9','2023-10-02 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$fUw1RsJEhpw7XXEXDdt.Xc6NE15Tkp3fvgz0AP4T6dgWAM5o3LLHx','user','ak_31415ea1a95c5e82','2023-02-03 10:15: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=4372;

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


