Add initial feed structure, fix passkey id usage

This commit is contained in:
Melody Becker 2025-04-02 13:44:33 +02:00
parent ef91558600
commit 420f6e46c0
Signed by: mstar
SSH key fingerprint: SHA256:9VAo09aaVNTWKzPW7Hq2LW+ox9OdwmTSHRoD4mlz1yI
6 changed files with 162 additions and 118 deletions

View file

@ -0,0 +1,29 @@
package models
import "time"
// TODO: Struct for mapping a note to a user for their personal feed
// Storing timeline info in redis could also be an idea, but I kinda like
// everything being in one place
// Data needed:
// - Which note
// - Who's feed
// - Which feed (once separate feeds are implemented)
// - Reason:
// - Boost
// - Follow person
// - Follow tag
//
// Also need to store the boosts a user has performed somewhere
// Maybe adjust Reaction? Though a separate table might be a better option
// Assigns a note to a feed
type NoteToFeed struct {
ID uint64 `gorm:"primarykey"`
CreatedAt time.Time
Note Note
NoteId string
// Feed Feed
// FeedId uint64
// Reason AppearanceReason
}