🗑️ Remove firebase deps
This commit is contained in:
		@@ -22,6 +22,7 @@ type Account struct {
 | 
			
		||||
 | 
			
		||||
	Profile         AccountProfile   `json:"profile"`
 | 
			
		||||
	PersonalPage    AccountPage      `json:"personal_page"`
 | 
			
		||||
	Badges          []Badge          `json:"badges"`
 | 
			
		||||
	Contacts        []AccountContact `json:"contacts"`
 | 
			
		||||
	RealmIdentities []RealmMember    `json:"realm_identities"`
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										10
									
								
								pkg/models/badges.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								pkg/models/badges.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
package models
 | 
			
		||||
 | 
			
		||||
type Badge struct {
 | 
			
		||||
	BaseModel
 | 
			
		||||
 | 
			
		||||
	Type      string `json:"type"`
 | 
			
		||||
	Label     string `json:"label"`
 | 
			
		||||
	Color     string `json:"color"`
 | 
			
		||||
	AccountID uint   `json:"account_id"`
 | 
			
		||||
}
 | 
			
		||||
@@ -1,15 +1,18 @@
 | 
			
		||||
package models
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"gorm.io/datatypes"
 | 
			
		||||
	"time"
 | 
			
		||||
 | 
			
		||||
	"gorm.io/datatypes"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
type Notification struct {
 | 
			
		||||
	BaseModel
 | 
			
		||||
 | 
			
		||||
	Type        string                                `json:"type"`
 | 
			
		||||
	Subject     string                                `json:"subject"`
 | 
			
		||||
	Content     string                                `json:"content"`
 | 
			
		||||
	Metadata    datatypes.JSONMap                     `json:"metadata"`
 | 
			
		||||
	Links       datatypes.JSONSlice[NotificationLink] `json:"links"`
 | 
			
		||||
	IsImportant bool                                  `json:"is_important"`
 | 
			
		||||
	IsRealtime  bool                                  `json:"is_realtime" gorm:"-"`
 | 
			
		||||
@@ -25,7 +28,7 @@ type NotificationLink struct {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const (
 | 
			
		||||
	NotifySubscriberFirebase = "firebase"
 | 
			
		||||
	NotifySubscriberAPN = "apple"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
type NotificationSubscriber struct {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user