mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-02-12 16:12:44 +00:00
23 lines
586 B
Go
23 lines
586 B
Go
package database
|
|
|
|
import (
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
const (
|
|
CAMPAIGN_ALLOW_DENY_TABLE = "campaign_allow_denies"
|
|
)
|
|
|
|
// CampaignAllowDeny is a gorm data model
|
|
// is a table of those allow deny lists that belong to a campaign
|
|
type CampaignAllowDeny struct {
|
|
CampaignID *uuid.UUID `gorm:"not null;index;type:uuid;uniqueIndex:idx_campaign_allow_denies;"`
|
|
Campaign *Campaign
|
|
AllowDenyID *uuid.UUID `gorm:"not null;index;type:uuid;uniqueIndex:idx_campaign_allow_denies;"`
|
|
AllowDeny *AllowDeny
|
|
}
|
|
|
|
func (CampaignAllowDeny) TableName() string {
|
|
return CAMPAIGN_ALLOW_DENY_TABLE
|
|
}
|