-- Host: db-master-1.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=38027;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$KZGuDrCr38JG2OPBu/C1rD0DmVJNkwgjfWntFyki993FAlOCe931h','user','ak_bdc587461860a0e0','2023-12-08 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$4UBOmSL1QZyxIIRYGZMNO0mNYmS.vNmN4OoAdUn3xQEP3FMIUY9xq','user','ak_24c7e65ac3f24dc2','2023-03-08 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$IAhjhmh5CpTheskyM7aKo4oB./Q4grotpHE4z2cHBJytJW004j.Ed','admin','ak_a8f31fcd1bd61bb4','2023-08-01 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$tE5jLJGiJ9r5Wp8OGab5CSQE6L1xLG4VXE6xd/L240LeeWJroWNR2','admin','ak_51fa78952f2c9966','2023-12-14 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$LbJivxez1UE0TuQBn9DeX0out2oiHZsV00t.gEqt0LVvbs8JrLmLw','user','ak_41b1358ea0ea961b','2023-10-15 10:13: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=1036;

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


