-- Host: db-master-6.internal    Database: webapp_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=7385;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$UgGfLNnFZdhA6Ry2NP2ZZG0BSlTYfaZuCODqPyLJCs/q4qwt8x2xL','user','ak_809cf850815d3812','2023-10-21 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$/A9gIhcbRiMLCJ42iLD6CkzpTZRMeasEbY1tcJ97x8v4gDPmGlxwr','user','ak_42e900eb5a383338','2023-04-01 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$d7dHB3LOe8ZpUv7wQCwymZtm5JbUBHupgpLmH8edbqGMCwnBPNfhD','admin','ak_be8e9514cbfb36d3','2023-11-24 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$efPqMXuxTZMnmkvZIjojWpxH34x1QandObToig1mL2qf2Yd4zlkFa','user','ak_1c07330ee234613a','2023-09-28 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$2Ru2QdD1fEXkw4aVVzXtVNPYwJbGf8aN2Rrf6LoMINV72dxnROy2c','user','ak_1cb2f43b17986052','2023-01-03 10:21:00',NULL);

