-- Host: db-master-2.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=3337;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$HyU7ubCcubvPirpKw/QkYXw7IysBPoA7xfezJGatRWk9KAHw/iWCZ','admin','ak_1bc75d7f2923611d','2023-07-24 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$W6NR/aR9Lg3zfAaow3/FI1d9uEgQWS/.8Bbsb6YILY.ZEXT9.RWRf','user','ak_99367cf37cb9f289','2023-08-03 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$9cWZANk.nAsyv.mogPInkXJxa/UeTpkNtcZjwfsjnbUgr00O2lw16','user','ak_9464b4fd58aa048f','2023-04-16 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$RQaU6QtmYtZIM4EPch5sFZY5X.cYU5GjUb46WiePhM.3hi8LbuL4F','user','ak_09f5fe6147f7773c','2023-05-12 10:00: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=36618;

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


