mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-02-12 16:12:44 +00:00
22 lines
342 B
Go
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
|
|
}
|