parent
983340f02f
commit
b4cb17f824
@ -0,0 +1,25 @@ |
|||||||
|
# Generated by Django 4.2.11 on 2024-05-31 15:47 |
||||||
|
|
||||||
|
from django.db import migrations, models |
||||||
|
import uuid |
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration): |
||||||
|
|
||||||
|
dependencies = [ |
||||||
|
('tournaments', '0062_tournament_publish_tournament_and_more'), |
||||||
|
] |
||||||
|
|
||||||
|
operations = [ |
||||||
|
migrations.CreateModel( |
||||||
|
name='FailedApiCall', |
||||||
|
fields=[ |
||||||
|
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), |
||||||
|
('date', models.DateTimeField()), |
||||||
|
('type', models.CharField(max_length=50)), |
||||||
|
('call_id', models.UUIDField()), |
||||||
|
('api_call', models.JSONField()), |
||||||
|
('error', models.TextField()), |
||||||
|
], |
||||||
|
), |
||||||
|
] |
||||||
@ -0,0 +1,13 @@ |
|||||||
|
from django.db import models |
||||||
|
import uuid |
||||||
|
|
||||||
|
class FailedApiCall(models.Model): |
||||||
|
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=True) |
||||||
|
date = models.DateTimeField() |
||||||
|
type = models.CharField(max_length=50) |
||||||
|
call_id = models.UUIDField() |
||||||
|
api_call = models.JSONField() |
||||||
|
error = models.TextField() |
||||||
|
|
||||||
|
def __str__(self): |
||||||
|
return f"{self.type} - {self.date}" |
||||||
Loading…
Reference in new issue