model

package
v0.0.0-...-a5fc328 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vote

type Vote struct {
	ID        uint       `gorm:"primary_key" json:"-"`
	UserID    uuid.UUID  `gorm:"type:uuid;column:user_id;not null;" json:"-"`
	Type      VoteType   `json:"type"`
	Hash      string     `json:"hash"`
	Choice    VoteChoice `json:"vote"`
	CreatedAt *time.Time `json:"_"`
	UpdatedAt *time.Time `json:"_"`
	Committed bool       `json:"committed"`
}

type VoteChoice

type VoteChoice string

type VoteType

type VoteType string
const (
	VoteTypeProposal       VoteType = "PROPOSAL"
	VoteTypePaymentRequest VoteType = "PAYMENT_REQUEST"
)

Jump to

Keyboard shortcuts

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