package
0.0.0-20240926060549-586842176038
Repository: https://github.com/npoolplatform/ledger-middleware.git
Documentation: pkg.go.dev

# Functions

Create creates all table resources using the given schema driver.
NewSchema creates a new schema client.

# Variables

CouponWithdrawsColumns holds the columns for the "coupon_withdraws" table.
CouponWithdrawsTable holds the schema information for the "coupon_withdraws" table.
DetailsColumns holds the columns for the "details" table.
DetailsTable holds the schema information for the "details" table.
GeneralsColumns holds the columns for the "generals" table.
GeneralsTable holds the schema information for the "generals" table.
LedgerLocksColumns holds the columns for the "ledger_locks" table.
LedgerLocksTable holds the schema information for the "ledger_locks" table.
MiningDetailsColumns holds the columns for the "mining_details" table.
MiningDetailsTable holds the schema information for the "mining_details" table.
MiningGeneralsColumns holds the columns for the "mining_generals" table.
MiningGeneralsTable holds the schema information for the "mining_generals" table.
MiningUnsoldsColumns holds the columns for the "mining_unsolds" table.
MiningUnsoldsTable holds the schema information for the "mining_unsolds" table.
ProfitsColumns holds the columns for the "profits" table.
ProfitsTable holds the schema information for the "profits" table.
SimulateDetailsColumns holds the columns for the "simulate_details" table.
SimulateDetailsTable holds the schema information for the "simulate_details" table.
SimulateGeneralsColumns holds the columns for the "simulate_generals" table.
SimulateGeneralsTable holds the schema information for the "simulate_generals" table.
SimulateProfitsColumns holds the columns for the "simulate_profits" table.
SimulateProfitsTable holds the schema information for the "simulate_profits" table.
Tables holds all the tables in the schema.
WithdrawsColumns holds the columns for the "withdraws" table.
WithdrawsTable holds the schema information for the "withdraws" table.
WithDropColumn sets the drop column option to the migration.
WithDropIndex sets the drop index option to the migration.
WithForeignKeys enables creating foreign-key in schema DDL.
WithGlobalUniqueID sets the universal ids options to the migration.

# Structs

Schema is the API for creating, migrating and dropping a schema.