ACHAccount
| Field | Type | Constraints |
|---|---|---|
id |
UUIDField | PK default=uuid4 |
type |
TextField | choicesShow 4 choices
DIRECT_DEPOSIT_BUFFERDirect Deposit Buffer
GIFTGift
CUSTOMER_SUPPORTCUSTOMER_SUPPORT
GIFT_CARD_REFUNDGift Card Refund |
created |
DateTimeField | indexed |
is_deleted |
BooleanField | default=False |
verification_failed |
BooleanField | default=False |
verification_debug_data |
JSONField | nullable |
account |
FK → Account | |
name |
TextField | |
institution_name |
TextField | |
plaid_institution_id |
TextField | nullable |
plaid_account_id |
TextField | nullable |
plaid_access_token |
TextField | unique nullable |
dwolla_funding_id |
UUIDField | unique nullable |
stripe_bank_account_token |
TextField | nullable |
has_astra |
BooleanField | default=False |
Relationships
Referenced By (3 tables)
Sample Queries (click to expand)
Get all records
ACHAccount.objects.all()
Get by ID
ACHAccount.objects.get(id=1)
With related Account
ACHAccount.objects.select_related("account")
Filter by account
ACHAccount.objects.filter(account_id=123)
Filter by created (last 7 days)
ACHAccount.objects.filter(created__gte=datetime.now()-timedelta(days=7))