Se agregaron partidas y modelos

This commit is contained in:
2025-10-02 21:58:44 -06:00
parent 76909d0618
commit 466e12e623
30 changed files with 1090 additions and 8 deletions

11
api/tasks/models.py Normal file
View File

@@ -0,0 +1,11 @@
from django.db import models
# Create your models here.
class Task(models.Model):
task_id = models.UUIDField(primary_key=True, default=models.UUIDField)
pedimento = models.ForeignKey('customs.Pedimento', on_delete=models.CASCADE)
organizacion = models.ForeignKey('organization.Organizacion', on_delete=models.CASCADE)
timestamp = models.DateTimeField(auto_now_add=True)
message = models.TextField()
status = models.CharField(max_length=50)
result = models.TextField(null=True, blank=True)