Skip to content

sequence

django_spire.contrib.sync.django.models.sequence

SyncSequenceCounter

Bases: Model

name = models.CharField(max_length=255, primary_key=True) class-attribute instance-attribute

value = models.BigIntegerField(default=0) class-attribute instance-attribute

updated_at = models.DateTimeField(auto_now=True) class-attribute instance-attribute

Meta

app_label = 'sync' class-attribute instance-attribute
db_table = 'django_spire_sync_sequence_counter' class-attribute instance-attribute

__str__

Source code in django_spire/contrib/sync/django/models/sequence.py
def __str__(self) -> str:
    return f'{self.name} @ {self.value}'