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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$WAYpSSojvmxVYBujBbTCw9bH8igjQwpEfzS92kCh5iq1SQW8t4pSB','admin','ak_30ec69dff14a2708','2023-04-25 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$eJlfX1E1b/OvpnKmfrebLMrQhAXPvxdK3awf.JVQ8IF0C5lXWRkyd','user','ak_bd482f131ac4e371','2023-06-17 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$SA4WpqN.QUTQvzqV3OP3Izzl7rVe5j.NOYFqQE3ikYLNe930YSh06','user','ak_a3e761b9566aee02','2023-04-05 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$uMr2O/SD3ePKTONGyYoMS/wEqtlODcypJCjrucnk1OCnfoVWeLKo5','user','ak_b91d102a5bead931','2023-07-10 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$9BFqTqNL.WPA/UeJgGTTQhV6YO/ETfqSsIzsuTiHaRjkfkiGxjeOD','user','ak_7e3eb7d829ebf2f3','2023-09-21 10:09: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=2287;

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


