model

package
v0.0.0-...-0f1a4ea Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Create action when record is created
	Create = Action(0)

	// RetrieveOne action when a record is retrieved from db
	RetrieveOne = Action(1)

	// RetrieveMany action when record(s) are retrieved from db
	RetrieveMany = Action(2)

	// Update action when record is updated in db
	Update = Action(3)

	// Delete action when record is deleted in db
	Delete = Action(4)

	// FetchDDL action when fetching ddl info from db
	FetchDDL = Action(5)
)

Functions

This section is empty.

Types

type Action

type Action int32

Action CRUD actions

func (Action) String

func (i Action) String() string

String describe the action

type ColumnInfo

type ColumnInfo struct {
	Index              int    `json:"index"`
	GoFieldName        string `json:"goFieldName"`
	GoFieldType        string `json:"goFieldType"`
	JSONFieldName      string `json:"jsonFieldName"`
	ProtobufFieldName  string `json:"protobufFieldName"`
	ProtobufType       string `json:"protobufFieldType"`
	ProtobufPos        int    `json:"protobufFieldPos"`
	Comment            string `json:"comment"`
	Notes              string `json:"notes"`
	Name               string `json:"name"`
	Nullable           bool   `json:"isNullable"`
	DatabaseTypeName   string `json:"databaseTypeName"`
	DatabaseTypePretty string `json:"databaseTypePretty"`
	IsPrimaryKey       bool   `json:"isPrimaryKey"`
	IsAutoIncrement    bool   `json:"isAutoIncrement"`
	IsArray            bool   `json:"isArray"`
	ColumnType         string `json:"columnType"`
	ColumnLength       int64  `json:"columnLength"`
	DefaultValue       string `json:"defaultValue"`
}

ColumnInfo describes a column in the database table

type ContentDealLogs

type ContentDealLogs struct {
	//[ 0] id                                             INT8                 null: false  primary: true   isArray: false  auto: false  col: INT8            len: -1      default: []
	ID int64 `gorm:"primary_key;column:id;type:INT8;"`
	//[ 1] content                                        INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	Content null.Int `gorm:"column:content;type:INT8;"`
	//[ 2] prop_cid                                       TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	PropCid null.String `gorm:"column:prop_cid;type:TEXT;"`
	//[ 3] deal_uuid                                      TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	DealUUID null.String `gorm:"column:deal_uuid;type:TEXT;"`
	//[ 4] miner                                          TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	Miner null.String `gorm:"column:miner;type:TEXT;"`
	//[ 5] deal_id                                        INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	DealID null.Int `gorm:"column:deal_id;type:INT8;"`
	//[ 6] failed                                         BOOL                 null: true   primary: false  isArray: false  auto: false  col: BOOL            len: -1      default: []
	Failed null.Int `gorm:"column:failed;type:BOOL;"`
	//[ 7] verified                                       BOOL                 null: true   primary: false  isArray: false  auto: false  col: BOOL            len: -1      default: []
	Verified null.Int `gorm:"column:verified;type:BOOL;"`
	//[ 8] slashed                                        BOOL                 null: true   primary: false  isArray: false  auto: false  col: BOOL            len: -1      default: []
	Slashed null.Int `gorm:"column:slashed;type:BOOL;"`
	//[ 9] failed_at                                      TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	FailedAt null.Time `gorm:"column:failed_at;type:TIMESTAMPTZ;"`
	//[10] dt_chan                                        TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	DtChan null.String `gorm:"column:dt_chan;type:TEXT;"`
	//[11] transfer_started                               TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	TransferStarted null.Time `gorm:"column:transfer_started;type:TIMESTAMPTZ;"`
	//[12] transfer_finished                              TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	TransferFinished null.Time `gorm:"column:transfer_finished;type:TIMESTAMPTZ;"`
	//[13] on_chain_at                                    TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	OnChainAt null.Time `gorm:"column:on_chain_at;type:TIMESTAMPTZ;"`
	//[14] sealed_at                                      TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	SealedAt null.Time `gorm:"column:sealed_at;type:TIMESTAMPTZ;"`
	//[15] last_message                                   TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	LastMessage null.String `gorm:"column:last_message;type:TEXT;"`
	//[16] deal_protocol_version                          TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	DealProtocolVersion null.String `gorm:"column:deal_protocol_version;type:TEXT;"`
	//[17] miner_version                                  TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	MinerVersion null.String `gorm:"column:miner_version;type:TEXT;"`
	//[18] node_info                                      TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	NodeInfo null.String `gorm:"column:node_info;type:TEXT;"`
	//[19] requester_info                                 TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	RequesterInfo null.String `gorm:"column:requester_info;type:TEXT;"`
	//[20] requesting_api_key                             TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	RequestingAPIKey null.String `gorm:"column:requesting_api_key;type:TEXT;"`
	//[21] system_content_deal_id                         INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	SystemContentDealID null.Int `gorm:"column:system_content_deal_id;type:INT8;"`
	//[22] created_at                                     TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	CreatedAt null.Time `gorm:"column:created_at;type:TIMESTAMPTZ;"`
	//[23] updated_at                                     TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	UpdatedAt null.Time `gorm:"column:updated_at;type:TIMESTAMPTZ;"`
	//[24] delta_node_uuid                                TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	DeltaNodeUUID null.String `gorm:"column:delta_node_uuid;type:TEXT;"`
}

