CRUD of subscriptions

This commit is contained in:
2024-09-17 00:12:09 +08:00
parent 45698db199
commit c01714b3fc
8 changed files with 379 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
package models
import "git.solsynth.dev/hydrogen/dealer/pkg/hyper"
type Subscription struct {
hyper.BaseModel
FollowerID uint `json:"follower_id"`
Follower Account `json:"follower"`
AccountID *uint `json:"account_id,omitempty"`
Account *Account `json:"account,omitempty"`
TagID *uint `json:"tag_id,omitempty"`
Tag Tag `json:"tag,omitempty"`
CategoryID *uint `json:"category_id,omitempty"`
Category Category `json:"category,omitempty"`
}