mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-02-12 16:12:44 +00:00
19 lines
306 B
Go
19 lines
306 B
Go
package database
|
|
|
|
import (
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
const (
|
|
IDENTIFIER_TABLE = "identifiers"
|
|
)
|
|
|
|
type Identifier struct {
|
|
ID *uuid.UUID `gorm:"primary_key;not null;unique;type:uuid"`
|
|
Name string `gorm:"not null;uniqueIndex"`
|
|
}
|
|
|
|
func (Identifier) TableName() string {
|
|
return IDENTIFIER_TABLE
|
|
}
|