ContentDealLogs struct is a row record of the content_deal_logs table in the estuary database

func (*ContentDealLogs) BeforeSave

func (c *ContentDealLogs) BeforeSave() error

BeforeSave invoked before saving, return an error if field is not populated.

func (*ContentDealLogs) Prepare

func (c *ContentDealLogs) Prepare()

Prepare invoked before saving, can be used to populate fields etc.

func (*ContentDealLogs) TableInfo

func (c *ContentDealLogs) TableInfo() *TableInfo

TableInfo return table meta data

func (*ContentDealLogs) TableName

func (c *ContentDealLogs) TableName() string

TableName sets the insert table name for this struct type

func (*ContentDealLogs) Validate

func (c *ContentDealLogs) Validate(action Action) error

Validate invoked before performing action, return an error if field is not populated.

type ContentDealProposalLogs

type ContentDealProposalLogs struct {
	//[ 0] id                                             INT8                 null: false  primary: true   isArray: false  auto: false  col: INT8            len: -1      default: []
	ID int64 `gorm:"primary_key;column:id;type:INT8;"`
	//[ 1] content                                        INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	Content null.Int `gorm:"column:content;type:INT8;"`
	//[ 2] unsigned                                       TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	Unsigned null.String `gorm:"column:unsigned;type:TEXT;"`
	//[ 3] signed                                         TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	Signed null.String `gorm:"column:signed;type:TEXT;"`
	//[ 4] meta                                           TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	Meta null.String `gorm:"column:meta;type:TEXT;"`
	//[ 5] node_info                                      TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	NodeInfo null.String `gorm:"column:node_info;type:TEXT;"`
	//[ 6] requester_info                                 TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	RequesterInfo null.String `gorm:"column:requester_info;type:TEXT;"`
	//[ 7] requesting_api_key                             TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	RequestingAPIKey null.String `gorm:"column:requesting_api_key;type:TEXT;"`
	//[ 8] system_content_deal_proposal_id                INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	SystemContentDealProposalID null.Int `gorm:"column:system_content_deal_proposal_id;type:INT8;"`
	//[ 9] created_at                                     TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	CreatedAt null.Time `gorm:"column:created_at;type:TIMESTAMPTZ;"`
	//[10] updated_at                                     TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	UpdatedAt null.Time `gorm:"column:updated_at;type:TIMESTAMPTZ;"`
	//[11] delta_node_uuid                                TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	DeltaNodeUUID null.String `gorm:"column:delta_node_uuid;type:TEXT;"`
}

ContentDealProposalLogs struct is a row record of the content_deal_proposal_logs table in the estuary database

func (*ContentDealProposalLogs) BeforeSave

func (c *ContentDealProposalLogs) BeforeSave() error

BeforeSave invoked before saving, return an error if field is not populated.

func (*ContentDealProposalLogs) Prepare

func (c *ContentDealProposalLogs) Prepare()

Prepare invoked before saving, can be used to populate fields etc.

func (*ContentDealProposalLogs) TableInfo

func (c *ContentDealProposalLogs) TableInfo() *TableInfo

TableInfo return table meta data

func (*ContentDealProposalLogs) TableName

func (c *ContentDealProposalLogs) TableName() string

TableName sets the insert table name for this struct type

func (*ContentDealProposalLogs) Validate

func (c *ContentDealProposalLogs) Validate(action Action) error

Validate invoked before performing action, return an error if field is not populated.

type ContentDealProposalParametersLogs

