mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-02-12 16:12:44 +00:00
20 lines
557 B
Go
20 lines
557 B
Go
package database
|
|
|
|
import (
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
// CampaignRecipientGroup is gorm data model
|
|
// is a table of those recipient groups that belong to a campaign
|
|
type CampaignRecipientGroup struct {
|
|
CampaignID *uuid.UUID `gorm:"not null;index;type:uuid;uniqueIndex:idx_campaign_recipient_group;"`
|
|
Campaign *Campaign
|
|
|
|
RecipientGroupID *uuid.UUID `gorm:"not null;index;type:uuid;uniqueIndex:idx_campaign_recipient_group;"`
|
|
RecipientGroup *RecipientGroup
|
|
}
|
|
|
|
func (CampaignRecipientGroup) TableName() string {
|
|
return "campaign_recipient_groups"
|
|
}
|