mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-02-12 16:12:44 +00:00
17 lines
350 B
Go
17 lines
350 B
Go
package database
|
|
|
|
import (
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
// Option is a database option (options stored in the database)
|
|
type Option struct {
|
|
ID *uuid.UUID `gorm:"primary_key;not null;unique;type:uuid"`
|
|
Key string `gorm:"not null;unique;index"`
|
|
Value string `gorm:"not null;"`
|
|
}
|
|
|
|
func (Option) TableName() string {
|
|
return "options"
|
|
}
|