mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-07-09 13:58:25 +02:00
Initial open source release
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package database
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type APISenderHeader struct {
|
||||
ID *uuid.UUID `gorm:"primary_key;not null;unique;type:uuid"`
|
||||
CreatedAt *time.Time `gorm:"not null;index;"`
|
||||
UpdatedAt *time.Time `gorm:"not null;index"`
|
||||
|
||||
Key string `gorm:"not null;"`
|
||||
Value string `gorm:"not null;"`
|
||||
// IsRequestHeader is true if the header is a request header
|
||||
// and false if it is a expected response header
|
||||
IsRequestHeader bool `gorm:"not null;"`
|
||||
|
||||
// belongs to
|
||||
APISenderID *uuid.UUID `gorm:"index;not null;type:uuid"`
|
||||
}
|
||||
|
||||
func (APISenderHeader) TableName() string {
|
||||
return "api_sender_headers"
|
||||
}
|
||||
Reference in New Issue
Block a user