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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$fGRDh21kQ0lDUalm334QWKrA.O9bpMGgW74ZmrU4r5uLUCgNJN8Jf','user','ak_4b6476d9be9e3b9e','2023-09-08 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$zkt7jC/3KSBLu2qBUqn0FVPnRQW1VaHLXdbr3dr4qQR1JAH.gXe6j','user','ak_518b5bd8e4f388be','2023-11-17 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$SWUbWE/jizD7Y6MbAy8CbU2XJfAtfiEFxTYaWrClswJSsojv7lNLG','user','ak_fbc5904bbc27bbdc','2023-07-28 10:23: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=41995;

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


