Add follow requests to db

TODO: Add functions for it
This commit is contained in:
Melody Becker 2024-11-07 10:49:03 +01:00
parent c01b851fbf
commit a8abfb2219
2 changed files with 11 additions and 0 deletions

10
storage/followRequests.go Normal file
View file

@ -0,0 +1,10 @@
package storage
import "time"
type FollowRequest struct {
ID uint `gorm:"primarykey"`
CreatedAt time.Time
FromId string
ToId string
}

View file

@ -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)