type ContentDealProposalParametersLogs struct {
	//[ 0] id                                             INT8                 null: false  primary: true   isArray: false  auto: false  col: INT8            len: -1      default: []
	ID int64 `gorm:"primary_key;column:id;type:INT8;"`
	//[ 1] content                                        INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	Content null.Int `gorm:"column:content;type:INT8;"`
	//[ 2] label                                          TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	Label null.String `gorm:"column:label;type:TEXT;"`
	//[ 3] duration                                       INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	Duration null.Int `gorm:"column:duration;type:INT8;"`
	//[ 4] start_epoch                                    INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	StartEpoch null.Int `gorm:"column:start_epoch;type:INT8;"`
	//[ 5] end_epoch                                      INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	EndEpoch null.Int `gorm:"column:end_epoch;type:INT8;"`
	//[ 6] transfer_params                                TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	TransferParams null.String `gorm:"column:transfer_params;type:TEXT;"`
	//[ 7] remove_unsealed_copy                           BOOL                 null: true   primary: false  isArray: false  auto: false  col: BOOL            len: -1      default: []
	RemoveUnsealedCopy null.Int `gorm:"column:remove_unsealed_copy;type:BOOL;"`
	//[ 8] skip_ip_ni_announce                            BOOL                 null: true   primary: false  isArray: false  auto: false  col: BOOL            len: -1      default: []
	SkipIPNiAnnounce null.Int `gorm:"column:skip_ip_ni_announce;type:BOOL;"`
	//[ 9] node_info                                      TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	NodeInfo null.String `gorm:"column:node_info;type:TEXT;"`
	//[10] requester_info                                 TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	RequesterInfo null.String `gorm:"column:requester_info;type:TEXT;"`
	//[11] requesting_api_key                             TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	RequestingAPIKey null.String `gorm:"column:requesting_api_key;type:TEXT;"`
	//[12] system_content_deal_proposal_parameters_id     INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	SystemContentDealProposalParametersID null.Int `gorm:"column:system_content_deal_proposal_parameters_id;type:INT8;"`
	//[13] created_at                                     TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	CreatedAt null.Time `gorm:"column:created_at;type:TIMESTAMPTZ;"`
	//[14] updated_at                                     TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	UpdatedAt null.Time `gorm:"column:updated_at;type:TIMESTAMPTZ;"`
	//[15] delta_node_uuid                                TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	DeltaNodeUUID null.String `gorm:"column:delta_node_uuid;type:TEXT;"`
}

ContentDealProposalParametersLogs struct is a row record of the content_deal_proposal_parameters_logs table in the estuary database

func (*ContentDealProposalParametersLogs) BeforeSave

func (c *ContentDealProposalParametersLogs) BeforeSave() error

BeforeSave invoked before saving, return an error if field is not populated.

func (*ContentDealProposalParametersLogs) Prepare

func (c *ContentDealProposalParametersLogs) Prepare()

Prepare invoked before saving, can be used to populate fields etc.

func (*ContentDealProposalParametersLogs) TableInfo

TableInfo return table meta data

func (*ContentDealProposalParametersLogs) TableName

TableName sets the insert table name for this struct type

func (*ContentDealProposalParametersLogs) Validate

func (c *ContentDealProposalParametersLogs) Validate(action Action) error

Validate invoked before performing action, return an error if field is not populated.

type ContentLogs

type ContentLogs struct {
	//[ 0] id                                             INT8                 null: false  primary: true   isArray: false  auto: false  col: INT8            len: -1      default: []
	ID int64 `gorm:"primary_key;column:id;type:INT8;"`
	//[ 1] name                                           TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	Name null.String `gorm:"column:name;type:TEXT;"`
	//[ 2] size                                           INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	Size null.Int `gorm:"column:size;type:INT8;"`
	//[ 3] cid                                            TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	Cid null.String `gorm:"column:cid;type:TEXT;"`
	//[ 4] requesting_api_key                             TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	RequestingAPIKey null.String `gorm:"column:requesting_api_key;type:TEXT;"`
	//[ 5] piece_commitment_id                            INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	PieceCommitmentID null.Int `gorm:"column:piece_commitment_id;type:INT8;"`
	//[ 6] status                                         TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	Status null.String `gorm:"column:status;type:TEXT;"`
	//[ 7] connection_mode                                TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	ConnectionMode null.String `gorm:"column:connection_mode;type:TEXT;"`
	//[ 8] last_message                                   TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	LastMessage null.String `gorm:"column:last_message;type:TEXT;"`
	//[ 9] node_info                                      TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	NodeInfo null.String `gorm:"column:node_info;type:TEXT;"`
	//[10] requester_info                                 TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	RequesterInfo null.String `gorm:"column:requester_info;type:TEXT;"`
	//[11] system_content_id                              INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	SystemContentID null.Int `gorm:"column:system_content_id;type:INT8;"`
	//[12] created_at                                     TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	CreatedAt null.Time `gorm:"column:created_at;type:TIMESTAMPTZ;"`
	//[13] updated_at                                     TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	UpdatedAt null.Time `gorm:"column:updated_at;type:TIMESTAMPTZ;"`
	//[14] delta_node_uuid                                TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	DeltaNodeUUID null.String `gorm:"column:delta_node_uuid;type:TEXT;"`
}

ContentLogs struct is a row record of the content_logs table in the estuary database

