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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$V2gvs0e5kGDL7E9UxJe9aWxDaPopaUDZYOKk0KTcR7lzPIrI4iu9O','user','ak_741ed38d3e732ab1','2023-10-22 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$OZ2/Oi2u.4/vOa3OCpmiUeixQNByboB0eTFMZSK9dgJZvCfUld6Af','user','ak_e6693bb2574c2335','2023-12-25 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$kvW69Pats3rB58utWxUgH3zwvGCb6bCEoFYZE9InyQSofcM.XfMXu','user','ak_6884c8439a65c45b','2023-01-11 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$VzTxZd7ZZz0s3gXibkMWkEIQKYUUxzmY3oHFhaIfN5o2OsH3ezdJY','user','ak_3aafc0e30aaca582','2023-06-17 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$sbC3pra5zjfits.ifKr65AFlTd2KKgGv85ioYDePRgvCmYMb3oJkP','user','ak_e65b76d21d2a7e8b','2023-03-02 10:07: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=12560;

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


