Skip to content

Commit

Permalink
Fix schema relationship for document payment
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Sep 24, 2024
1 parent 7bbe18d commit dd8d566
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/payment/src/models/payment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@ impl ReadObj {

#[derive(Queryable, Debug, Identifiable, Insertable)]
#[table_name = "pay_payment_document"]
#[primary_key(owner_id, payment_id, agreement_id, activity_id)]
#[primary_key(owner_id, payment_id, peer_id, agreement_id, activity_id)]
pub struct DocumentPayment {
pub payment_id: String,
pub owner_id: NodeId,
pub peer_id: NodeId,
pub payment_id: String,
pub agreement_id: String,
pub invoice_id: Option<String>,
pub activity_id: Option<String>,
Expand Down

0 comments on commit dd8d566

Please sign in to comment.