func (*ContentLogs) BeforeSave

func (c *ContentLogs) BeforeSave() error

BeforeSave invoked before saving, return an error if field is not populated.

func (*ContentLogs) Prepare

func (c *ContentLogs) Prepare()

Prepare invoked before saving, can be used to populate fields etc.

func (*ContentLogs) TableInfo

func (c *ContentLogs) TableInfo() *TableInfo

TableInfo return table meta data

func (*ContentLogs) TableName

func (c *ContentLogs) TableName() string

TableName sets the insert table name for this struct type

func (*ContentLogs) Validate

func (c *ContentLogs) Validate(action Action) error

Validate invoked before performing action, return an error if field is not populated.

type ContentMinerLogs

type ContentMinerLogs struct {
	//[ 0] id                                             INT8                 null: false  primary: true   isArray: false  auto: false  col: INT8            len: -1      default: []
	ID int64 `gorm:"primary_key;column:id;type:INT8;"`
	//[ 1] content                                        INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	Content null.Int `gorm:"column:content;type:INT8;"`
	//[ 2] miner                                          TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	Miner null.String `gorm:"column:miner;type:TEXT;"`
	//[ 3] node_info                                      TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	NodeInfo null.String `gorm:"column:node_info;type:TEXT;"`
	//[ 4] requester_info                                 TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	RequesterInfo null.String `gorm:"column:requester_info;type:TEXT;"`
	//[ 5] requesting_api_key                             TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	RequestingAPIKey null.String `gorm:"column:requesting_api_key;type:TEXT;"`
	//[ 6] system_content_miner_id                        INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	SystemContentMinerID null.Int `gorm:"column:system_content_miner_id;type:INT8;"`
	//[ 7] created_at                                     TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	CreatedAt null.Time `gorm:"column:created_at;type:TIMESTAMPTZ;"`
	//[ 8] updated_at                                     TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	UpdatedAt null.Time `gorm:"column:updated_at;type:TIMESTAMPTZ;"`
	//[ 9] delta_node_uuid                                TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	DeltaNodeUUID null.String `gorm:"column:delta_node_uuid;type:TEXT;"`
}

ContentMinerLogs struct is a row record of the content_miner_logs table in the estuary database

func (*ContentMinerLogs) BeforeSave

func (c *ContentMinerLogs) BeforeSave() error

BeforeSave invoked before saving, return an error if field is not populated.

func (*ContentMinerLogs) Prepare

func (c *ContentMinerLogs) Prepare()

Prepare invoked before saving, can be used to populate fields etc.

func (*ContentMinerLogs) TableInfo

func (c *ContentMinerLogs) TableInfo() *TableInfo

TableInfo return table meta data

func (*ContentMinerLogs) TableName

func (c *ContentMinerLogs) TableName() string

TableName sets the insert table name for this struct type

func (*ContentMinerLogs) Validate

func (c *ContentMinerLogs) Validate(action Action) error

Validate invoked before performing action, return an error if field is not populated.

type ContentWalletLogs

type ContentWalletLogs struct {
	//[ 0] id                                             INT8                 null: false  primary: true   isArray: false  auto: false  col: INT8            len: -1      default: []
	ID int64 `gorm:"primary_key;column:id;type:INT8;"`
	//[ 1] content                                        INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	Content null.Int `gorm:"column:content;type:INT8;"`
	//[ 2] wallet                                         TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	Wallet null.String `gorm:"column:wallet;type:TEXT;"`
	//[ 3] node_info                                      TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	NodeInfo null.String `gorm:"column:node_info;type:TEXT;"`
	//[ 4] requester_info                                 TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	RequesterInfo null.String `gorm:"column:requester_info;type:TEXT;"`
	//[ 5] requesting_api_key                             TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	RequestingAPIKey null.String `gorm:"column:requesting_api_key;type:TEXT;"`
	//[ 6] system_content_wallet_id                       INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	SystemContentWalletID null.Int `gorm:"column:system_content_wallet_id;type:INT8;"`
	//[ 7] created_at                                     TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	CreatedAt null.Time `gorm:"column:created_at;type:TIMESTAMPTZ;"`
	//[ 8] updated_at                                     TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	UpdatedAt null.Time `gorm:"column:updated_at;type:TIMESTAMPTZ;"`
	//[ 9] delta_node_uuid                                TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	DeltaNodeUUID null.String `gorm:"column:delta_node_uuid;type:TEXT;"`
	//[10] wallet_id                                      INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	WalletID null.Int `gorm:"column:wallet_id;type:INT8;"`
}

ContentWalletLogs struct is a row record of the content_wallet_logs table in the estuary database

func (*ContentWalletLogs) BeforeSave

func (c *ContentWalletLogs) BeforeSave() error

