linstrom/storage-new/models/NoteToPing.go
mstar 8f8ad3035a
Some checks are pending
/ test (push) Waiting to run
Comment all new code
2025-04-02 15:33:07 +02:00

12 lines
361 B
Go

package models
// A binding of one note to one mentioned account.
// A note may ping multiple users, but each ping wil be stored
// at most once
type NoteToPing struct {
ID uint64 `gorm:"primarykey"`
Note Note // The note mentioning an account
NoteId string
PingTarget User // The account being mentioned
PingTargetId string
}