model

package
Version: v0.0.0-...-24b4de3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2018 License: GPL-2.0-only Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Achievement

type Achievement struct {
	ID string `json:"id" select:"id" exists:"id"`

	Title       string `json:"title"       validate:"string.(min=1,max=255)" select:"title"       insert:"title"`
	Description string `json:"description" validate:"string.(min=1,max=255)" select:"description" insert:"description"`
	PictureURL  string `json:"picture_url" validate:"string.(min=1,max=255)" select:"picture_url" insert:"picture_url"`

	InvolvementID int    `json:"involvement_id" validate:"id" select:"involvement_id" insert:"involvement_id"`
	UserID        string `json:"user_id"        validate:"-"  select:"user_id"        insert:"user_id"`

	CreatedAt time.Time `json:"created_at" select:"created_at"`
	UpdatedAt time.Time `json:"updated_at" select:"updated_at"`
	DeletedAt time.Time `json:"deleted_at" select:"deleted_at"`
}

type Auth

type Auth struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type Evidence

type Evidence struct {
	ID string `json:"id" select:"id" exists:"id"`

	Title      string `json:"title"       validate:"string.(min=1,max=255)" select:"title"       insert:"title"`
	PictureURL string `json:"picture_url" validate:"string.(min=1,max=255)" select:"picture_url" insert:"picture_url"`
	URL        string `json:"url"         validate:"string.(min=1,max=255)" select:"url"         insert:"url"`

	MultimediaTypeID int    `json:"multimedia_type_id" validate:"id"   select:"multimedia_type_id" insert:"multimedia_type_id"`
	AchievementID    string `json:"achievement_id"     validate:"uuid" select:"achievement_id"     insert:"achievement_id"`
	UserID           string `json:"user_id"            validate:"-"    select:"user_id"            insert:"user_id"`

	CreatedAt time.Time `json:"created_at" select:"created_at"`
	UpdatedAt time.Time `json:"updated_at" select:"updated_at"`
	DeletedAt time.Time `json:"deleted_at" select:"deleted_at"`
}

type Involvement

type Involvement struct {
	ID uint8 `json:"id" exists:"id"`

	Title string `json:"title"`

	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
	DeletedAt time.Time `json:"deleted_at"`
}

type MultimediaType

type MultimediaType struct {
	ID uint8 `json:"id" exists:"id"`

	Title string `json:"title"`

	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
	DeletedAt time.Time `json:"deleted_at"`
}

type Profile

type Profile struct {
	ID string `json:"id" select:"id" exists:"id"`

	Name   string `json:"name" select:"name" insert:"name"`
	UserID string `json:"-" insert:"user_id"`

	CreatedAt time.Time `json:"created_at" select:"created_at"`
	UpdatedAt time.Time `json:"updated_at" select:"updated_at"`
	DeletedAt time.Time `json:"deleted_at" select:"deleted_at"`
}

type Quest

type Quest struct {
	ID string `json:"id" select:"id" exists:"id"`

	Title      string `json:"title"       validate:"string.(min=1,max=255)" select:"title"       insert:"title"`
	PictureURL string `json:"picture_url" validate:"string.(min=1,max=255)" select:"picture_url" insert:"picture_url"`

	InvolvementID int    `json:"involvement_id" validate:"id" select:"involvement_id" insert:"involvement_id"`
	QuestTypeID   int    `json:"quest_type_id"  validate:"id" select:"quest_type_id"  insert:"quest_type_id"`
	UserID        string `json:"user_id"        validate:"-"  select:"user_id"        insert:"user_id"`

	CreatedAt time.Time `json:"created_at" select:"created_at"`
	UpdatedAt time.Time `json:"updated_at" select:"updated_at"`
	DeletedAt time.Time `json:"deleted_at" select:"deleted_at"`
}

type QuestAchievement

type QuestAchievement struct {
	ID string `json:"id"`

	QuestID       string `json:"quest_id"       validate:"uuid" insert:"quest_id"       exists:"quest_id"`
	AchievementID string `json:"achievement_id" validate:"uuid" insert:"achievement_id" exists:"achievement_id"`
	UserID        string `json:"user_id"        validate:"-"    insert:"user_id"`

	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
	DeletedAt time.Time `json:"deleted_at"`
}

type QuestType

type QuestType struct {
	ID uint8 `json:"id" exists:"id"`

	Title string `json:"title"`

	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
	DeletedAt time.Time `json:"deleted_at"`
}

type Reward

type Reward struct {
	ID string `json:"id" select:"id" exists:"id"`

	Title       string `json:"title"       validate:"string.(min=1,max=255)" select:"title"       insert:"title"`
	Description string `json:"description" validate:"string.(min=1,max=255)" select:"description" insert:"description"`
	PictureURL  string `json:"picture_url" validate:"string.(min=1,max=255)" select:"picture_url" insert:"picture_url"`

	RewardTypeID int    `json:"reward_type_id" validate:"id" select:"reward_type_id" insert:"reward_type_id"`
	UserID       string `json:"user_id"        validate:"-"  select:"user_id"        insert:"user_id"`

	CreatedAt time.Time `json:"created_at" select:"created_at"`
	UpdatedAt time.Time `json:"updated_at" select:"updated_at"`
	DeletedAt time.Time `json:"deleted_at" select:"deleted_at"`
}

type RewardType

type RewardType struct {
	ID uint8 `json:"id" exists:"id"`

	Title string `json:"title"`

	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
	DeletedAt time.Time `json:"deleted_at"`
}

type User

type User struct {
	ID string `json:"id"`

	Email    string `json:"email"`
	Password string `json:"password"`

	StatusID uint8 `json:"status_id"`

	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
	DeletedAt time.Time `json:"deleted_at"`
}

Jump to

Keyboard shortcuts

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