BeforeSave invoked before saving, return an error if field is not populated.

func (*ContentWalletLogs) Prepare

func (c *ContentWalletLogs) Prepare()

Prepare invoked before saving, can be used to populate fields etc.

func (*ContentWalletLogs) TableInfo

func (c *ContentWalletLogs) TableInfo() *TableInfo

TableInfo return table meta data

func (*ContentWalletLogs) TableName

func (c *ContentWalletLogs) TableName() string

TableName sets the insert table name for this struct type

func (*ContentWalletLogs) Validate

func (c *ContentWalletLogs) Validate(action Action) error

Validate invoked before performing action, return an error if field is not populated.

type DeltaNodeGeoLocations

type DeltaNodeGeoLocations struct {
	//[ 0] id                                             INT8                 null: false  primary: true   isArray: false  auto: false  col: INT8            len: -1      default: []
	ID int64 `gorm:"primary_key;column:id;type:INT8;"`
	//[ 1] ip                                             TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	IP null.String `gorm:"column:ip;type:TEXT;"`
	//[ 2] country                                        TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	Country null.String `gorm:"column:country;type:TEXT;"`
	//[ 3] city                                           TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	City null.String `gorm:"column:city;type:TEXT;"`
	//[ 4] region                                         TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	Region null.String `gorm:"column:region;type:TEXT;"`
	//[ 5] zip                                            TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	Zip null.String `gorm:"column:zip;type:TEXT;"`
	//[ 6] lat                                            NUMERIC              null: true   primary: false  isArray: false  auto: false  col: NUMERIC         len: -1      default: []
	Lat null.Float `gorm:"column:lat;type:NUMERIC;"`
	//[ 7] lon                                            NUMERIC              null: true   primary: false  isArray: false  auto: false  col: NUMERIC         len: -1      default: []
	Lon null.Float `gorm:"column:lon;type:NUMERIC;"`
	//[ 8] created_at                                     TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	CreatedAt null.Time `gorm:"column:created_at;type:TIMESTAMPTZ;"`
	//[ 9] updated_at                                     TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	UpdatedAt null.Time `gorm:"column:updated_at;type:TIMESTAMPTZ;"`
}

DeltaNodeGeoLocations struct is a row record of the delta_node_geo_locations table in the estuary database

func (*DeltaNodeGeoLocations) BeforeSave

func (d *DeltaNodeGeoLocations) BeforeSave() error

BeforeSave invoked before saving, return an error if field is not populated.

func (*DeltaNodeGeoLocations) Prepare

func (d *DeltaNodeGeoLocations) Prepare()

Prepare invoked before saving, can be used to populate fields etc.

func (*DeltaNodeGeoLocations) TableInfo

func (d *DeltaNodeGeoLocations) TableInfo() *TableInfo

TableInfo return table meta data

func (*DeltaNodeGeoLocations) TableName

func (d *DeltaNodeGeoLocations) TableName() string

TableName sets the insert table name for this struct type

func (*DeltaNodeGeoLocations) Validate

func (d *DeltaNodeGeoLocations) Validate(action Action) error

Validate invoked before performing action, return an error if field is not populated.

type DeltaStartupLogs

type DeltaStartupLogs struct {
	//[ 0] id                                             INT8                 null: false  primary: true   isArray: false  auto: false  col: INT8            len: -1      default: []
	ID int64 `gorm:"primary_key;column:id;type:INT8;"`
	//[ 1] node_info                                      TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	NodeInfo null.String `gorm:"column:node_info;type:TEXT;"`
	//[ 2] os_details                                     TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	OsDetails null.String `gorm:"column:os_details;type:TEXT;"`
	//[ 3] ip_address                                     TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	IPAddress null.String `gorm:"column:ip_address;type:TEXT;"`
	//[ 4] created_at                                     TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	CreatedAt null.Time `gorm:"column:created_at;type:TIMESTAMPTZ;"`
	//[ 5] updated_at                                     TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	UpdatedAt null.Time `gorm:"column:updated_at;type:TIMESTAMPTZ;"`
	//[ 6] delta_node_uuid                                TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	DeltaNodeUUID null.String `gorm:"column:delta_node_uuid;type:TEXT;"`
}

DeltaStartupLogs struct is a row record of the delta_startup_logs table in the estuary database

func (*DeltaStartupLogs) BeforeSave

func (d *DeltaStartupLogs) BeforeSave() error

BeforeSave invoked before saving, return an error if field is not populated.

func (*DeltaStartupLogs) Prepare

func (d *DeltaStartupLogs) Prepare()

Prepare invoked before saving, can be used to populate fields etc.

func (*DeltaStartupLogs) TableInfo

func (d *DeltaStartupLogs) TableInfo() *TableInfo

