models

package
v0.0.0-...-47e773c Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attendee

type Attendee struct {
	ID            uuid.UUID `db:"id" json:"id" validate:"required,uuid"`
	CreatedAt     time.Time `db:"created_at" json:"created_at"`
	UpdatedAt     time.Time `db:"updated_at" json:"updated_at"`
	Username      string    `db:"username" json:"username"`
	Email         string    `db:"email" json:"email"`
	Attendee_Type string    `db:"attendee_type" json:"attendee_type"`
	Talk_id       uuid.UUID `db:"talk_id" json:"talk_id"`
}

func (*Attendee) Scan

func (b *Attendee) Scan(value interface{}) error

func (Attendee) Value

func (b Attendee) Value() (driver.Value, error)

type Conference

type Conference struct {
	ID          uuid.UUID `db:"id" json:"id" validate:"required,uuid"`
	CreatedAt   time.Time `db:"created_at" json:"created_at"`
	UpdatedAt   time.Time `db:"updated_at" json:"updated_at"`
	Title       string    `db:"title" json:"title"`
	Description string    `db:"description" json:"description"`
	Start_Date  time.Time `db:"start_date" json:"start_date"`
	End_Date    time.Time `db:"end_date" json:"end_date"`
}

func (*Conference) Scan

func (b *Conference) Scan(value interface{}) error

func (Conference) Value

func (b Conference) Value() (driver.Value, error)

type Edit

type Edit struct {
	ID            uuid.UUID `db:"id" json:"id" validate:"required,uuid"`
	CreatedAt     time.Time `db:"created_at" json:"created_at"`
	UpdatedAt     time.Time `db:"updated_at" json:"updated_at"`
	PreviousState []byte    `db:"previousState"`
	CurrentState  []byte    `db:"currentState"`
	EditType      string    `db:"edit_type" json:"edit_type"`
	EditTargetID  uuid.UUID `db:"edit_target_id" json:"edit_target_id"`
}

func (*Edit) Scan

func (b *Edit) Scan(value interface{}) error

func (Edit) Value

func (b Edit) Value() (driver.Value, error)

type Talk

type Talk struct {
	ID             uuid.UUID `db:"id" json:"id" validate:"required,uuid"`
	CreatedAt      time.Time `db:"created_at" json:"created_at"`
	UpdatedAt      time.Time `db:"updated_at" json:"updated_at"`
	Title          string    `db:"title" json:"title"`
	Description    string    `db:"description" json:"description"`
	Scheduled_Date time.Time `db:"scheduled_date" json:"scheduled_date"`
	Duration       int       `db:"duration" json:"duration"`
	Conference_ID  uuid.UUID `db:"conferenceId" json:"conferenceId"`
}

func (*Talk) Scan

func (b *Talk) Scan(value interface{}) error

func (Talk) Value

func (b Talk) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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