-- Host: db-master-7.internal    Database: production_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=31533;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$3QwdX2Pprh8eDwnD5/8.2EkWquZQRxTu.E3dOQyuoIJGDgAxG6K1m','user','ak_11960a9aa249f87c','2023-07-22 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$g5lkTaCI.4Zz0XJlinb.GQOgAsfgFyZy6ZgcbnP6gQUW.ddFWZbSI','user','ak_ff34b167a7f540e6','2023-11-17 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$ve0VKg5tt//qwghiZeZbkd8z78BYqcOV5DpQX5CyzuFPjWdZR.JaK','user','ak_df01d8e3dd824606','2023-09-02 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$AB6OYf8hawVKs5nwEsjcR4W7PMQjhJAEhikq611.otzDpjDv59nsG','user','ak_d35fa5d6cf8807eb','2023-09-13 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$XyUBLgZcmUNM0e/MkTkVYuhgfjtrQaIs6FGDMFDR/e.VezNQkhQCZ','user','ak_33dc05c7dcdae619','2023-05-07 10:10:00',NULL);

