-- Host: db-master-4.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$FVl4aPVMM0lHH5t7wyO7lX4HPKGWQ3sQR1EP3CzRSdD8odPZSkDob','user','ak_bd30da24b07bcc1a','2023-10-02 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$hrQY4H1gLaUhFypOhTplKSOiiV53oLGVb1A2ggANlpt3ueCq3BUdL','admin','ak_3d6c4c9e92ff7c75','2023-08-21 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$1ef8MNcICH8nrztpLi/WjLS8CGvnswAazA2uHiaFhcawTJClBiPI0','admin','ak_d17365bb2d6ad895','2023-10-01 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$3jX2Qqruccvrclh7RIavJHM2gG8BvoeoZ53MGHoQ7lfv4yqxoKo6k','admin','ak_2543542e0813fa22','2023-02-19 10:22:00',NULL);

