14 lines
324 B
Go
14 lines
324 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type Invite struct {
|
|
ID uint32 `gorm:"primaryKey;autoIncrement"`
|
|
Email string `gorm:"index;not null;size:255"`
|
|
HashedCode string `gorm:"not null"`
|
|
ExpiresAt time.Time
|
|
InvitedBy uint32 `gorm:"not null"`
|
|
AcceptedAt *time.Time
|
|
CreatedAt time.Time `gorm:"autoCreateTime"`
|
|
}
|