Add initial feed structure, fix passkey id usage
This commit is contained in:
parent
ef91558600
commit
420f6e46c0
6 changed files with 162 additions and 118 deletions
29
storage-new/models/NoteToFeed.go
Normal file
29
storage-new/models/NoteToFeed.go
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue