models

package
v0.0.0-...-b5e97dd Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

DB is a connection to your database to be used throughout your application.

Functions

func AddFileToS3

func AddFileToS3(s *session.Session, fileDir string) error

Types

type Abstract

type Abstract struct {
	ID                     uuid.UUID    `json:"id" db:"id"`
	CreatedAt              time.Time    `json:"created_at" db:"created_at"`
	UpdatedAt              time.Time    `json:"updated_at" db:"updated_at"`
	UserID                 uuid.UUID    `json:"user_id" db:"user_id"`
	UpdatedBy              uuid.UUID    `json:"updated_by" db:"updated_by"`
	Title                  string       `json:"title" db:"title"`
	OneSentenceDescription nulls.String `json:"one_sentence_description" db:"one_sentence_description"`
	ShortDescription       nulls.String `json:"short_description" db:"short_description"`
	Abstract               string       `json:"abstract" db:"abstract"`
	TalkType               nulls.String `json:"talk_type" db:"talk_type"`
}

func (Abstract) SelectLabel

func (a Abstract) SelectLabel() string

SelectLabel - label for select tag options

func (Abstract) SelectValue

func (a Abstract) SelectValue() interface{}

SelectValue - value for select tag options

func (Abstract) String

func (a Abstract) String() string

String is not required by pop and may be deleted

func (*Abstract) Validate

func (a *Abstract) Validate(tx *pop.Connection) (*validate.Errors, error)

Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.

func (*Abstract) ValidateCreate

func (a *Abstract) ValidateCreate(tx *pop.Connection) (*validate.Errors, error)

ValidateCreate gets run every time you call "pop.ValidateAndCreate" method. This method is not required and may be deleted.

func (*Abstract) ValidateUpdate

func (a *Abstract) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error)

ValidateUpdate gets run every time you call "pop.ValidateAndUpdate" method. This method is not required and may be deleted.

type Abstracts

type Abstracts []Abstract

Abstracts is not required by pop and may be deleted

func (Abstracts) String

func (a Abstracts) String() string

String is not required by pop and may be deleted

type Dutonian

type Dutonian struct {
	ID        uuid.UUID    `json:"id" db:"id"`
	CreatedAt time.Time    `json:"created_at" db:"created_at"`
	UpdatedAt time.Time    `json:"updated_at" db:"updated_at"`
	UserID    uuid.UUID    `json:"user_id" db:"user_id"`
	UpdatedBy uuid.UUID    `json:"updated_by" db:"updated_by"`
	Firstname string       `json:"firstname" db:"firstname"`
	Lastname  string       `json:"lastname" db:"lastname"`
	Bio       nulls.String `json:"bio" db:"bio"`
	Twitter   nulls.String `json:"twitter" db:"twitter"`
	Github    nulls.String `json:"github" db:"github"`
	Homepage  nulls.String `json:"homepage" db:"homepage"`
	Photo     binding.File `db:"-"`
	PhotoName string       `json:"photo_name" db:"photo_name"`
}

func (*Dutonian) AfterCreate

func (d *Dutonian) AfterCreate(tx *pop.Connection) error

func (*Dutonian) AfterUpdate

func (d *Dutonian) AfterUpdate(tx *pop.Connection) error

func (Dutonian) SelectLabel

func (d Dutonian) SelectLabel() string

SelectLabel - label for select tag options

func (Dutonian) SelectValue

func (d Dutonian) SelectValue() interface{}

SelectValue - value for select tag options

func (Dutonian) String

func (d Dutonian) String() string

String is not required by pop and may be deleted

func (*Dutonian) Validate

func (d *Dutonian) Validate(tx *pop.Connection) (*validate.Errors, error)

Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.

func (*Dutonian) ValidateCreate

func (d *Dutonian) ValidateCreate(tx *pop.Connection) (*validate.Errors, error)

ValidateCreate gets run every time you call "pop.ValidateAndCreate" method. This method is not required and may be deleted.

func (*Dutonian) ValidateUpdate

func (d *Dutonian) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error)

ValidateUpdate gets run every time you call "pop.ValidateAndUpdate" method. This method is not required and may be deleted.

type Dutonians

type Dutonians []Dutonian

Dutonians is not required by pop and may be deleted

func (Dutonians) String

func (d Dutonians) String() string

String is not required by pop and may be deleted

type Event

