github.com/NpoolPlatform/chain-middleware@v0.0.0-20240228100535-eb1bcf896eb9/pkg/db/ent/migrate/schema.go (about)

     1  // Code generated by ent, DO NOT EDIT.
     2  
     3  package migrate
     4  
     5  import (
     6  	"entgo.io/ent/dialect/sql/schema"
     7  	"entgo.io/ent/schema/field"
     8  )
     9  
    10  var (
    11  	// AppCoinsColumns holds the columns for the "app_coins" table.
    12  	AppCoinsColumns = []*schema.Column{
    13  		{Name: "id", Type: field.TypeUint32, Increment: true},
    14  		{Name: "created_at", Type: field.TypeUint32},
    15  		{Name: "updated_at", Type: field.TypeUint32},
    16  		{Name: "deleted_at", Type: field.TypeUint32},
    17  		{Name: "ent_id", Type: field.TypeUUID, Unique: true},
    18  		{Name: "app_id", Type: field.TypeUUID, Nullable: true},
    19  		{Name: "coin_type_id", Type: field.TypeUUID, Nullable: true},
    20  		{Name: "name", Type: field.TypeString, Nullable: true, Default: ""},
    21  		{Name: "display_names", Type: field.TypeJSON, Nullable: true},
    22  		{Name: "logo", Type: field.TypeString, Nullable: true, Default: ""},
    23  		{Name: "for_pay", Type: field.TypeBool, Nullable: true, Default: false},
    24  		{Name: "withdraw_auto_review_amount", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
    25  		{Name: "product_page", Type: field.TypeString, Nullable: true, Default: ""},
    26  		{Name: "disabled", Type: field.TypeBool, Nullable: true, Default: false},
    27  		{Name: "daily_reward_amount", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
    28  		{Name: "display", Type: field.TypeBool, Nullable: true, Default: true},
    29  		{Name: "display_index", Type: field.TypeUint32, Nullable: true, Default: 0},
    30  		{Name: "max_amount_per_withdraw", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
    31  	}
    32  	// AppCoinsTable holds the schema information for the "app_coins" table.
    33  	AppCoinsTable = &schema.Table{
    34  		Name:       "app_coins",
    35  		Columns:    AppCoinsColumns,
    36  		PrimaryKey: []*schema.Column{AppCoinsColumns[0]},
    37  		Indexes: []*schema.Index{
    38  			{
    39  				Name:    "appcoin_ent_id",
    40  				Unique:  true,
    41  				Columns: []*schema.Column{AppCoinsColumns[4]},
    42  			},
    43  		},
    44  	}
    45  	// ChainBasesColumns holds the columns for the "chain_bases" table.
    46  	ChainBasesColumns = []*schema.Column{
    47  		{Name: "id", Type: field.TypeUint32, Increment: true},
    48  		{Name: "created_at", Type: field.TypeUint32},
    49  		{Name: "updated_at", Type: field.TypeUint32},
    50  		{Name: "deleted_at", Type: field.TypeUint32},
    51  		{Name: "ent_id", Type: field.TypeUUID, Unique: true},
    52  		{Name: "name", Type: field.TypeString, Nullable: true, Default: ""},
    53  		{Name: "logo", Type: field.TypeString, Nullable: true, Default: ""},
    54  		{Name: "native_unit", Type: field.TypeString, Nullable: true, Default: ""},
    55  		{Name: "atomic_unit", Type: field.TypeString, Nullable: true, Default: ""},
    56  		{Name: "unit_exp", Type: field.TypeUint32, Nullable: true, Default: 0},
    57  		{Name: "env", Type: field.TypeString, Nullable: true, Default: ""},
    58  		{Name: "chain_id", Type: field.TypeString, Nullable: true, Default: ""},
    59  		{Name: "nickname", Type: field.TypeString, Nullable: true, Default: ""},
    60  		{Name: "gas_type", Type: field.TypeString, Nullable: true, Default: "DefaultGasType"},
    61  	}
    62  	// ChainBasesTable holds the schema information for the "chain_bases" table.
    63  	ChainBasesTable = &schema.Table{
    64  		Name:       "chain_bases",
    65  		Columns:    ChainBasesColumns,
    66  		PrimaryKey: []*schema.Column{ChainBasesColumns[0]},
    67  		Indexes: []*schema.Index{
    68  			{
    69  				Name:    "chainbase_ent_id",
    70  				Unique:  true,
    71  				Columns: []*schema.Column{ChainBasesColumns[4]},
    72  			},
    73  		},
    74  	}
    75  	// CoinBasesColumns holds the columns for the "coin_bases" table.
    76  	CoinBasesColumns = []*schema.Column{
    77  		{Name: "id", Type: field.TypeUint32, Increment: true},
    78  		{Name: "created_at", Type: field.TypeUint32},
    79  		{Name: "updated_at", Type: field.TypeUint32},
    80  		{Name: "deleted_at", Type: field.TypeUint32},
    81  		{Name: "ent_id", Type: field.TypeUUID, Unique: true},
    82  		{Name: "name", Type: field.TypeString, Nullable: true, Default: ""},
    83  		{Name: "logo", Type: field.TypeString, Nullable: true, Default: ""},
    84  		{Name: "presale", Type: field.TypeBool, Nullable: true, Default: false},
    85  		{Name: "unit", Type: field.TypeString, Nullable: true, Default: ""},
    86  		{Name: "env", Type: field.TypeString, Nullable: true, Default: ""},
    87  		{Name: "reserved_amount", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
    88  		{Name: "for_pay", Type: field.TypeBool, Nullable: true, Default: false},
    89  		{Name: "disabled", Type: field.TypeBool, Nullable: true, Default: false},
    90  	}
    91  	// CoinBasesTable holds the schema information for the "coin_bases" table.
    92  	CoinBasesTable = &schema.Table{
    93  		Name:       "coin_bases",
    94  		Columns:    CoinBasesColumns,
    95  		PrimaryKey: []*schema.Column{CoinBasesColumns[0]},
    96  		Indexes: []*schema.Index{
    97  			{
    98  				Name:    "coinbase_ent_id",
    99  				Unique:  true,
   100  				Columns: []*schema.Column{CoinBasesColumns[4]},
   101  			},
   102  		},
   103  	}
   104  	// CoinDescriptionsColumns holds the columns for the "coin_descriptions" table.
   105  	CoinDescriptionsColumns = []*schema.Column{
   106  		{Name: "id", Type: field.TypeUint32, Increment: true},
   107  		{Name: "created_at", Type: field.TypeUint32},
   108  		{Name: "updated_at", Type: field.TypeUint32},
   109  		{Name: "deleted_at", Type: field.TypeUint32},
   110  		{Name: "ent_id", Type: field.TypeUUID, Unique: true},
   111  		{Name: "app_id", Type: field.TypeUUID, Nullable: true},
   112  		{Name: "coin_type_id", Type: field.TypeUUID, Nullable: true},
   113  		{Name: "used_for", Type: field.TypeString, Nullable: true, Default: "DefaultUsedFor"},
   114  		{Name: "title", Type: field.TypeString, Nullable: true, Default: ""},
   115  		{Name: "message", Type: field.TypeString, Nullable: true, Default: ""},
   116  	}
   117  	// CoinDescriptionsTable holds the schema information for the "coin_descriptions" table.
   118  	CoinDescriptionsTable = &schema.Table{
   119  		Name:       "coin_descriptions",
   120  		Columns:    CoinDescriptionsColumns,
   121  		PrimaryKey: []*schema.Column{CoinDescriptionsColumns[0]},
   122  		Indexes: []*schema.Index{
   123  			{
   124  				Name:    "coindescription_ent_id",
   125  				Unique:  true,
   126  				Columns: []*schema.Column{CoinDescriptionsColumns[4]},
   127  			},
   128  		},
   129  	}
   130  	// CoinExtrasColumns holds the columns for the "coin_extras" table.
   131  	CoinExtrasColumns = []*schema.Column{
   132  		{Name: "id", Type: field.TypeUint32, Increment: true},
   133  		{Name: "created_at", Type: field.TypeUint32},
   134  		{Name: "updated_at", Type: field.TypeUint32},
   135  		{Name: "deleted_at", Type: field.TypeUint32},
   136  		{Name: "ent_id", Type: field.TypeUUID, Unique: true},
   137  		{Name: "coin_type_id", Type: field.TypeUUID, Nullable: true},
   138  		{Name: "home_page", Type: field.TypeString, Nullable: true, Default: ""},
   139  		{Name: "specs", Type: field.TypeString, Nullable: true, Default: ""},
   140  		{Name: "stable_usd", Type: field.TypeBool, Nullable: true, Default: false},
   141  	}
   142  	// CoinExtrasTable holds the schema information for the "coin_extras" table.
   143  	CoinExtrasTable = &schema.Table{
   144  		Name:       "coin_extras",
   145  		Columns:    CoinExtrasColumns,
   146  		PrimaryKey: []*schema.Column{CoinExtrasColumns[0]},
   147  		Indexes: []*schema.Index{
   148  			{
   149  				Name:    "coinextra_ent_id",
   150  				Unique:  true,
   151  				Columns: []*schema.Column{CoinExtrasColumns[4]},
   152  			},
   153  		},
   154  	}
   155  	// CoinFiatsColumns holds the columns for the "coin_fiats" table.
   156  	CoinFiatsColumns = []*schema.Column{
   157  		{Name: "id", Type: field.TypeUint32, Increment: true},
   158  		{Name: "created_at", Type: field.TypeUint32},
   159  		{Name: "updated_at", Type: field.TypeUint32},
   160  		{Name: "deleted_at", Type: field.TypeUint32},
   161  		{Name: "ent_id", Type: field.TypeUUID, Unique: true},
   162  		{Name: "coin_type_id", Type: field.TypeUUID, Nullable: true},
   163  		{Name: "fiat_id", Type: field.TypeUUID, Nullable: true},
   164  		{Name: "feed_type", Type: field.TypeString, Nullable: true, Default: "DefaultFeedType"},
   165  	}
   166  	// CoinFiatsTable holds the schema information for the "coin_fiats" table.
   167  	CoinFiatsTable = &schema.Table{
   168  		Name:       "coin_fiats",
   169  		Columns:    CoinFiatsColumns,
   170  		PrimaryKey: []*schema.Column{CoinFiatsColumns[0]},
   171  		Indexes: []*schema.Index{
   172  			{
   173  				Name:    "coinfiat_ent_id",
   174  				Unique:  true,
   175  				Columns: []*schema.Column{CoinFiatsColumns[4]},
   176  			},
   177  		},
   178  	}
   179  	// CoinFiatCurrenciesColumns holds the columns for the "coin_fiat_currencies" table.
   180  	CoinFiatCurrenciesColumns = []*schema.Column{
   181  		{Name: "id", Type: field.TypeUint32, Increment: true},
   182  		{Name: "created_at", Type: field.TypeUint32},
   183  		{Name: "updated_at", Type: field.TypeUint32},
   184  		{Name: "deleted_at", Type: field.TypeUint32},
   185  		{Name: "ent_id", Type: field.TypeUUID, Unique: true},
   186  		{Name: "coin_type_id", Type: field.TypeUUID, Nullable: true},
   187  		{Name: "fiat_id", Type: field.TypeUUID, Nullable: true},
   188  		{Name: "feed_type", Type: field.TypeString, Nullable: true, Default: "DefaultFeedType"},
   189  		{Name: "market_value_low", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
   190  		{Name: "market_value_high", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
   191  	}
   192  	// CoinFiatCurrenciesTable holds the schema information for the "coin_fiat_currencies" table.
   193  	CoinFiatCurrenciesTable = &schema.Table{
   194  		Name:       "coin_fiat_currencies",
   195  		Columns:    CoinFiatCurrenciesColumns,
   196  		PrimaryKey: []*schema.Column{CoinFiatCurrenciesColumns[0]},
   197  		Indexes: []*schema.Index{
   198  			{
   199  				Name:    "coinfiatcurrency_ent_id",
   200  				Unique:  true,
   201  				Columns: []*schema.Column{CoinFiatCurrenciesColumns[4]},
   202  			},
   203  		},
   204  	}
   205  	// CoinFiatCurrencyHistoriesColumns holds the columns for the "coin_fiat_currency_histories" table.
   206  	CoinFiatCurrencyHistoriesColumns = []*schema.Column{
   207  		{Name: "id", Type: field.TypeUint32, Increment: true},
   208  		{Name: "created_at", Type: field.TypeUint32},
   209  		{Name: "updated_at", Type: field.TypeUint32},
   210  		{Name: "deleted_at", Type: field.TypeUint32},
   211  		{Name: "ent_id", Type: field.TypeUUID, Unique: true},
   212  		{Name: "coin_type_id", Type: field.TypeUUID, Nullable: true},
   213  		{Name: "fiat_id", Type: field.TypeUUID, Nullable: true},
   214  		{Name: "feed_type", Type: field.TypeString, Nullable: true, Default: "DefaultFeedType"},
   215  		{Name: "market_value_low", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
   216  		{Name: "market_value_high", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
   217  	}
   218  	// CoinFiatCurrencyHistoriesTable holds the schema information for the "coin_fiat_currency_histories" table.
   219  	CoinFiatCurrencyHistoriesTable = &schema.Table{
   220  		Name:       "coin_fiat_currency_histories",
   221  		Columns:    CoinFiatCurrencyHistoriesColumns,
   222  		PrimaryKey: []*schema.Column{CoinFiatCurrencyHistoriesColumns[0]},
   223  		Indexes: []*schema.Index{
   224  			{
   225  				Name:    "coinfiatcurrencyhistory_ent_id",
   226  				Unique:  true,
   227  				Columns: []*schema.Column{CoinFiatCurrencyHistoriesColumns[4]},
   228  			},
   229  		},
   230  	}
   231  	// CoinUsedForsColumns holds the columns for the "coin_used_fors" table.
   232  	CoinUsedForsColumns = []*schema.Column{
   233  		{Name: "id", Type: field.TypeUint32, Increment: true},
   234  		{Name: "created_at", Type: field.TypeUint32},
   235  		{Name: "updated_at", Type: field.TypeUint32},
   236  		{Name: "deleted_at", Type: field.TypeUint32},
   237  		{Name: "ent_id", Type: field.TypeUUID, Unique: true},
   238  		{Name: "coin_type_id", Type: field.TypeUUID, Nullable: true},
   239  		{Name: "used_for", Type: field.TypeString, Nullable: true, Default: "DefaultCoinUsedFor"},
   240  		{Name: "priority", Type: field.TypeUint32, Nullable: true, Default: 1},
   241  	}
   242  	// CoinUsedForsTable holds the schema information for the "coin_used_fors" table.
   243  	CoinUsedForsTable = &schema.Table{
   244  		Name:       "coin_used_fors",
   245  		Columns:    CoinUsedForsColumns,
   246  		PrimaryKey: []*schema.Column{CoinUsedForsColumns[0]},
   247  		Indexes: []*schema.Index{
   248  			{
   249  				Name:    "coinusedfor_ent_id",
   250  				Unique:  true,
   251  				Columns: []*schema.Column{CoinUsedForsColumns[4]},
   252  			},
   253  		},
   254  	}
   255  	// CurrenciesColumns holds the columns for the "currencies" table.
   256  	CurrenciesColumns = []*schema.Column{
   257  		{Name: "id", Type: field.TypeUint32, Increment: true},
   258  		{Name: "created_at", Type: field.TypeUint32},
   259  		{Name: "updated_at", Type: field.TypeUint32},
   260  		{Name: "deleted_at", Type: field.TypeUint32},
   261  		{Name: "ent_id", Type: field.TypeUUID, Unique: true},
   262  		{Name: "coin_type_id", Type: field.TypeUUID, Nullable: true},
   263  		{Name: "feed_type", Type: field.TypeString, Nullable: true, Default: "DefaultFeedType"},
   264  		{Name: "market_value_high", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
   265  		{Name: "market_value_low", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
   266  	}
   267  	// CurrenciesTable holds the schema information for the "currencies" table.
   268  	CurrenciesTable = &schema.Table{
   269  		Name:       "currencies",
   270  		Columns:    CurrenciesColumns,
   271  		PrimaryKey: []*schema.Column{CurrenciesColumns[0]},
   272  		Indexes: []*schema.Index{
   273  			{
   274  				Name:    "currency_ent_id",
   275  				Unique:  true,
   276  				Columns: []*schema.Column{CurrenciesColumns[4]},
   277  			},
   278  			{
   279  				Name:    "currency_coin_type_id_id",
   280  				Unique:  false,
   281  				Columns: []*schema.Column{CurrenciesColumns[5], CurrenciesColumns[0]},
   282  			},
   283  			{
   284  				Name:    "currency_coin_type_id",
   285  				Unique:  false,
   286  				Columns: []*schema.Column{CurrenciesColumns[5]},
   287  			},
   288  		},
   289  	}
   290  	// CurrencyFeedsColumns holds the columns for the "currency_feeds" table.
   291  	CurrencyFeedsColumns = []*schema.Column{
   292  		{Name: "id", Type: field.TypeUint32, Increment: true},
   293  		{Name: "created_at", Type: field.TypeUint32},
   294  		{Name: "updated_at", Type: field.TypeUint32},
   295  		{Name: "deleted_at", Type: field.TypeUint32},
   296  		{Name: "ent_id", Type: field.TypeUUID, Unique: true},
   297  		{Name: "coin_type_id", Type: field.TypeUUID, Nullable: true},
   298  		{Name: "feed_type", Type: field.TypeString, Nullable: true, Default: "DefaultFeedType"},
   299  		{Name: "feed_coin_name", Type: field.TypeString, Nullable: true, Default: ""},
   300  		{Name: "disabled", Type: field.TypeBool, Nullable: true, Default: false},
   301  	}
   302  	// CurrencyFeedsTable holds the schema information for the "currency_feeds" table.
   303  	CurrencyFeedsTable = &schema.Table{
   304  		Name:       "currency_feeds",
   305  		Columns:    CurrencyFeedsColumns,
   306  		PrimaryKey: []*schema.Column{CurrencyFeedsColumns[0]},
   307  		Indexes: []*schema.Index{
   308  			{
   309  				Name:    "currencyfeed_ent_id",
   310  				Unique:  true,
   311  				Columns: []*schema.Column{CurrencyFeedsColumns[4]},
   312  			},
   313  			{
   314  				Name:    "currencyfeed_coin_type_id_id",
   315  				Unique:  false,
   316  				Columns: []*schema.Column{CurrencyFeedsColumns[5], CurrencyFeedsColumns[0]},
   317  			},
   318  			{
   319  				Name:    "currencyfeed_coin_type_id",
   320  				Unique:  false,
   321  				Columns: []*schema.Column{CurrencyFeedsColumns[5]},
   322  			},
   323  		},
   324  	}
   325  	// CurrencyHistoriesColumns holds the columns for the "currency_histories" table.
   326  	CurrencyHistoriesColumns = []*schema.Column{
   327  		{Name: "id", Type: field.TypeUint32, Increment: true},
   328  		{Name: "created_at", Type: field.TypeUint32},
   329  		{Name: "updated_at", Type: field.TypeUint32},
   330  		{Name: "deleted_at", Type: field.TypeUint32},
   331  		{Name: "ent_id", Type: field.TypeUUID, Unique: true},
   332  		{Name: "coin_type_id", Type: field.TypeUUID, Nullable: true},
   333  		{Name: "feed_type", Type: field.TypeString, Nullable: true, Default: "DefaultFeedType"},
   334  		{Name: "market_value_high", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
   335  		{Name: "market_value_low", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
   336  	}
   337  	// CurrencyHistoriesTable holds the schema information for the "currency_histories" table.
   338  	CurrencyHistoriesTable = &schema.Table{
   339  		Name:       "currency_histories",
   340  		Columns:    CurrencyHistoriesColumns,
   341  		PrimaryKey: []*schema.Column{CurrencyHistoriesColumns[0]},
   342  		Indexes: []*schema.Index{
   343  			{
   344  				Name:    "currencyhistory_ent_id",
   345  				Unique:  true,
   346  				Columns: []*schema.Column{CurrencyHistoriesColumns[4]},
   347  			},
   348  			{
   349  				Name:    "currencyhistory_coin_type_id_id",
   350  				Unique:  false,
   351  				Columns: []*schema.Column{CurrencyHistoriesColumns[5], CurrencyHistoriesColumns[0]},
   352  			},
   353  			{
   354  				Name:    "currencyhistory_coin_type_id",
   355  				Unique:  false,
   356  				Columns: []*schema.Column{CurrencyHistoriesColumns[5]},
   357  			},
   358  		},
   359  	}
   360  	// ExchangeRatesColumns holds the columns for the "exchange_rates" table.
   361  	ExchangeRatesColumns = []*schema.Column{
   362  		{Name: "id", Type: field.TypeUint32, Increment: true},
   363  		{Name: "created_at", Type: field.TypeUint32},
   364  		{Name: "updated_at", Type: field.TypeUint32},
   365  		{Name: "deleted_at", Type: field.TypeUint32},
   366  		{Name: "ent_id", Type: field.TypeUUID, Unique: true},
   367  		{Name: "app_id", Type: field.TypeUUID, Nullable: true},
   368  		{Name: "coin_type_id", Type: field.TypeUUID, Nullable: true},
   369  		{Name: "market_value", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
   370  		{Name: "settle_value", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
   371  		{Name: "settle_percent", Type: field.TypeUint32, Nullable: true, Default: 100},
   372  		{Name: "settle_tips", Type: field.TypeJSON, Nullable: true},
   373  		{Name: "setter", Type: field.TypeUUID, Nullable: true},
   374  	}
   375  	// ExchangeRatesTable holds the schema information for the "exchange_rates" table.
   376  	ExchangeRatesTable = &schema.Table{
   377  		Name:       "exchange_rates",
   378  		Columns:    ExchangeRatesColumns,
   379  		PrimaryKey: []*schema.Column{ExchangeRatesColumns[0]},
   380  		Indexes: []*schema.Index{
   381  			{
   382  				Name:    "exchangerate_ent_id",
   383  				Unique:  true,
   384  				Columns: []*schema.Column{ExchangeRatesColumns[4]},
   385  			},
   386  		},
   387  	}
   388  	// FiatsColumns holds the columns for the "fiats" table.
   389  	FiatsColumns = []*schema.Column{
   390  		{Name: "id", Type: field.TypeUint32, Increment: true},
   391  		{Name: "created_at", Type: field.TypeUint32},
   392  		{Name: "updated_at", Type: field.TypeUint32},
   393  		{Name: "deleted_at", Type: field.TypeUint32},
   394  		{Name: "ent_id", Type: field.TypeUUID, Unique: true},
   395  		{Name: "name", Type: field.TypeString, Nullable: true, Default: ""},
   396  		{Name: "logo", Type: field.TypeString, Nullable: true, Default: ""},
   397  		{Name: "unit", Type: field.TypeString, Nullable: true, Default: ""},
   398  	}
   399  	// FiatsTable holds the schema information for the "fiats" table.
   400  	FiatsTable = &schema.Table{
   401  		Name:       "fiats",
   402  		Columns:    FiatsColumns,
   403  		PrimaryKey: []*schema.Column{FiatsColumns[0]},
   404  		Indexes: []*schema.Index{
   405  			{
   406  				Name:    "fiat_ent_id",
   407  				Unique:  true,
   408  				Columns: []*schema.Column{FiatsColumns[4]},
   409  			},
   410  		},
   411  	}
   412  	// FiatCurrenciesColumns holds the columns for the "fiat_currencies" table.
   413  	FiatCurrenciesColumns = []*schema.Column{
   414  		{Name: "id", Type: field.TypeUint32, Increment: true},
   415  		{Name: "created_at", Type: field.TypeUint32},
   416  		{Name: "updated_at", Type: field.TypeUint32},
   417  		{Name: "deleted_at", Type: field.TypeUint32},
   418  		{Name: "ent_id", Type: field.TypeUUID, Unique: true},
   419  		{Name: "fiat_id", Type: field.TypeUUID, Nullable: true},
   420  		{Name: "feed_type", Type: field.TypeString, Nullable: true, Default: "DefaultFeedType"},
   421  		{Name: "market_value_low", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
   422  		{Name: "market_value_high", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
   423  	}
   424  	// FiatCurrenciesTable holds the schema information for the "fiat_currencies" table.
   425  	FiatCurrenciesTable = &schema.Table{
   426  		Name:       "fiat_currencies",
   427  		Columns:    FiatCurrenciesColumns,
   428  		PrimaryKey: []*schema.Column{FiatCurrenciesColumns[0]},
   429  		Indexes: []*schema.Index{
   430  			{
   431  				Name:    "fiatcurrency_ent_id",
   432  				Unique:  true,
   433  				Columns: []*schema.Column{FiatCurrenciesColumns[4]},
   434  			},
   435  		},
   436  	}
   437  	// FiatCurrencyFeedsColumns holds the columns for the "fiat_currency_feeds" table.
   438  	FiatCurrencyFeedsColumns = []*schema.Column{
   439  		{Name: "id", Type: field.TypeUint32, Increment: true},
   440  		{Name: "created_at", Type: field.TypeUint32},
   441  		{Name: "updated_at", Type: field.TypeUint32},
   442  		{Name: "deleted_at", Type: field.TypeUint32},
   443  		{Name: "ent_id", Type: field.TypeUUID, Unique: true},
   444  		{Name: "fiat_id", Type: field.TypeUUID, Nullable: true},
   445  		{Name: "feed_type", Type: field.TypeString, Nullable: true, Default: "DefaultFeedType"},
   446  		{Name: "feed_fiat_name", Type: field.TypeString, Nullable: true, Default: ""},
   447  		{Name: "disabled", Type: field.TypeBool, Nullable: true, Default: false},
   448  	}
   449  	// FiatCurrencyFeedsTable holds the schema information for the "fiat_currency_feeds" table.
   450  	FiatCurrencyFeedsTable = &schema.Table{
   451  		Name:       "fiat_currency_feeds",
   452  		Columns:    FiatCurrencyFeedsColumns,
   453  		PrimaryKey: []*schema.Column{FiatCurrencyFeedsColumns[0]},
   454  		Indexes: []*schema.Index{
   455  			{
   456  				Name:    "fiatcurrencyfeed_ent_id",
   457  				Unique:  true,
   458  				Columns: []*schema.Column{FiatCurrencyFeedsColumns[4]},
   459  			},
   460  			{
   461  				Name:    "fiatcurrencyfeed_fiat_id_id",
   462  				Unique:  false,
   463  				Columns: []*schema.Column{FiatCurrencyFeedsColumns[5], FiatCurrencyFeedsColumns[0]},
   464  			},
   465  			{
   466  				Name:    "fiatcurrencyfeed_fiat_id",
   467  				Unique:  false,
   468  				Columns: []*schema.Column{FiatCurrencyFeedsColumns[5]},
   469  			},
   470  		},
   471  	}
   472  	// FiatCurrencyHistoriesColumns holds the columns for the "fiat_currency_histories" table.
   473  	FiatCurrencyHistoriesColumns = []*schema.Column{
   474  		{Name: "id", Type: field.TypeUint32, Increment: true},
   475  		{Name: "created_at", Type: field.TypeUint32},
   476  		{Name: "updated_at", Type: field.TypeUint32},
   477  		{Name: "deleted_at", Type: field.TypeUint32},
   478  		{Name: "ent_id", Type: field.TypeUUID, Unique: true},
   479  		{Name: "fiat_id", Type: field.TypeUUID, Nullable: true},
   480  		{Name: "feed_type", Type: field.TypeString, Nullable: true, Default: "DefaultFeedType"},
   481  		{Name: "market_value_low", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
   482  		{Name: "market_value_high", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
   483  	}
   484  	// FiatCurrencyHistoriesTable holds the schema information for the "fiat_currency_histories" table.
   485  	FiatCurrencyHistoriesTable = &schema.Table{
   486  		Name:       "fiat_currency_histories",
   487  		Columns:    FiatCurrencyHistoriesColumns,
   488  		PrimaryKey: []*schema.Column{FiatCurrencyHistoriesColumns[0]},
   489  		Indexes: []*schema.Index{
   490  			{
   491  				Name:    "fiatcurrencyhistory_ent_id",
   492  				Unique:  true,
   493  				Columns: []*schema.Column{FiatCurrencyHistoriesColumns[4]},
   494  			},
   495  		},
   496  	}
   497  	// SettingsColumns holds the columns for the "settings" table.
   498  	SettingsColumns = []*schema.Column{
   499  		{Name: "id", Type: field.TypeUint32, Increment: true},
   500  		{Name: "created_at", Type: field.TypeUint32},
   501  		{Name: "updated_at", Type: field.TypeUint32},
   502  		{Name: "deleted_at", Type: field.TypeUint32},
   503  		{Name: "ent_id", Type: field.TypeUUID, Unique: true},
   504  		{Name: "coin_type_id", Type: field.TypeUUID, Nullable: true},
   505  		{Name: "fee_coin_type_id", Type: field.TypeUUID, Nullable: true},
   506  		{Name: "withdraw_fee_by_stable_usd", Type: field.TypeBool, Nullable: true, Default: true},
   507  		{Name: "withdraw_fee_amount", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
   508  		{Name: "collect_fee_amount", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
   509  		{Name: "hot_wallet_fee_amount", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
   510  		{Name: "low_fee_amount", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
   511  		{Name: "hot_low_fee_amount", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
   512  		{Name: "hot_wallet_account_amount", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
   513  		{Name: "payment_account_collect_amount", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
   514  		{Name: "least_transfer_amount", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
   515  		{Name: "need_memo", Type: field.TypeBool, Nullable: true, Default: false},
   516  		{Name: "refresh_currency", Type: field.TypeBool, Nullable: true, Default: false},
   517  		{Name: "check_new_address_balance", Type: field.TypeBool, Nullable: true, Default: true},
   518  	}
   519  	// SettingsTable holds the schema information for the "settings" table.
   520  	SettingsTable = &schema.Table{
   521  		Name:       "settings",
   522  		Columns:    SettingsColumns,
   523  		PrimaryKey: []*schema.Column{SettingsColumns[0]},
   524  		Indexes: []*schema.Index{
   525  			{
   526  				Name:    "setting_ent_id",
   527  				Unique:  true,
   528  				Columns: []*schema.Column{SettingsColumns[4]},
   529  			},
   530  		},
   531  	}
   532  	// TransColumns holds the columns for the "trans" table.
   533  	TransColumns = []*schema.Column{
   534  		{Name: "id", Type: field.TypeUint32, Increment: true},
   535  		{Name: "created_at", Type: field.TypeUint32},
   536  		{Name: "updated_at", Type: field.TypeUint32},
   537  		{Name: "deleted_at", Type: field.TypeUint32},
   538  		{Name: "ent_id", Type: field.TypeUUID, Unique: true},
   539  		{Name: "coin_type_id", Type: field.TypeUUID, Nullable: true},
   540  		{Name: "from_account_id", Type: field.TypeUUID, Nullable: true},
   541  		{Name: "to_account_id", Type: field.TypeUUID, Nullable: true},
   542  		{Name: "amount", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
   543  		{Name: "fee_amount", Type: field.TypeOther, Nullable: true, SchemaType: map[string]string{"mysql": "decimal(37,18)"}},
   544  		{Name: "chain_tx_id", Type: field.TypeString, Nullable: true, Default: ""},
   545  		{Name: "state", Type: field.TypeString, Nullable: true, Default: "DefaultTxState"},
   546  		{Name: "extra", Type: field.TypeString, Nullable: true, Default: ""},
   547  		{Name: "type", Type: field.TypeString, Nullable: true, Default: "DefaultTxType"},
   548  	}
   549  	// TransTable holds the schema information for the "trans" table.
   550  	TransTable = &schema.Table{
   551  		Name:       "trans",
   552  		Columns:    TransColumns,
   553  		PrimaryKey: []*schema.Column{TransColumns[0]},
   554  		Indexes: []*schema.Index{
   555  			{
   556  				Name:    "tran_ent_id",
   557  				Unique:  true,
   558  				Columns: []*schema.Column{TransColumns[4]},
   559  			},
   560  		},
   561  	}
   562  	// Tables holds all the tables in the schema.
   563  	Tables = []*schema.Table{
   564  		AppCoinsTable,
   565  		ChainBasesTable,
   566  		CoinBasesTable,
   567  		CoinDescriptionsTable,
   568  		CoinExtrasTable,
   569  		CoinFiatsTable,
   570  		CoinFiatCurrenciesTable,
   571  		CoinFiatCurrencyHistoriesTable,
   572  		CoinUsedForsTable,
   573  		CurrenciesTable,
   574  		CurrencyFeedsTable,
   575  		CurrencyHistoriesTable,
   576  		ExchangeRatesTable,
   577  		FiatsTable,
   578  		FiatCurrenciesTable,
   579  		FiatCurrencyFeedsTable,
   580  		FiatCurrencyHistoriesTable,
   581  		SettingsTable,
   582  		TransTable,
   583  	}
   584  )
   585  
   586  func init() {
   587  }