Initial open source release

This commit is contained in:
Ronni Skansing
2025-08-21 16:14:09 +02:00
commit 11cf01f08e
488 changed files with 97180 additions and 0 deletions
@@ -0,0 +1,22 @@
package database
import (
"github.com/google/uuid"
)
const (
RECIPIENT_GROUP_RECIPIENT_TABLE = "recipient_group_recipients"
)
// RecipientGroupRecipient is a grouping of recipients and recipient groups
type RecipientGroupRecipient struct {
Recipient *Recipient
RecipientID *uuid.UUID `gorm:"not null;uniqueIndex:idx_recipient_group"`
RecipientGroup *RecipientGroup
RecipientGroupID *uuid.UUID `gorm:"not null;uniqueIndex:idx_recipient_group"`
}
func (RecipientGroupRecipient) TableName() string {
return RECIPIENT_GROUP_RECIPIENT_TABLE
}