schema

package
v0.0.0-...-828d3b4 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 11 Imported by: 0

README

varchar

([a-z]*)\s*varchar\((\d+)\)

field.String("$1").MaxLen($2).StructTag(`json:"$1"`)

bigint

([a-z_0-9]*)\s*bigint
field.Int8("$1") .StructTag(`json:"$1"`)

num

([a-z_0-9]*)\s*(numeric[^)]*\)*)
field.Int8("$1"). GoType(new(BigInt)) .StructTag(`json:"$1"`).SchemaType(map[string]string{ dialect.Postgres: "$2", })

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertBlockScanRecord

func InsertBlockScanRecord(record *BlockScanRecord) error

func UpdateBlockScanRecordByID

func UpdateBlockScanRecordByID(id int64, record *BlockScanRecord) error

Types

type AAContractInteract

type AAContractInteract struct {
	Id              int64
	ContractAddress string
	Network         string
	StatisticType   string
	InteractNum     int64
	CreateTime      time.Time
	ent.Schema
}

func (AAContractInteract) Annotations

func (AAContractInteract) Annotations() []schema.Annotation

func (AAContractInteract) Edges

func (AAContractInteract) Edges() []ent.Edge

func (AAContractInteract) Fields

func (AAContractInteract) Fields() []ent.Field

type AAHotTokenStatistic

type AAHotTokenStatistic struct {
	Id              int64
	Symbol          string
	ContractAddress string
	Network         string
	StatisticType   string
	UsdAmount       decimal.Decimal
	CreateTime      time.Time
	ent.Schema
}

func (AAHotTokenStatistic) Annotations

func (AAHotTokenStatistic) Annotations() []schema.Annotation

func (AAHotTokenStatistic) Edges

func (AAHotTokenStatistic) Edges() []ent.Edge

func (AAHotTokenStatistic) Fields

func (AAHotTokenStatistic) Fields() []ent.Field

type AAUserOpsCalldata

type AAUserOpsCalldata struct {
	ent.Schema
}

func (AAUserOpsCalldata) Annotations

func (AAUserOpsCalldata) Annotations() []schema.Annotation

func (AAUserOpsCalldata) Edges

func (AAUserOpsCalldata) Edges() []ent.Edge

func (AAUserOpsCalldata) Fields

func (AAUserOpsCalldata) Fields() []ent.Field

type AAUserOpsInfo

type AAUserOpsInfo struct {
	ent.Schema
}

func (AAUserOpsInfo) Annotations

func (AAUserOpsInfo) Annotations() []schema.Annotation

func (AAUserOpsInfo) Edges

func (AAUserOpsInfo) Edges() []ent.Edge

func (AAUserOpsInfo) Fields

func (AAUserOpsInfo) Fields() []ent.Field

type AaAccountData

type AaAccountData struct {
	ent.Schema
}

func (AaAccountData) Annotations

func (AaAccountData) Annotations() []schema.Annotation

func (AaAccountData) Edges

func (AaAccountData) Edges() []ent.Edge

func (AaAccountData) Fields

func (AaAccountData) Fields() []ent.Field

type AaAsset

type AaAsset struct {
	ent.Schema
}

func (AaAsset) Annotations

func (AaAsset) Annotations() []schema.Annotation

func (AaAsset) Edges

func (AaAsset) Edges() []ent.Edge

func (AaAsset) Fields

func (AaAsset) Fields() []ent.Field

type AaAssetDetail

type AaAssetDetail struct {
	ent.Schema
}

func (AaAssetDetail) Annotations

func (AaAssetDetail) Annotations() []schema.Annotation

func (AaAssetDetail) Edges

func (AaAssetDetail) Edges() []ent.Edge

func (AaAssetDetail) Fields

func (AaAssetDetail) Fields() []ent.Field

type AaBlockInfo

type AaBlockInfo struct {
	ent.Schema
}

func (AaBlockInfo) Annotations

func (AaBlockInfo) Annotations() []schema.Annotation

func (AaBlockInfo) Fields

func (AaBlockInfo) Fields() []ent.Field

type AaBlockSync

type AaBlockSync struct {
	ent.Schema
}

func (AaBlockSync) Annotations

func (AaBlockSync) Annotations() []schema.Annotation

func (AaBlockSync) Fields

func (AaBlockSync) Fields() []ent.Field

type AaTransactionInfo

type AaTransactionInfo struct {
	ent.Schema
}

