tables

package
v0.0.0-...-64c38a7 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package tables /**

Package tables /**

Package tables /**

Package mysql /**

Package tables /**

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalTime

type LocalTime time.Time

func (LocalTime) MarshalJSON

func (t LocalTime) MarshalJSON() ([]byte, error)

func (*LocalTime) Scan

func (t *LocalTime) Scan(v interface{}) error

func (*LocalTime) String

func (t *LocalTime) String() string

func (*LocalTime) UnmarshalJSON

func (t *LocalTime) UnmarshalJSON(data []byte) error

func (LocalTime) Value

func (t LocalTime) Value() (driver.Value, error)

type Quickswap

type Quickswap struct {
	ID            int       `json:"id"`
	Token0Symbol  string    `gorm:"type:varchar(32)" json:"token0symbol"`
	Token0Name    string    `gorm:"type:varchar(128)" json:"token0name"`
	Token0Address string    `gorm:"type:varchar(64)" json:"token0address"`
	Token1Symbol  string    `gorm:"type:varchar(32)" json:"token1symbol"`
	Token1Name    string    `gorm:"type:varchar(128)" json:"token1name"`
	Token1Address string    `gorm:"type:varchar(64)" json:"token1address"`
	PairAddress   string    `gorm:"type:varchar(64)" json:"address" gorm:"primary_key"`
	CreateTime    time.Time `gorm:"column:create_time; type:TIMESTAMP;default:CURRENT_TIMESTAMP;<-:create" json:"createtime,omitempty"`
	UpdateTime    time.Time `gorm:"column:update_time; type:TIMESTAMP;default:CURRENT_TIMESTAMP on update current_timestamp" json:"updatetime,omitempty"`
}

func (Quickswap) TableName

func (Quickswap) TableName() string

type SamePairs

type SamePairs struct {
	ID            int    `json:"id"`
	Token0Symbol  string `gorm:"type:varchar(32)" json:"token0symbol"`
	Token0Name    string `gorm:"type:varchar(128)" json:"token0name"`
	Token0Address string `gorm:"type:varchar(64)" json:"token0address"`
	PairAddress0  string `gorm:"type:varchar(64)" json:"address0"`
	Protocol0     string `gorm:"type:varchar(32)" json:"protocol0"`

	Token1Symbol  string `gorm:"type:varchar(32)" json:"token1symbol"`
	Token1Name    string `gorm:"type:varchar(128)" json:"token1name"`
	Token1Address string `gorm:"type:varchar(64)" json:"token1address"`
	PairAddress1  string `gorm:"type:varchar(64)" json:"address1"`
	Protocol1     string `gorm:"type:varchar(32)" json:"protocol1"`

	CreateTime time.Time `gorm:"column:create_time; type:TIMESTAMP;default:CURRENT_TIMESTAMP;<-:create" json:"createtime,omitempty"`
	UpdateTime time.Time `gorm:"column:update_time; type:TIMESTAMP;default:CURRENT_TIMESTAMP on update current_timestamp" json:"updatetime,omitempty"`
}

func (SamePairs) TableName

func (SamePairs) TableName() string

type Sushiswap

type Sushiswap struct {
	ID            int       `json:"id"`
	Token0Symbol  string    `gorm:"type:varchar(32)" json:"token0symbol"`
	Token0Name    string    `gorm:"type:varchar(128)" json:"token0name"`
	Token0Address string    `gorm:"type:varchar(64)" json:"token0address"`
	Token1Symbol  string    `gorm:"type:varchar(32)" json:"token1symbol"`
	Token1Name    string    `gorm:"type:varchar(128)" json:"token1name"`
	Token1Address string    `gorm:"type:varchar(64)" json:"token1address"`
	PairAddress   string    `gorm:"type:varchar(64)" json:"address" gorm:"primary_key"`
	CreateTime    time.Time `gorm:"column:createtime; type:TIMESTAMP;default:CURRENT_TIMESTAMP;<-:create" json:"createtime,omitempty"`
	UpdateTime    time.Time `gorm:"column:updatetime; type:TIMESTAMP;default:CURRENT_TIMESTAMP on update current_timestamp" json:"updatetime,omitempty"`
}

func (Sushiswap) TableName

func (Sushiswap) TableName() string

type Uniswap3

type Uniswap3 struct {
	Symbol     string    `json:"symbol"`
	Name       string    `json:"name"`
	Address    string    `json:"address" gorm:"primary_key"`
	CreateTime time.Time `json:"createtime"`
	UpdateTime time.Time `json:"updatetime"`
}

func (Uniswap3) TableName

func (Uniswap3) TableName() string

Jump to

Keyboard shortcuts

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