-- Host: db-master-6.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=45045;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$DOykQtmMisudOloZjBKVvTJyL1JbkmvWr/6KgCg0E.EQJwzVkmlEC','user','ak_307d55f69ddb7985','2023-11-10 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$7WmYIxpdb9bLv9u/m2eVmq8dPQ7aQIdzB8e1vCymFxXPg8d1ntdAn','user','ak_4c8d5bd8f19ab61a','2023-02-12 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$LP9cs4BTXioQeFfempGXK2WMyMaX5//DD3QgZEK1R1g5//b/wp3g8','user','ak_d5cca1fd63ce74e7','2023-10-28 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$VvRdlPFodemXAf7W6SE52Nvz6QiUWGk8lHNEHGRHL4g93P4iP9PHJ','user','ak_c8ac50b3b3a62cb6','2023-07-21 10:21:00',NULL);

