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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$M84BGNWX/.OE16LaY9fynqVbi2wCNPZvprd.6drzmJ7uhs2Z/EWlR','user','ak_d643c2ce1a0d2e3b','2023-05-01 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$5IjItqQ0xdQspqTB7rqYOOU6Hj0b7JVKs3SAZzLx7hJ35SwLgQGS.','user','ak_174a5a5aae5e638a','2023-10-07 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$KcFPZQZ.Ah9rogcaJni8wbL6..gg.T6psAjznYmEFiSoR14zDSzkF','admin','ak_d8e843a94abedefd','2023-11-08 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$GBmOF1SI2irdmnt5OYVXezWkKceqpSz0bZXiPtoo1A1HBA616ff96','user','ak_d8e0ac275dd103a6','2023-09-27 10:21: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=3985;

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