func (AaTransactionInfo) Annotations

func (AaTransactionInfo) Annotations() []schema.Annotation

func (AaTransactionInfo) Fields

func (AaTransactionInfo) Fields() []ent.Field

type Account

type Account struct {
	ent.Schema
}

func (Account) Annotations

func (Account) Annotations() []schema.Annotation

func (Account) Edges

func (Account) Edges() []ent.Edge

func (Account) Fields

func (Account) Fields() []ent.Field

type AssetChangeTrace

type AssetChangeTrace struct {
	Id             int64
	TxHash         string
	BlockNumber    int64
	Network        string
	Address        string
	AddressType    int
	LastChangeTime int64
	SyncFlag       int
	CreateTime     time.Time
	UpdateTime     time.Time
	ent.Schema
}

func (AssetChangeTrace) Annotations

func (AssetChangeTrace) Annotations() []schema.Annotation

func (AssetChangeTrace) Edges

func (AssetChangeTrace) Edges() []ent.Edge

func (AssetChangeTrace) Fields

func (AssetChangeTrace) Fields() []ent.Field

type BlockDataDecode

type BlockDataDecode struct {
	ent.Schema
}

func (BlockDataDecode) Annotations

func (BlockDataDecode) Annotations() []schema.Annotation

func (BlockDataDecode) Edges

func (BlockDataDecode) Edges() []ent.Edge

func (BlockDataDecode) Fields

func (BlockDataDecode) Fields() []ent.Field

type BlockScanRecord

type BlockScanRecord struct {
	ID              int64     `db:"id"`
	Network         string    `db:"network"`
	LastBlockNumber int64     `db:"last_block_number"`
	LastScanTime    time.Time `db:"last_scan_time"`
	CreateTime      time.Time `db:"create_time"`
	UpdateTime      time.Time `db:"update_time"`
	ent.Schema
}

func GetBlockScanRecordsByNetwork

func GetBlockScanRecordsByNetwork(network string) (*BlockScanRecord, error)

func (BlockScanRecord) Annotations

func (BlockScanRecord) Annotations() []schema.Annotation

func (BlockScanRecord) Edges

func (BlockScanRecord) Edges() []ent.Edge

func (BlockScanRecord) Fields

func (BlockScanRecord) Fields() []ent.Field

type BlockSync

type BlockSync struct {
	ent.Schema
}

func (BlockSync) Annotations

func (BlockSync) Annotations() []schema.Annotation

func (BlockSync) Fields

func (BlockSync) Fields() []ent.Field

type BundlerInfo

type BundlerInfo struct {
	ent.Schema
}

func (BundlerInfo) Annotations

func (BundlerInfo) Annotations() []schema.Annotation

func (BundlerInfo) Edges

func (BundlerInfo) Edges() []ent.Edge

func (BundlerInfo) Fields

func (BundlerInfo) Fields() []ent.Field

type BundlerStatisDay

type BundlerStatisDay struct {
	ent.Schema
}

func (BundlerStatisDay) Annotations

func (BundlerStatisDay) Annotations() []schema.Annotation

func (BundlerStatisDay) Edges

func (BundlerStatisDay) Edges() []ent.Edge

func (BundlerStatisDay) Fields

func (BundlerStatisDay) Fields() []ent.Field

Fields of the BundlerStatisDay.

type BundlerStatisHour

type BundlerStatisHour struct {
	ent.Schema
}

func (BundlerStatisHour) Annotations

func (BundlerStatisHour) Annotations() []schema.Annotation

func (BundlerStatisHour) Edges

func (BundlerStatisHour) Edges() []ent.Edge

func (BundlerStatisHour) Fields

func (BundlerStatisHour) Fields() []ent.Field

type DailyStatisticDay

type DailyStatisticDay struct {
	Id                  int64
	Network             string
	StatisticTime       int64
	TxNum               int64
	AATxNum             int64
	UserOpsNum          int64
	GasFee              decimal.Decimal
	GasFeeUsd           decimal.Decimal
	ActiveWallet        int64
	PaymasterGasPaid    decimal.Decimal
	PaymasterGasPaidUsd decimal.Decimal
	BundlerGasProfit    decimal.Decimal
	BundlerGasProfitUsd decimal.Decimal
	CreateTime          time.Time
	ent.Schema
}

func (DailyStatisticDay) Annotations

func (DailyStatisticDay) Annotations() []schema.Annotation

