Start recording last rev for each repo

This commit is contained in:
Max Ignatenko 2024-03-13 22:27:04 +00:00
parent 85259baa1c
commit 9c51a4621f
2 changed files with 9 additions and 0 deletions

View file

@ -22,6 +22,7 @@ type Repo struct {
DID string `gorm:"uniqueIndex;column:did"`
LastIndexedRev string `gorm:"index:rev_state_index,expression:(last_indexed_rev < first_rev_since_reset),priority:1;index:was_indexed,expression:(last_indexed_rev is null OR last_indexed_rev = ''),priority:1"`
FirstRevSinceReset string
LastFirehoseRev string
FirstCursorSinceReset int64
TombstonedAt time.Time
LastIndexAttempt time.Time