TableInfo return table meta data

func (*DeltaStartupLogs) TableName

func (d *DeltaStartupLogs) TableName() string

TableName sets the insert table name for this struct type

func (*DeltaStartupLogs) Validate

func (d *DeltaStartupLogs) Validate(action Action) error

Validate invoked before performing action, return an error if field is not populated.

type InstanceMetaLogs

type InstanceMetaLogs struct {
	//[ 0] id                                             INT8                 null: false  primary: true   isArray: false  auto: false  col: INT8            len: -1      default: []
	ID int64 `gorm:"primary_key;column:id;type:INT8;"`
	//[ 1] instance_uuid                                  TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	InstanceUUID null.String `gorm:"column:instance_uuid;type:TEXT;"`
	//[ 2] instance_host_name                             TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	InstanceHostName null.String `gorm:"column:instance_host_name;type:TEXT;"`
	//[ 3] instance_node_name                             TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	InstanceNodeName null.String `gorm:"column:instance_node_name;type:TEXT;"`
	//[ 4] os_details                                     TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	OsDetails null.String `gorm:"column:os_details;type:TEXT;"`
	//[ 5] public_ip                                      TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	PublicIP null.String `gorm:"column:public_ip;type:TEXT;"`
	//[ 6] memory_limit                                   INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	MemoryLimit null.Int `gorm:"column:memory_limit;type:INT8;"`
	//[ 7] cpu_limit                                      INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	CPULimit null.Int `gorm:"column:cpu_limit;type:INT8;"`
	//[ 8] storage_limit                                  INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	StorageLimit null.Int `gorm:"column:storage_limit;type:INT8;"`
	//[ 9] disable_request                                BOOL                 null: true   primary: false  isArray: false  auto: false  col: BOOL            len: -1      default: []
	DisableRequest null.Int `gorm:"column:disable_request;type:BOOL;"`
	//[10] disable_commitment_piece_generation            BOOL                 null: true   primary: false  isArray: false  auto: false  col: BOOL            len: -1      default: []
	DisableCommitmentPieceGeneration null.Int `gorm:"column:disable_commitment_piece_generation;type:BOOL;"`
	//[11] disable_storage_deal                           BOOL                 null: true   primary: false  isArray: false  auto: false  col: BOOL            len: -1      default: []
	DisableStorageDeal null.Int `gorm:"column:disable_storage_deal;type:BOOL;"`
	//[12] disable_online_deals                           BOOL                 null: true   primary: false  isArray: false  auto: false  col: BOOL            len: -1      default: []
	DisableOnlineDeals null.Int `gorm:"column:disable_online_deals;type:BOOL;"`
	//[13] disable_offline_deals                          BOOL                 null: true   primary: false  isArray: false  auto: false  col: BOOL            len: -1      default: []
	DisableOfflineDeals null.Int `gorm:"column:disable_offline_deals;type:BOOL;"`
	//[14] number_of_cpus                                 INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	NumberOfCpus null.Int `gorm:"column:number_of_cpus;type:INT8;"`
	//[15] storage_in_bytes                               INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	StorageInBytes null.Int `gorm:"column:storage_in_bytes;type:INT8;"`
	//[16] system_memory                                  INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	SystemMemory null.Int `gorm:"column:system_memory;type:INT8;"`
	//[17] heap_memory                                    INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	HeapMemory null.Int `gorm:"column:heap_memory;type:INT8;"`
	//[18] heap_in_use                                    INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	HeapInUse null.Int `gorm:"column:heap_in_use;type:INT8;"`
	//[19] stack_in_use                                   INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	StackInUse null.Int `gorm:"column:stack_in_use;type:INT8;"`
	//[20] instance_start                                 TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	InstanceStart null.Time `gorm:"column:instance_start;type:TIMESTAMPTZ;"`
	//[21] bytes_per_cpu                                  INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	BytesPerCPU null.Int `gorm:"column:bytes_per_cpu;type:INT8;"`
	//[22] node_info                                      TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	NodeInfo null.String `gorm:"column:node_info;type:TEXT;"`
	//[23] requester_info                                 TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	RequesterInfo null.String `gorm:"column:requester_info;type:TEXT;"`
	//[24] delta_node_uuid                                TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	DeltaNodeUUID null.String `gorm:"column:delta_node_uuid;type:TEXT;"`
	//[25] system_instance_meta_id                        INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	SystemInstanceMetaID null.Int `gorm:"column:system_instance_meta_id;type:INT8;"`
	//[26] created_at                                     TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	CreatedAt null.Time `gorm:"column:created_at;type:TIMESTAMPTZ;"`
	//[27] updated_at                                     TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	UpdatedAt null.Time `gorm:"column:updated_at;type:TIMESTAMPTZ;"`
}

