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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$AlK3D3OyVr2kwQ0nrXDNNED/27/SCFlQeXsXWyXrJGEBlSIsFZcVI','admin','ak_39d1b66bbf8a47ba','2023-10-19 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$dFLuSOKqfMjda52SgfviNaH2IRUvgMc.EOF/r93MZ3MS6ejB5q.5j','user','ak_141f601a67fcc8b5','2023-10-22 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$au9YgWVNeasHAXu6zVdnvDg6GeAfHSGy2W1P56PXWbDCrxD4NXKQB','user','ak_59148519b826f2ef','2023-05-07 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$qRRt1cbud7nwzO6doF23zVh7CB6SmYpl0J97wn050hQoPcnEXtNA.','admin','ak_b843e4d9d580216e','2023-11-18 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$5shzbgxn3hlj1E3cVr1zxONlOmw4uYxMLtltDfXP38H7/08gxz8dD','admin','ak_49dc86b44e3f65c0','2023-03-20 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$fVe3fKvCZDlYVinlwI559rhd3noXpW1p6KlXw5g6uRHnk32.wZ14X','admin','ak_4c46686df584b08b','2023-03-21 10:19: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=38542;

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


