mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-08-17 16:07:18 +02:00
cleanup from old proxy page test
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
@@ -13,15 +13,12 @@ const (
|
||||
|
||||
// Page is a gorm data model
|
||||
type Page 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"`
|
||||
CompanyID *uuid.UUID `gorm:"index;uniqueIndex:idx_pages_unique_name_and_company_id;type:uuid"`
|
||||
Name string `gorm:"not null;index;uniqueIndex:idx_pages_unique_name_and_company_id;"`
|
||||
Content string `gorm:"not null;"`
|
||||
Type string `gorm:"not null;default:'regular';"`
|
||||
TargetURL string
|
||||
ProxyConfig string
|
||||
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"`
|
||||
CompanyID *uuid.UUID `gorm:"index;uniqueIndex:idx_pages_unique_name_and_company_id;type:uuid"`
|
||||
Name string `gorm:"not null;index;uniqueIndex:idx_pages_unique_name_and_company_id;"`
|
||||
Content string `gorm:"not null;"`
|
||||
|
||||
// could has-one
|
||||
Company *Company
|
||||
|
||||
Reference in New Issue
Block a user