func (DailyStatisticDay) Edges

func (DailyStatisticDay) Edges() []ent.Edge

func (DailyStatisticDay) Fields

func (DailyStatisticDay) Fields() []ent.Field

type DailyStatisticHour

type DailyStatisticHour struct {
	Id            int64
	Network       string
	StatisticTime int64
	TxNum         int64
	AATxNum       int64
	UserOpsNum    int64
	GasFee        decimal.Decimal
	ActiveWallet  int64
	CreateTime    time.Time
	ent.Schema
}

func (DailyStatisticHour) Annotations

func (DailyStatisticHour) Annotations() []schema.Annotation

func (DailyStatisticHour) Edges

func (DailyStatisticHour) Edges() []ent.Edge

func (DailyStatisticHour) Fields

func (DailyStatisticHour) Fields() []ent.Field

type FactoryInfo

type FactoryInfo struct {
	ent.Schema
}

func (FactoryInfo) Annotations

func (FactoryInfo) Annotations() []schema.Annotation

func (FactoryInfo) Edges

func (FactoryInfo) Edges() []ent.Edge

func (FactoryInfo) Fields

func (FactoryInfo) Fields() []ent.Field

type FactoryStatisDay

type FactoryStatisDay struct {
	ID               int64     `json:"id"`
	Factory          string    `json:"factory"`
	Network          string    `json:"network"`
	AccountNum       int64     `json:"account_num"`
	AccountDeployNum int64     `json:"account_deploy_num"`
	StatisTime       time.Time `json:"statis_time"`
	CreateTime       time.Time `json:"create_time"`
	ent.Schema
}

func (FactoryStatisDay) Annotations

func (FactoryStatisDay) Annotations() []schema.Annotation

Annotations of the FactoryStatisDay.

func (FactoryStatisDay) Edges

func (FactoryStatisDay) Edges() []ent.Edge

Edges of the FactoryStatisDay.

func (FactoryStatisDay) Fields

func (FactoryStatisDay) Fields() []ent.Field

Fields of the FactoryStatisDay.

type FactoryStatisHour

type FactoryStatisHour struct {
	ID               int64     `json:"id"`
	Factory          string    `json:"factory"`
	Network          string    `json:"network"`
	AccountNum       int64     `json:"account_num"`
	AccountDeployNum int64     `json:"account_deploy_num"`
	StatisTime       time.Time `json:"statis_time"`
	CreateTime       time.Time `json:"create_time"`
	ent.Schema
}

func (FactoryStatisHour) Annotations

func (FactoryStatisHour) Annotations() []schema.Annotation

Annotations of the FactoryStatisHour.

func (FactoryStatisHour) Edges

func (FactoryStatisHour) Edges() []ent.Edge

Edges of the FactoryStatisHour.

func (FactoryStatisHour) Fields

func (FactoryStatisHour) Fields() []ent.Field

type FunctionSignature

type FunctionSignature struct {
	ent.Schema
}

func (FunctionSignature) Annotations

func (FunctionSignature) Annotations() []schema.Annotation

func (FunctionSignature) Fields

func (FunctionSignature) Fields() []ent.Field

create table public.function_signature (

signature   varchar(16) not null
    constraint function_signature_pk
        primary key,
name        varchar(255),
text        text,
bytes       bytea,
create_time timestamp with time zone

);

alter table public.function_signature

owner to postgres;

type HotAATokenStatistic

type HotAATokenStatistic struct {
	Id            int64
	TokenSymbol   string
	Network       string
	StatisticType string
	Volume        decimal.Decimal
	CreateTime    time.Time
	ent.Schema
}

func (HotAATokenStatistic) Annotations

func (HotAATokenStatistic) Annotations() []schema.Annotation

func (HotAATokenStatistic) Edges

func (HotAATokenStatistic) Edges() []ent.Edge

func (HotAATokenStatistic) Fields

func (HotAATokenStatistic) Fields() []ent.Field

type MevInfo

type MevInfo struct {
	Id            int64
	TxHash        string
	BlockNumber   int64
	Network       string
	RelatedTxHash string
	TxFromTag     string
	TxFrom        string
	TxTo          string
	GasFee        decimal.Decimal
	UserOpsGasFee decimal.Decimal
	Profit        decimal.Decimal
	TxTime        int64
	CreateTime    time.Time
	ent.Schema
}

func (MevInfo) Annotations

