AccountCard
| Field | Type | Constraints |
|---|---|---|
id |
BigAutoField | PK |
account |
FK → Account | |
api_id |
CharField(40) | |
card |
FK → Card | |
assigned |
OneToOne → CardAssigned | nullable |
destroyed |
OneToOne → CardDestroyed | nullable |
acknowledged_balance |
DecimalField(30,8) | nullable |
nonrefundable |
BooleanField | default=False |
nonrefundable_reason |
TextField | nullable |
Relationships
Referenced By (1 tables)
Sample Queries (click to expand)
Get all records
AccountCard.objects.all()
Get by ID
AccountCard.objects.get(id=1)
With related Account
AccountCard.objects.select_related("account")
Filter by account
AccountCard.objects.filter(account_id=123)