Files
phishingclub/backend/database/identifiers.go
2025-08-21 16:14:09 +02:00

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
}