func (MevInfo) Annotations() []schema.Annotation

func (MevInfo) Edges

func (MevInfo) Edges() []ent.Edge

func (MevInfo) Fields

func (MevInfo) Fields() []ent.Field

type MevTransaction

type MevTransaction struct {
	ent.Schema
}

func (MevTransaction) Annotations

func (MevTransaction) Annotations() []schema.Annotation

func (MevTransaction) Fields

func (MevTransaction) Fields() []ent.Field

type MevUserOpsInfo

type MevUserOpsInfo struct {
	ent.Schema
}

func (MevUserOpsInfo) Annotations

func (MevUserOpsInfo) Annotations() []schema.Annotation

func (MevUserOpsInfo) Fields

func (MevUserOpsInfo) Fields() []ent.Field

type Monitor

type Monitor struct {
	ent.Schema
}

func (Monitor) Annotations

func (Monitor) Annotations() []schema.Annotation

func (Monitor) Fields

func (Monitor) Fields() []ent.Field

type Network

type Network struct {
	ent.Schema
}

Network holds the schema definition for the Network entity.

func (Network) Annotations

func (Network) Annotations() []schema.Annotation

func (Network) Edges

func (Network) Edges() []ent.Edge

Edges of the Network.

func (Network) Fields

func (Network) Fields() []ent.Field

Fields of the Network.

type PaymasterInfo

type PaymasterInfo struct {
	ent.Schema
}

func (PaymasterInfo) Annotations

func (PaymasterInfo) Annotations() []schema.Annotation

func (PaymasterInfo) Edges

func (PaymasterInfo) Edges() []ent.Edge

func (PaymasterInfo) Fields

func (PaymasterInfo) Fields() []ent.Field

Fields of the FactoryInfo.

type PaymasterStatisDay

type PaymasterStatisDay struct {
	ID              int64           `json:"id"`
	Paymaster       string          `json:"paymaster"`
	Network         string          `json:"network"`
	UserOpsNum      int64           `json:"user_ops_num"`
	Reserve         decimal.Decimal `json:"reserve"`
	GasSponsored    decimal.Decimal `json:"gas_sponsored"`
	GasSponsoredUsd decimal.Decimal `json:"gas_sponsored_usd"`
	StatisTime      time.Time       `json:"statis_time"`
	CreateTime      time.Time       `json:"create_time"`
	ent.Schema
}

func (PaymasterStatisDay) Annotations

func (PaymasterStatisDay) Annotations() []schema.Annotation

func (PaymasterStatisDay) Edges

func (PaymasterStatisDay) Edges() []ent.Edge

func (PaymasterStatisDay) Fields

func (PaymasterStatisDay) Fields() []ent.Field

type PaymasterStatisHour

type PaymasterStatisHour struct {
	ID              int64           `json:"id"`
	Paymaster       string          `json:"paymaster"`
	Network         string          `json:"network"`
	UserOpsNum      int64           `json:"user_ops_num"`
	Reserve         decimal.Decimal `json:"reserve"`
	GasSponsored    decimal.Decimal `json:"gas_sponsored"`
	GasSponsoredUsd decimal.Decimal `json:"gas_sponsored_usd"`
	StatisTime      time.Time       `json:"statis_time"`
	CreateTime      time.Time       `json:"create_time"`
	ent.Schema
}

func (PaymasterStatisHour) Annotations

func (PaymasterStatisHour) Annotations() []schema.Annotation

func (PaymasterStatisHour) Edges

func (PaymasterStatisHour) Edges() []ent.Edge

func (PaymasterStatisHour) Fields

func (PaymasterStatisHour) Fields() []ent.Field

type TaskRecord

type TaskRecord struct {
	ID         int64     `db:"id"`
	Network    string    `db:"network"`
	TaskType   string    `db:"task_type"`
	LastTime   time.Time `db:"last_time"`
	CreateTime time.Time `db:"create_time"`
	UpdateTime time.Time `db:"update_time"`
	ent.Schema
}

func (TaskRecord) Annotations

func (TaskRecord) Annotations() []schema.Annotation

func (TaskRecord) Edges

func (TaskRecord) Edges() []ent.Edge

func (TaskRecord) Fields

func (TaskRecord) Fields() []ent.Field

type Token

type Token struct {
	ent.Schema
}

func (Token) Annotations

func (Token) Annotations() []schema.Annotation

func (Token) Edges

