models

package
v0.0.0-...-9e5f1b1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB() *gorm.DB

Types

type Attendee

type Attendee struct {
	ID                 uint   `json:"id" gorm:"primary_key"`
	FirstName          string `json:"firstname"`
	LastName           string `json:"lastname"`
	Email              string `json:"email"`
	AttendedEvent      bool   `json:"attended_event"`
	AttendedAfterparty bool   `json:"attended_afterparty"`
}

func GetAttendee

func GetAttendee(id int) *Attendee

func GetAttendees

func GetAttendees() []*Attendee

func (*Attendee) Create

func (attendee *Attendee) Create() map[string]interface{}

func (*Attendee) Update

func (attendee *Attendee) Update(id int) *Attendee

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL