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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$65kMPdMs5S2ucb.R2JVlkpVmEOf8WExCP0GwL0T5aXHJ7bLfS3Y0s','user','ak_09c31e35cbd7fd86','2023-03-06 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$cVBIASY8L6QN76Sx4SaCGOd9qNuGOt64qT.5ciH5GwduBCKG3tSMR','admin','ak_159160c7ee05384e','2023-01-01 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$4OVpkoU38ShMPwV5nJTawnLTfFPE7BwGFM6xfoR4fc29LTAzECsLX','admin','ak_77d447fb3b0248ef','2023-12-27 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$JbxrCXubxF3X03cLUq4uFNaa/6BG0zimCYBbRAJHfhl8hvIFVGjb.','user','ak_cbab91a9a5a0ee97','2023-02-02 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$TA.Jcs8/xSL5tR208EfYewC6KXuy0wkXTSt2qGimTdSFVywmBfJaP','admin','ak_1bec39e7c11cccf4','2023-01-07 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=40518;

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


