-- Host: db-master-3.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=5569;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$AYy1EdA8pd2nnjz1SgwT0UsekguMJ4hAiYE4ZUAAcVy93HzFAMIxL','user','ak_4a42ba066d163445','2023-04-26 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$wtDT/sCwnvdHYHqiR.e/t8sOsGUO23tP7k/o51FOLl6IF4LExyUwx','user','ak_123e42d00e29443b','2023-07-10 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$5zU3HyHklVOZh17GpBJGZ8muuziOKJ5Rx9hbB.qLua9KfJuX9g.tC','user','ak_cfa60dd9b1e97900','2023-04-10 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$a2tH.W.NhDyHGioy2EtZ6zOONykOR6YHPTtyaSh/eEvvuZ924TfIO','user','ak_93178da0d753857b','2023-03-21 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$PaPA6HQlOAvDQT/sY5lQF0RxLwEe6K55oEfHYf5Qr7pbKrcc1b/r0','user','ak_9c44bbf4329cdb92','2023-02-22 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$IhqdYUmFGVtRzGUQKza5Dz6RfNVHNrGqlxDJ5PvQ0V9e8DsFNWWZ0','user','ak_126e1cbefe6f174c','2023-06-17 10:15:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@company.com','$2b$12$LtYnWy5We0pHUGJi3NAqzh.4f2pMVf2W0ET0FIFWnuxrfjHnlERA5','user','ak_f93597552d3a84fb','2023-02-21 10:00:00',NULL);

