model

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameTransaction = "transaction"
View Source
const TableNameVerifier = "verifier"

Variables

This section is empty.

Functions

This section is empty.

Types

type Transaction

type Transaction struct {
	ID        *int64  `gorm:"column:id;type:bigint(20)" json:"id"`
	Hash      *string `gorm:"column:hash;type:varchar(100)" json:"hash"`
	Status    *int64  `gorm:"column:status;type:tinyint(4)" json:"status"`
	UpdatedAt *int64  `gorm:"column:updated_at;type:int(11)" json:"updated_at"`
	CreatedAt *int64  `gorm:"column:created_at;type:int(11)" json:"created_at"`
}

Transaction mapped from table <transaction>

func (*Transaction) TableName

func (*Transaction) TableName() string

TableName Transaction's table name

type Verifier

type Verifier struct {
	ID            int32     `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	AttestationID string    `gorm:"column:attestation_id;not null" json:"attestation_id"`
	CampaignID    string    `gorm:"column:campaign_id;not null" json:"campaign_id"`
	BlockNumber   int32     `gorm:"column:block_number;not null" json:"block_number"`
	Address       string    `gorm:"column:address;not null" json:"address"`
	TxHash        string    `gorm:"column:tx_hash;not null" json:"tx_hash"`
	Status        string    `gorm:"column:status;not null" json:"status"`
	CreateTime    time.Time `gorm:"column:create_time;not null;default:CURRENT_TIMESTAMP" json:"create_time"`
	UpdateTime    time.Time `gorm:"column:update_time;not null;default:CURRENT_TIMESTAMP" json:"update_time"`
}

Verifier mapped from table <verifier>

func (*Verifier) TableName

func (*Verifier) TableName() string

TableName Verifier's table name

Jump to

Keyboard shortcuts

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