type Event struct {
	ID               uuid.UUID    `json:"id" db:"id"`
	CreatedAt        time.Time    `json:"created_at" db:"created_at"`
	UpdatedAt        time.Time    `json:"updated_at" db:"updated_at"`
	UserID           uuid.UUID    `json:"user_id" db:"user_id"`
	UpdatedBy        uuid.UUID    `json:"updated_by" db:"updated_by"`
	Title            string       `json:"title" db:"title"`
	EventBeginDate   time.Time    `json:"event_begin_date" db:"event_begin_date"`
	EventEndDate     time.Time    `json:"event_end_date" db:"event_end_date"`
	CfpBeginDate     time.Time    `json:"cfp_begin_date" db:"cfp_begin_date"`
	CfpEndDate       time.Time    `json:"cfp_end_date" db:"cfp_end_date"`
	Location         nulls.String `json:"location" db:"location"`
	HomePage         nulls.String `json:"home_page" db:"home_page"`
	SchedulePage     nulls.String `json:"schedule_page" db:"schedule_page"`
	SponsorPage      nulls.String `json:"sponsor_page" db:"sponsor_page"`
	CfpPage          nulls.String `json:"cfp_page" db:"cfp_page"`
	RegistrationPage nulls.String `json:"registration_page" db:"registration_page"`
	EventReport      nulls.String `json:"event_report" db:"event_report"`
	Attendance       nulls.Int    `json:"attendance" db:"attendance"`
	LogoName         string       `json:"logo_name" db:"logo_name"`
	Proposals        Proposals    `has_many:"proposals" order_by:"created_at asc"`
	Sponsorships     Sponsorships `has_many:"sponsorships" order_by:"created_at asc"`
}

func (*Event) AfterCreate

func (e *Event) AfterCreate(tx *pop.Connection) error

func (*Event) AfterUpdate

func (e *Event) AfterUpdate(tx *pop.Connection) error

func (Event) SelectLabel

func (e Event) SelectLabel() string

SelectLabel - label for select tag options

func (Event) SelectValue

func (e Event) SelectValue() interface{}

SelectValue - value for select tag options

func (Event) String

func (e Event) String() string

String is not required by pop and may be deleted

func (*Event) Validate

func (e *Event) Validate(tx *pop.Connection) (*validate.Errors, error)

Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.

func (*Event) ValidateCreate

func (e *Event) ValidateCreate(tx *pop.Connection) (*validate.Errors, error)

ValidateCreate gets run every time you call "pop.ValidateAndCreate" method. This method is not required and may be deleted.

func (*Event) ValidateUpdate

func (e *Event) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error)

ValidateUpdate gets run every time you call "pop.ValidateAndUpdate" method. This method is not required and may be deleted.

type Events

type Events []Event

Events is not required by pop and may be deleted

func (Events) String

func (e Events) String() string

String is not required by pop and may be deleted

type Link struct {
	ID          uuid.UUID    `json:"id" db:"id"`
	CreatedAt   time.Time    `json:"created_at" db:"created_at"`
	UpdatedAt   time.Time    `json:"updated_at" db:"updated_at"`
	Name        string       `json:"name" db:"name"`
	Url         string       `json:"url" db:"url"`
	Description nulls.String `json:"description" db:"description"`
	UserID      uuid.UUID    `json:"user_id" db:"user_id"`
	UpdatedBy   uuid.UUID    `json:"updated_by" db:"updated_by"`
}

func (Link) String

func (l Link) String() string

String is not required by pop and may be deleted

func (*Link) Validate

func (l *Link) Validate(tx *pop.Connection) (*validate.Errors, error)

Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.

func (*Link) ValidateCreate

func (l *Link) ValidateCreate(tx *pop.Connection) (*validate.Errors, error)

ValidateCreate gets run every time you call "pop.ValidateAndCreate" method. This method is not required and may be deleted.

func (*Link) ValidateUpdate

func (l *Link) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error)

ValidateUpdate gets run every time you call "pop.ValidateAndUpdate" method. This method is not required and may be deleted.

type Links []Link

Links is not required by pop and may be deleted

func (Links) String

func (l Links) String() string

String is not required by pop and may be deleted

type Proposal

type Proposal struct {
	ID         uuid.UUID `json:"id" db:"id"`
	CreatedAt  time.Time `json:"created_at" db:"created_at"`
	UpdatedAt  time.Time `json:"updated_at" db:"updated_at"`
	UserID     uuid.UUID `json:"user_id" db:"user_id"`
	UpdatedBy  uuid.UUID `json:"updated_by" db:"updated_by"`
	SpeakerID  uuid.UUID `json:"speaker_id" db:"speaker_id"`
	AbstractID uuid.UUID `json:"abstract_id" db:"abstract_id"`
	EventID    uuid.UUID `json:"event_id" db:"event_id"`
	Status     string    `json:"status" db:"status"`
}