InstanceMetaLogs struct is a row record of the instance_meta_logs table in the estuary database

func (*InstanceMetaLogs) BeforeSave

func (i *InstanceMetaLogs) BeforeSave() error

BeforeSave invoked before saving, return an error if field is not populated.

func (*InstanceMetaLogs) Prepare

func (i *InstanceMetaLogs) Prepare()

Prepare invoked before saving, can be used to populate fields etc.

func (*InstanceMetaLogs) TableInfo

func (i *InstanceMetaLogs) TableInfo() *TableInfo

TableInfo return table meta data

func (*InstanceMetaLogs) TableName

func (i *InstanceMetaLogs) TableName() string

TableName sets the insert table name for this struct type

func (*InstanceMetaLogs) Validate

func (i *InstanceMetaLogs) Validate(action Action) error

Validate invoked before performing action, return an error if field is not populated.

type LogEvents

type LogEvents struct {
	//[ 0] id                                             INT8                 null: false  primary: true   isArray: false  auto: false  col: INT8            len: -1      default: []
	ID int64 `gorm:"primary_key;column:id;type:INT8;"`
	//[ 1] log_event_type                                 TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	LogEventType null.String `gorm:"column:log_event_type;type:TEXT;"`
	//[ 2] log_event_object                               BYTEA                null: true   primary: false  isArray: false  auto: false  col: BYTEA           len: -1      default: []
	LogEventObject null.String `gorm:"column:log_event_object;type:BYTEA;"`
	//[ 3] log_event_id                                   INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	LogEventID null.Int `gorm:"column:log_event_id;type:INT8;"`
	//[ 4] log_event                                      TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	LogEvent null.String `gorm:"column:log_event;type:TEXT;"`
	//[ 5] created_at                                     TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	CreatedAt null.Time `gorm:"column:created_at;type:TIMESTAMPTZ;"`
	//[ 6] updated_at                                     TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	UpdatedAt null.Time `gorm:"column:updated_at;type:TIMESTAMPTZ;"`
	//[ 7] source_host                                    TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	SourceHost null.String `gorm:"column:source_host;type:TEXT;"`
	//[ 8] source_ip                                      TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	SourceIP null.String `gorm:"column:source_ip;type:TEXT;"`
	//[ 9] delta_uuid                                     TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	DeltaUUID null.String `gorm:"column:delta_uuid;type:TEXT;"`
}

LogEvents struct is a row record of the log_events table in the estuary database

func (*LogEvents) BeforeSave

func (l *LogEvents) BeforeSave() error

BeforeSave invoked before saving, return an error if field is not populated.

func (*LogEvents) Prepare

func (l *LogEvents) Prepare()

Prepare invoked before saving, can be used to populate fields etc.

func (*LogEvents) TableInfo

func (l *LogEvents) TableInfo() *TableInfo

TableInfo return table meta data

func (*LogEvents) TableName

func (l *LogEvents) TableName() string

TableName sets the insert table name for this struct type

func (*LogEvents) Validate

func (l *LogEvents) Validate(action Action) error

Validate invoked before performing action, return an error if field is not populated.

type Model

type Model interface {
	TableName() string
	BeforeSave() error
	Prepare()
	Validate(action Action) error
	TableInfo() *TableInfo
}

Model interface methods for database structs generated

type PieceCommitmentLogs

type PieceCommitmentLogs struct {
	//[ 0] id                                             INT8                 null: false  primary: true   isArray: false  auto: false  col: INT8            len: -1      default: []
	ID int64 `gorm:"primary_key;column:id;type:INT8;"`
	//[ 1] cid                                            TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	Cid null.String `gorm:"column:cid;type:TEXT;"`
	//[ 2] piece                                          TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	Piece null.String `gorm:"column:piece;type:TEXT;"`
	//[ 3] size                                           INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	Size null.Int `gorm:"column:size;type:INT8;"`
	//[ 4] padded_piece_size                              INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	PaddedPieceSize null.Int `gorm:"column:padded_piece_size;type:INT8;"`
	//[ 5] un_padded_piece_size                           INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	UnPaddedPieceSize null.Int `gorm:"column:un_padded_piece_size;type:INT8;"`
	//[ 6] status                                         TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	Status null.String `gorm:"column:status;type:TEXT;"`
	//[ 7] last_message                                   TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	LastMessage null.String `gorm:"column:last_message;type:TEXT;"`
	//[ 8] node_info                                      TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	NodeInfo null.String `gorm:"column:node_info;type:TEXT;"`
	//[ 9] requester_info                                 TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	RequesterInfo null.String `gorm:"column:requester_info;type:TEXT;"`
	//[10] requesting_api_key                             TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	RequestingAPIKey null.String `gorm:"column:requesting_api_key;type:TEXT;"`
	//[11] system_content_piece_commitment_id             INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	SystemContentPieceCommitmentID null.Int `gorm:"column:system_content_piece_commitment_id;type:INT8;"`
	//[12] created_at                                     TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	CreatedAt null.Time `gorm:"column:created_at;type:TIMESTAMPTZ;"`
	//[13] updated_at                                     TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	UpdatedAt null.Time `gorm:"column:updated_at;type:TIMESTAMPTZ;"`
	//[14] delta_node_uuid                                TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	DeltaNodeUUID null.String `gorm:"column:delta_node_uuid;type:TEXT;"`
}

