From 37d948fa651788c53f49159c5f127ee64d4e0c7b Mon Sep 17 00:00:00 2001 From: im-adithya Date: Fri, 20 Dec 2024 14:23:48 +0530 Subject: [PATCH] chore: add spacing --- internal/nostr/models.go | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/internal/nostr/models.go b/internal/nostr/models.go index adb04d1..7ca9f02 100644 --- a/internal/nostr/models.go +++ b/internal/nostr/models.go @@ -31,25 +31,25 @@ type Subscription struct { PushToken string IsIOS bool Open bool - Ids *[]string `gorm:"-"` - Kinds *[]int `gorm:"-"` - Authors *[]string `gorm:"-"` // WalletPubkey is included in this - Tags *nostr.TagMap `gorm:"-"` // RequestEvent ID goes in the "e" tag + Ids *[]string `gorm:"-"` + Kinds *[]int `gorm:"-"` + Authors *[]string `gorm:"-"` // WalletPubkey is included in this + Tags *nostr.TagMap `gorm:"-"` // RequestEvent ID goes in the "e" tag Since time.Time Until time.Time Limit int Search string CreatedAt time.Time UpdatedAt time.Time - Uuid string `gorm:"type:uuid;default:gen_random_uuid()"` - EventChan chan *nostr.Event `gorm:"-"` - RequestEvent *RequestEvent `gorm:"-"` - RelaySubscription *nostr.Subscription `gorm:"-"` - - IdsJson json.RawMessage `gorm:"type:jsonb"` - KindsJson json.RawMessage `gorm:"type:jsonb"` - AuthorsJson json.RawMessage `gorm:"type:jsonb"` - TagsJson json.RawMessage `gorm:"type:jsonb"` + Uuid string `gorm:"type:uuid;default:gen_random_uuid()"` + EventChan chan *nostr.Event `gorm:"-"` + RequestEvent *RequestEvent `gorm:"-"` + RelaySubscription *nostr.Subscription `gorm:"-"` + + IdsJson json.RawMessage `gorm:"type:jsonb"` + KindsJson json.RawMessage `gorm:"type:jsonb"` + AuthorsJson json.RawMessage `gorm:"type:jsonb"` + TagsJson json.RawMessage `gorm:"type:jsonb"` } func (s *Subscription) BeforeSave(tx *gorm.DB) error {