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

22 lines
342 B
Go

package database
import (
"time"
"github.com/google/uuid"
)
const (
EVENT_TABLE = "events"
)
type Event struct {
ID *uuid.UUID `gorm:"primary_key;not null;unique;type:uuid"`
CreatedAt *time.Time `gorm:"not null;index;"`
Name string `gorm:"not null;index;"`
}
func (Event) TableName() string {
return EVENT_TABLE
}