AccountGameBatch
| Field | Type | Constraints |
|---|---|---|
id |
UUIDField | PK default=uuid4 |
created |
DateTimeField | default=now() |
game |
TextField | choicesGames |
account |
FK → Account | |
status |
TextField | default=value choicesAccountGameBatchStatus |
Relationships
Referenced By (1 tables)
Sample Queries (click to expand)
Get all records
AccountGameBatch.objects.all()
Get by ID
AccountGameBatch.objects.get(id=1)
With related Account
AccountGameBatch.objects.select_related("account")
Filter by account
AccountGameBatch.objects.filter(account_id=123)
Filter by created (last 7 days)
AccountGameBatch.objects.filter(created__gte=datetime.now()-timedelta(days=7))