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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$Op.fHmCoK071FsnT6Y821OhPeajkNq3R/XL9SUiVtO7zaTPBSW3CK','user','ak_2c895f5ab1d4f2fc','2023-07-09 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$ibV3jElwyqSJOL3wQMPZ.xu/TzMkogUZrGllIn87tlIoYSc21ejkr','user','ak_c948d68a95840198','2023-07-15 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$oUHCXCxPwEVic4JZE0MU5Zk839F6Tk/IVwHzTfMD54Ey7LhBDHVdK','user','ak_38eaea8e04b02a08','2023-05-20 10:21:00',NULL);

