💳 Magento_Paypal · engine innodb
paypal_billing_agreement
Sales Billing Agreement
Neighbourhood (1-hop foreign-key graph — showing 3 of 3)
flowchart LR c["paypal_billing_agreement"]:::center n0["customer_entity"] click n0 "/schema/table/customer_entity" n0 -- customer_id --> c n1["store"] click n1 "/schema/table/store" n1 -- store_id --> c n2["paypal_billing_agreement_order"] click n2 "/schema/table/paypal_billing_agreement_order" c -- agreement_id --> n2 click c "/schema/table/paypal_billing_agreement" classDef center fill:#eef2ff,stroke:#6366f1,color:#3730a3,stroke-width:1.5px
Click a node to jump to that table.
Related tables (3)
Columns (9)
| Name | Type | Null | Default | Comment |
|---|---|---|---|---|
| agreement_id PK | int unsigned | no | Agreement ID | |
| customer_id | int unsigned | no | Customer ID | |
| method_code | varchar(32) | no | Method Code | |
| reference_id | varchar(32) | no | Reference ID | |
| status | varchar(20) | no | Status | |
| created_at | timestamp | no | CURRENT_TIMESTAMP | Created At |
| updated_at | timestamp | yes | Updated At | |
| store_id | smallint unsigned | yes | Store ID | |
| agreement_label | varchar(255) | yes | Agreement Label |
Keys & indexes
Primary key: agreement_id
Indexes
- PAYPAL_BILLING_AGREEMENT_CUSTOMER_ID (customer_id) btree
- PAYPAL_BILLING_AGREEMENT_STORE_ID (store_id) btree
References (2)
- customer_id → customer_entity .entity_id (on delete CASCADE)
- store_id → store .store_id (on delete SET NULL)
Referenced by (1)
- paypal_billing_agreement_order .agreement_id → .agreement_id (on delete CASCADE)