This commit is contained in:
Max Ignatenko 2024-02-15 16:10:39 +00:00
parent 2b6abac607
commit 63a767d890
25 changed files with 3027 additions and 0 deletions

20
pds/pds.go Normal file
View file

@ -0,0 +1,20 @@
package pds
import (
"time"
"gorm.io/gorm"
)
type PDS struct {
gorm.Model
Host string `gorm:"uniqueIndex"`
Cursor int64
FirstCursorSinceReset int64
LastList time.Time
CrawlLimit int
}
func AutoMigrate(db *gorm.DB) error {
return db.AutoMigrate(&PDS{})
}