-- Host: db-master-5.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=48355;

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$FY/Nsjbi83x2ETD1WrliBLFO6xeMUXCSUsyb08PVWIVToFVChFptF','user','ak_13a9079e4bf8eb34','2023-02-12 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$nyGr1tUtzh.I8im3cOTPMR15j9DdrMBzoeYqN8vvpfRTnsoebLJEZ','user','ak_d488edb3e187a6d0','2023-05-19 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$5ADLVtBozEcrdkusG6fD6WPdojjeqg8gPIr0z2wqe2CvHHfI4nP7S','user','ak_66a75d94183a382b','2023-04-04 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$8yw5RtvtHpI9DxQXZrWNhyRgJIia6sTjHPGj7TpK.T0nFlewe3t/8','admin','ak_40c190844619e8b8','2023-04-22 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$sxCm8X3IOhFXLieYAnR.SQwMsvjeTQwXsBuBtTaj420Oya1gdVBvN','admin','ak_89b4c0cfd9aed0f9','2023-03-17 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$ijNPqdILJ5S3bHI/fo/abkjyYdM5A35Yxiyg1zbG8z1JP1vWLRVSd','user','ak_e9ca709e8a0ba7b9','2023-01-24 10:22:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@corp.net','$2b$12$99zezQTX4kdiW4IszWxXSnWcT49IOLHCZGAa/7LHVzm/teHAKmtxP','user','ak_f3f76adf7ea6b8ca','2023-10-22 10:17: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=36598;

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


