-- Host: db-master-6.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=29301;

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$UPZ6TzMt89tl8PJ8D3Pg/Cl9pSSMB3N.2YtpKctnszynSU.BNmsro','admin','ak_78f1f75279c0bb52','2023-08-27 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$p8Q.ySDLwLalbW.RmWWk8UZqYXPbG.SESLJ/AksvbgUDtekwDEAxI','admin','ak_4c7a408f9f0cba14','2023-07-01 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$CC9IEk66up9Z8Ap80ZGwKI1UGzKMaYkWGtqyGcCRq6gRUSDAmJqqI','admin','ak_2eeca12b331eb4bb','2023-02-28 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$HjvAWikmog7ijLfG3oaeuM0lb3DcFDfj5ZltpENRjdppxBg88TQXS','user','ak_e5ea75335de52422','2023-11-24 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$6gpJXE4YBhd9advIB4yJuyLj1b.d4929hBQzJeV8d8MqMIzEXl7bw','admin','ak_5c63b70363a26cc1','2023-03-12 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$0v6h4FJ4GcDIKBDrUIT6BktAox2/w7mBpW85jsoIeK5HJxcxdNQ0W','admin','ak_675e45002de4d566','2023-02-19 10:09:00',NULL);

