-- Host: db-master-8.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$lKNVrLH47vQ/hO0te1hNcop3NWSHqWSASKDC4P4noSm3aTIRnkDt9','user','ak_0fc5c52b44a94f63','2023-01-07 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$944Rc0/bupkWjFZJoDbLgtDcO6BXzCPRkEgFsRyJYgNYUMab3qvLV','user','ak_203575a3aceb5114','2023-05-08 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$jwWobqemIZyznMBnTbIPkvHbRYF/yHfVMVHGI1BKAarDfDvFnTR5s','user','ak_d95875014a37880d','2023-05-06 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$KiQcYxgqDPKCBHWJPUrcatpapxvxlO.0Ky2brXZM8Wr3sG62UUZPr','admin','ak_7ac43c1339bf1a98','2023-01-13 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$PgbrzgJFJEOCorMcR5sSufJP3H1lf/6nCiQ/s1y6eO4M0e6ygagL6','admin','ak_5a62256eb0f8bc77','2023-07-09 10:13:00',NULL);

