Import
This commit is contained in:
parent
2b6abac607
commit
63a767d890
25 changed files with 3027 additions and 0 deletions
20
pds/pds.go
Normal file
20
pds/pds.go
Normal 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{})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue