mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-02-12 16:12:44 +00:00
23 lines
554 B
Go
23 lines
554 B
Go
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
|
|
}
|