refactor storage minio for k8s

This commit is contained in:
2026-03-26 09:20:23 -03:00
parent e27cb5bcc3
commit c9ba9e4f5f
22 changed files with 961 additions and 18 deletions

View File

@@ -47,6 +47,12 @@ class BrandSource(models.TextChoices):
CLOUD = "cloud_llm", "Cloud"
MANUAL = "manual", "Manual"
class SourceType(models.TextChoices):
CHUNK_JOB = "chunk_job", "Chunk Job"
UPLOAD = "upload", "Upload"
DEVICE = "device", "Device"
STREAM = "stream", "Stream"
class MediaAsset(models.Model):
"""A video/audio file registered in the system."""
@@ -268,3 +274,32 @@ class SourceBrandSighting(models.Model):
def __str__(self):
return str(self.id)
class SourceJob(models.Model):
"""A group of chunks that belong together (same source video/session)."""
job_id = models.CharField(max_length=255)
source_type = models.CharField(max_length=255)
chunk_count = models.IntegerField()
total_bytes = models.IntegerField(default=0)
class Meta:
pass
def __str__(self):
return str(self.id)
class ChunkInfo(models.Model):
"""A single chunk (video segment) stored in blob storage."""
filename = models.CharField(max_length=500)
key = models.CharField(max_length=255)
size_bytes = models.IntegerField()
class Meta:
pass
def __str__(self):
return self.filename