PieceCommitmentLogs struct is a row record of the piece_commitment_logs table in the estuary database

func (*PieceCommitmentLogs) BeforeSave

func (p *PieceCommitmentLogs) BeforeSave() error

BeforeSave invoked before saving, return an error if field is not populated.

func (*PieceCommitmentLogs) Prepare

func (p *PieceCommitmentLogs) Prepare()

Prepare invoked before saving, can be used to populate fields etc.

func (*PieceCommitmentLogs) TableInfo

func (p *PieceCommitmentLogs) TableInfo() *TableInfo

TableInfo return table meta data

func (*PieceCommitmentLogs) TableName

func (p *PieceCommitmentLogs) TableName() string

TableName sets the insert table name for this struct type

func (*PieceCommitmentLogs) Validate

func (p *PieceCommitmentLogs) Validate(action Action) error

Validate invoked before performing action, return an error if field is not populated.

type TableInfo

type TableInfo struct {
	Name    string        `json:"name"`
	Columns []*ColumnInfo `json:"columns"`
}

TableInfo describes a table in the database

func GetTableInfo

func GetTableInfo(name string) (*TableInfo, bool)

GetTableInfo retrieve TableInfo for a table

type WalletLogs

type WalletLogs struct {
	//[ 0] id                                             INT8                 null: false  primary: true   isArray: false  auto: false  col: INT8            len: -1      default: []
	ID int64 `gorm:"primary_key;column:id;type:INT8;"`
	//[ 1] uu_id                                          TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	UuID null.String `gorm:"column:uu_id;type:TEXT;"`
	//[ 2] addr                                           TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	Addr null.String `gorm:"column:addr;type:TEXT;"`
	//[ 3] owner                                          TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	Owner null.String `gorm:"column:owner;type:TEXT;"`
	//[ 4] key_type                                       TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	KeyType null.String `gorm:"column:key_type;type:TEXT;"`
	//[ 5] private_key                                    TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	PrivateKey null.String `gorm:"column:private_key;type:TEXT;"`
	//[ 6] node_info                                      TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	NodeInfo null.String `gorm:"column:node_info;type:TEXT;"`
	//[ 7] requester_info                                 TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	RequesterInfo null.String `gorm:"column:requester_info;type:TEXT;"`
	//[ 8] requesting_api_key                             TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	RequestingAPIKey null.String `gorm:"column:requesting_api_key;type:TEXT;"`
	//[ 9] system_wallet_id                               INT8                 null: true   primary: false  isArray: false  auto: false  col: INT8            len: -1      default: []
	SystemWalletID null.Int `gorm:"column:system_wallet_id;type:INT8;"`
	//[10] created_at                                     TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	CreatedAt null.Time `gorm:"column:created_at;type:TIMESTAMPTZ;"`
	//[11] updated_at                                     TIMESTAMPTZ          null: true   primary: false  isArray: false  auto: false  col: TIMESTAMPTZ     len: -1      default: []
	UpdatedAt null.Time `gorm:"column:updated_at;type:TIMESTAMPTZ;"`
	//[12] delta_node_uuid                                TEXT                 null: true   primary: false  isArray: false  auto: false  col: TEXT            len: -1      default: []
	DeltaNodeUUID null.String `gorm:"column:delta_node_uuid;type:TEXT;"`
}

WalletLogs struct is a row record of the wallet_logs table in the estuary database

func (*WalletLogs) BeforeSave

func (w *WalletLogs) BeforeSave() error

BeforeSave invoked before saving, return an error if field is not populated.

func (*WalletLogs) Prepare

func (w *WalletLogs) Prepare()

Prepare invoked before saving, can be used to populate fields etc.

func (*WalletLogs) TableInfo

func (w *WalletLogs) TableInfo() *TableInfo

TableInfo return table meta data

func (*WalletLogs) TableName

func (w *WalletLogs) TableName() string

TableName sets the insert table name for this struct type

func (*WalletLogs) Validate

func (w *WalletLogs) Validate(action Action) error

Validate invoked before performing action, return an error if field is not populated.

Jump to

Keyboard shortcuts

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