func (Proposal) String

func (p Proposal) String() string

String is not required by pop and may be deleted

func (*Proposal) Validate

func (p *Proposal) Validate(tx *pop.Connection) (*validate.Errors, error)

Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.

func (*Proposal) ValidateCreate

func (p *Proposal) ValidateCreate(tx *pop.Connection) (*validate.Errors, error)

ValidateCreate gets run every time you call "pop.ValidateAndCreate" method. This method is not required and may be deleted.

func (*Proposal) ValidateUpdate

func (p *Proposal) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error)

ValidateUpdate gets run every time you call "pop.ValidateAndUpdate" method. This method is not required and may be deleted.

type Proposals

type Proposals []Proposal

Proposals is not required by pop and may be deleted

func (Proposals) String

func (p Proposals) String() string

String is not required by pop and may be deleted

type Sponsorship

type Sponsorship struct {
	ID                  uuid.UUID    `json:"id" db:"id"`
	CreatedAt           time.Time    `json:"created_at" db:"created_at"`
	UpdatedAt           time.Time    `json:"updated_at" db:"updated_at"`
	EventID             uuid.UUID    `json:"event_id" db:"event_id"`
	UserID              uuid.UUID    `json:"user_id" db:"user_id"`
	UpdatedBy           uuid.UUID    `json:"updated_by" db:"updated_by"`
	Status              string       `json:"status" db:"status"`
	Type                nulls.String `json:"type" db:"type"`
	Benefits            nulls.String `json:"benefits" db:"benefits"`
	Costs               nulls.Int    `json:"costs" db:"costs"`
	BudgetQuarter       nulls.String `json:"budget_quarter" db:"budget_quarter"`
	SponsorContactName  nulls.String `json:"sponsor_contact_name" db:"sponsor_contact_name"`
	SponsorContactEmail nulls.String `json:"sponsor_contact_email" db:"sponsor_contact_email"`
	SponsorContactPhone nulls.String `json:"sponsor_contact_phone" db:"sponsor_contact_phone"`
	Staff               nulls.String `json:"staff" db:"staff"`
	RegistrationCode    nulls.String `json:"registration_code" db:"registration_code"`
	Notes               nulls.String `json:"notes" db:"notes"`
}

func (Sponsorship) String

func (s Sponsorship) String() string

String is not required by pop and may be deleted

func (*Sponsorship) Validate

func (s *Sponsorship) Validate(tx *pop.Connection) (*validate.Errors, error)

Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.

func (*Sponsorship) ValidateCreate

func (s *Sponsorship) ValidateCreate(tx *pop.Connection) (*validate.Errors, error)

ValidateCreate gets run every time you call "pop.ValidateAndCreate" method. This method is not required and may be deleted.

func (*Sponsorship) ValidateUpdate

func (s *Sponsorship) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error)

ValidateUpdate gets run every time you call "pop.ValidateAndUpdate" method. This method is not required and may be deleted.

type Sponsorships

type Sponsorships []Sponsorship

Sponsorships is not required by pop and may be deleted

func (Sponsorships) String

func (s Sponsorships) String() string

String is not required by pop and may be deleted

type User

type User struct {
	ID         uuid.UUID    `json:"id" db:"id"`
	CreatedAt  time.Time    `json:"created_at" db:"created_at"`
	UpdatedAt  time.Time    `json:"updated_at" db:"updated_at"`
	Name       string       `json:"name" db:"name"`
	Email      nulls.String `json:"email" db:"email"`
	Provider   string       `json:"provider" db:"provider"`
	ProviderID string       `json:"provider_id" db:"provider_id"`
}

func (User) String

func (u User) String() string

String is not required by pop and may be deleted

func (*User) Validate

func (u *User) Validate(tx *pop.Connection) (*validate.Errors, error)

Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.

func (*User) ValidateCreate

func (u *User) ValidateCreate(tx *pop.Connection) (*validate.Errors, error)

ValidateCreate gets run every time you call "pop.ValidateAndCreate" method. This method is not required and may be deleted.

func (*User) ValidateUpdate

func (u *User) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error)

ValidateUpdate gets run every time you call "pop.ValidateAndUpdate" method. This method is not required and may be deleted.

type Users

type Users []User

Users is not required by pop and may be deleted

func (Users) String

func (u Users) String() string

String is not required by pop and may be deleted

Jump to

Keyboard shortcuts

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