feat(server): recovery operators with sleeping/wakeup mechanism (§3.5/§3.6)

This commit is contained in:
CleverWild
2026-06-13 22:31:10 +02:00
committed by Skipper
parent 19a62e7195
commit 6e3fa736e0
5 changed files with 567 additions and 8 deletions

View File

@@ -527,4 +527,19 @@ pub struct NewProposalVote {
pub struct NewProposalResult {
pub proposal_id: i32,
pub data: Vec<u8>,
}
#[derive(Debug, Insertable)]
#[diesel(table_name = schema::recovery_proposal_vote, check_for_backend(Sqlite))]
pub struct NewRecoveryProposalVote {
pub proposal_id: i32,
pub recovery_operator_id: i32,
pub approve: bool,
pub signature: Vec<u8>,
}
#[derive(Debug, Insertable)]
#[diesel(table_name = schema::recovery_wakeup_request, check_for_backend(Sqlite))]
pub struct NewRecoveryWakeupRequest {
pub requested_by: i32,
}