Add follow requests to db
TODO: Add functions for it
This commit is contained in:
parent
c01b851fbf
commit
a8abfb2219
2 changed files with 11 additions and 0 deletions
10
storage/followRequests.go
Normal file
10
storage/followRequests.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
package storage
|
||||
|
||||
import "time"
|
||||
|
||||
type FollowRequest struct {
|
||||
ID uint `gorm:"primarykey"`
|
||||
CreatedAt time.Time
|
||||
FromId string
|
||||
ToId string
|
||||
}
|
|
@ -49,6 +49,7 @@ func NewStorage(dbUrl string, cache *cache.Cache) (*Storage, error) {
|
|||
AccessToken{},
|
||||
Emote{},
|
||||
UserInfoField{},
|
||||
FollowRequest{},
|
||||
)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to apply migrations: %w", err)
|
||||
|
|
Loading…
Reference in a new issue