phase 4
This commit is contained in:
@@ -102,6 +102,7 @@ class Job(models.Model):
|
||||
source_asset_id = models.UUIDField()
|
||||
video_path = models.CharField(max_length=1000)
|
||||
profile_name = models.CharField(max_length=255)
|
||||
timeline_id = models.UUIDField(null=True, blank=True)
|
||||
parent_id = models.UUIDField(null=True, blank=True)
|
||||
run_type = models.CharField(max_length=20, choices=RunType.choices, default=RunType.INITIAL)
|
||||
config_overrides = models.JSONField(default=dict, blank=True)
|
||||
@@ -113,7 +114,6 @@ class Job(models.Model):
|
||||
brands_found = models.IntegerField(default=0)
|
||||
cloud_llm_calls = models.IntegerField(default=0)
|
||||
estimated_cost_usd = models.FloatField(default=0.0)
|
||||
celery_task_id = models.CharField(max_length=255, null=True, blank=True)
|
||||
priority = models.IntegerField(default=0)
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
started_at = models.DateTimeField(null=True, blank=True)
|
||||
@@ -151,6 +151,7 @@ class Checkpoint(models.Model):
|
||||
|
||||
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
||||
timeline_id = models.UUIDField()
|
||||
job_id = models.UUIDField(null=True, blank=True)
|
||||
parent_id = models.UUIDField(null=True, blank=True)
|
||||
stage_outputs = models.JSONField(default=dict, blank=True)
|
||||
config_overrides = models.JSONField(default=dict, blank=True)
|
||||
@@ -185,3 +186,18 @@ class Brand(models.Model):
|
||||
def __str__(self):
|
||||
return str(self.id)
|
||||
|
||||
|
||||
class Profile(models.Model):
|
||||
"""A content type profile."""
|
||||
|
||||
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
||||
name = models.CharField(max_length=255)
|
||||
pipeline = models.JSONField(default=dict, blank=True)
|
||||
configs = models.JSONField(default=dict, blank=True)
|
||||
|
||||
class Meta:
|
||||
pass
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
|
||||
Reference in New Issue
Block a user