func (Token) Edges() []ent.Edge

func (Token) Fields

func (Token) Fields() []ent.Field

type TokenAll

type TokenAll struct {
	ent.Schema
}

func (TokenAll) Annotations

func (TokenAll) Annotations() []schema.Annotation

func (TokenAll) Edges

func (TokenAll) Edges() []ent.Edge

func (TokenAll) Fields

func (TokenAll) Fields() []ent.Field

type TokenPriceInfo

type TokenPriceInfo struct {
	ent.Schema
}

func (TokenPriceInfo) Annotations

func (TokenPriceInfo) Annotations() []schema.Annotation

func (TokenPriceInfo) Edges

func (TokenPriceInfo) Edges() []ent.Edge

func (TokenPriceInfo) Fields

func (TokenPriceInfo) Fields() []ent.Field

type TransactionDecode

type TransactionDecode struct {
	ent.Schema
}

func (TransactionDecode) Annotations

func (TransactionDecode) Annotations() []schema.Annotation

func (TransactionDecode) Fields

func (TransactionDecode) Fields() []ent.Field

type TransactionReceiptBlockSync

type TransactionReceiptBlockSync struct {
	ent.Schema
}

func (TransactionReceiptBlockSync) Annotations

func (TransactionReceiptBlockSync) Fields

type TransactionReceiptDecode

type TransactionReceiptDecode struct {
	ent.Schema
}

func (TransactionReceiptDecode) Annotations

func (TransactionReceiptDecode) Annotations() []schema.Annotation

func (TransactionReceiptDecode) Edges

func (TransactionReceiptDecode) Edges() []ent.Edge

func (TransactionReceiptDecode) Fields

func (TransactionReceiptDecode) Fields() []ent.Field

type TransactionSync

type TransactionSync struct {
	ent.Schema
}

func (TransactionSync) Annotations

func (TransactionSync) Annotations() []schema.Annotation

func (TransactionSync) Fields

func (TransactionSync) Fields() []ent.Field

type TransferTransaction

type TransferTransaction struct {
	ent.Schema
}

func (TransferTransaction) Annotations

func (TransferTransaction) Annotations() []schema.Annotation

func (TransferTransaction) Fields

func (TransferTransaction) Fields() []ent.Field

type UserAssetInfo

type UserAssetInfo struct {
	ent.Schema
}

func (UserAssetInfo) Annotations

func (UserAssetInfo) Annotations() []schema.Annotation

func (UserAssetInfo) Edges

func (UserAssetInfo) Edges() []ent.Edge

func (UserAssetInfo) Fields

func (UserAssetInfo) Fields() []ent.Field

type UserOpTypeStatistic

type UserOpTypeStatistic struct {
	Id            int64
	UserOpType    string
	UserOpSign    string
	Network       string
	StatisticType string
	OpNum         int64
	CreateTime    time.Time
	ent.Schema
}

func (UserOpTypeStatistic) Annotations

func (UserOpTypeStatistic) Annotations() []schema.Annotation

func (UserOpTypeStatistic) Edges

func (UserOpTypeStatistic) Edges() []ent.Edge

func (UserOpTypeStatistic) Fields

func (UserOpTypeStatistic) Fields() []ent.Field

type WhaleStatisticDay

type WhaleStatisticDay struct {
	Id            int64
	Network       string
	WhaleNum      int64
	TotalUsd      decimal.Decimal
	StatisticTime time.Time
	CreateTime    time.Time
	ent.Schema
}

func (WhaleStatisticDay) Annotations

func (WhaleStatisticDay) Annotations() []schema.Annotation

func (WhaleStatisticDay) Edges

func (WhaleStatisticDay) Edges() []ent.Edge

func (WhaleStatisticDay) Fields

func (WhaleStatisticDay) Fields() []ent.Field

type WhaleStatisticHour

type WhaleStatisticHour struct {
	Id            int64
	Network       string
	WhaleNum      int64
	TotalUsd      decimal.Decimal
	StatisticTime time.Time
	CreateTime    time.Time
	ent.Schema
}

func (WhaleStatisticHour) Annotations

func (WhaleStatisticHour) Annotations() []schema.Annotation

func (WhaleStatisticHour) Edges

func (WhaleStatisticHour) Edges() []ent.Edge

func (WhaleStatisticHour) Fields

func (WhaleStatisticHour) Fields() []ent.Field

Jump to

Keyboard shortcuts

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