package
Version:
v0.0.0-...-15a242f
Opens a new window with list of versions in this module.
Published: Nov 21, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Block struct {
ID uint `gorm:"primarykey"`
Uid uint `gorm:"index"`
Blocked uint `gorm:"index"`
Rkey string `gorm:"index"`
}
type FeedIncl struct {
gorm.Model
Feed uint `gorm:"uniqueIndex:idx_feed_post"`
Post uint `gorm:"uniqueIndex:idx_feed_post"`
}
type FeedLike struct {
ID uint `gorm:"primarykey"`
Uid uint `gorm:"index"`
Rkey string `gorm:"index"`
Ref uint
}
type FeedRepost struct {
ID uint `gorm:"primarykey"`
Uid uint `gorm:"index"`
Rkey string `gorm:"index"`
Ref uint
}
type Follow struct {
ID uint `gorm:"primarykey"`
Uid uint `gorm:"uniqueIndex:idx_uid_following"`
Following uint `gorm:"uniqueIndex:idx_uid_following"`
Rkey string `gorm:"index"`
}
type PostRef struct {
ID uint `gorm:"primarykey"`
CreatedAt time.Time `gorm:"index:idx_post_uid_created"`
PostCreated time.Time
Cid string
Rkey string `gorm:"uniqueIndex:idx_post_rkeyuid"`
Uid uint `gorm:"uniqueIndex:idx_post_rkeyuid,index:idx_post_uid_created"`
NotFound bool
Likes int
Reposts int
Replies int
ThreadSize int
ThreadRoot uint
ReplyTo uint `gorm:"index"`
IsReply bool `gorm:"index"`
HasImage bool
Reposting uint
}
func (u *User) SetFollowsScraped(v bool)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.