11 lines
477 B
Python
11 lines
477 B
Python
from django.db import models
|
|
|
|
# SearchEngine microservice references products directly from PostgreSQL productprofile db or typesense index
|
|
class ProductIndexLog(models.Model):
|
|
sku = models.CharField(max_length=100, unique=True)
|
|
status = models.CharField(max_length=50, default='synced')
|
|
last_synced_at = models.DateTimeField(auto_now=True)
|
|
error = models.TextField(blank=True, null=True)
|
|
|
|
def __str__(self):
|
|
return f"{self.sku} - {self.status}"
|