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

     1  // Code generated by ent, DO NOT EDIT.
     2  
     3  package runtime
     4  
     5  import (
     6  	"context"
     7  
     8  	"github.com/NpoolPlatform/chain-middleware/pkg/db/ent/appcoin"
     9  	"github.com/NpoolPlatform/chain-middleware/pkg/db/ent/chainbase"
    10  	"github.com/NpoolPlatform/chain-middleware/pkg/db/ent/coinbase"
    11  	"github.com/NpoolPlatform/chain-middleware/pkg/db/ent/coindescription"
    12  	"github.com/NpoolPlatform/chain-middleware/pkg/db/ent/coinextra"
    13  	"github.com/NpoolPlatform/chain-middleware/pkg/db/ent/coinfiat"
    14  	"github.com/NpoolPlatform/chain-middleware/pkg/db/ent/coinfiatcurrency"
    15  	"github.com/NpoolPlatform/chain-middleware/pkg/db/ent/coinfiatcurrencyhistory"
    16  	"github.com/NpoolPlatform/chain-middleware/pkg/db/ent/coinusedfor"
    17  	"github.com/NpoolPlatform/chain-middleware/pkg/db/ent/currency"
    18  	"github.com/NpoolPlatform/chain-middleware/pkg/db/ent/currencyfeed"
    19  	"github.com/NpoolPlatform/chain-middleware/pkg/db/ent/currencyhistory"
    20  	"github.com/NpoolPlatform/chain-middleware/pkg/db/ent/exchangerate"
    21  	"github.com/NpoolPlatform/chain-middleware/pkg/db/ent/fiat"
    22  	"github.com/NpoolPlatform/chain-middleware/pkg/db/ent/fiatcurrency"
    23  	"github.com/NpoolPlatform/chain-middleware/pkg/db/ent/fiatcurrencyfeed"
    24  	"github.com/NpoolPlatform/chain-middleware/pkg/db/ent/fiatcurrencyhistory"
    25  	"github.com/NpoolPlatform/chain-middleware/pkg/db/ent/schema"
    26  	"github.com/NpoolPlatform/chain-middleware/pkg/db/ent/setting"
    27  	"github.com/NpoolPlatform/chain-middleware/pkg/db/ent/tran"
    28  	"github.com/google/uuid"
    29  	"github.com/shopspring/decimal"
    30  
    31  	"entgo.io/ent"
    32  	"entgo.io/ent/privacy"
    33  )
    34  
    35  // The init function reads all schema descriptors with runtime code
    36  // (default values, validators, hooks and policies) and stitches it
    37  // to their package variables.
    38  func init() {
    39  	appcoinMixin := schema.AppCoin{}.Mixin()
    40  	appcoin.Policy = privacy.NewPolicies(appcoinMixin[0], schema.AppCoin{})
    41  	appcoin.Hooks[0] = func(next ent.Mutator) ent.Mutator {
    42  		return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) {
    43  			if err := appcoin.Policy.EvalMutation(ctx, m); err != nil {
    44  				return nil, err
    45  			}
    46  			return next.Mutate(ctx, m)
    47  		})
    48  	}
    49  	appcoinMixinFields0 := appcoinMixin[0].Fields()
    50  	_ = appcoinMixinFields0
    51  	appcoinMixinFields1 := appcoinMixin[1].Fields()
    52  	_ = appcoinMixinFields1
    53  	appcoinFields := schema.AppCoin{}.Fields()
    54  	_ = appcoinFields
    55  	// appcoinDescCreatedAt is the schema descriptor for created_at field.
    56  	appcoinDescCreatedAt := appcoinMixinFields0[0].Descriptor()
    57  	// appcoin.DefaultCreatedAt holds the default value on creation for the created_at field.
    58  	appcoin.DefaultCreatedAt = appcoinDescCreatedAt.Default.(func() uint32)
    59  	// appcoinDescUpdatedAt is the schema descriptor for updated_at field.
    60  	appcoinDescUpdatedAt := appcoinMixinFields0[1].Descriptor()
    61  	// appcoin.DefaultUpdatedAt holds the default value on creation for the updated_at field.
    62  	appcoin.DefaultUpdatedAt = appcoinDescUpdatedAt.Default.(func() uint32)
    63  	// appcoin.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
    64  	appcoin.UpdateDefaultUpdatedAt = appcoinDescUpdatedAt.UpdateDefault.(func() uint32)
    65  	// appcoinDescDeletedAt is the schema descriptor for deleted_at field.
    66  	appcoinDescDeletedAt := appcoinMixinFields0[2].Descriptor()
    67  	// appcoin.DefaultDeletedAt holds the default value on creation for the deleted_at field.
    68  	appcoin.DefaultDeletedAt = appcoinDescDeletedAt.Default.(func() uint32)
    69  	// appcoinDescEntID is the schema descriptor for ent_id field.
    70  	appcoinDescEntID := appcoinMixinFields1[1].Descriptor()
    71  	// appcoin.DefaultEntID holds the default value on creation for the ent_id field.
    72  	appcoin.DefaultEntID = appcoinDescEntID.Default.(func() uuid.UUID)
    73  	// appcoinDescAppID is the schema descriptor for app_id field.
    74  	appcoinDescAppID := appcoinFields[0].Descriptor()
    75  	// appcoin.DefaultAppID holds the default value on creation for the app_id field.
    76  	appcoin.DefaultAppID = appcoinDescAppID.Default.(func() uuid.UUID)
    77  	// appcoinDescCoinTypeID is the schema descriptor for coin_type_id field.
    78  	appcoinDescCoinTypeID := appcoinFields[1].Descriptor()
    79  	// appcoin.DefaultCoinTypeID holds the default value on creation for the coin_type_id field.
    80  	appcoin.DefaultCoinTypeID = appcoinDescCoinTypeID.Default.(func() uuid.UUID)
    81  	// appcoinDescName is the schema descriptor for name field.
    82  	appcoinDescName := appcoinFields[2].Descriptor()
    83  	// appcoin.DefaultName holds the default value on creation for the name field.
    84  	appcoin.DefaultName = appcoinDescName.Default.(string)
    85  	// appcoinDescDisplayNames is the schema descriptor for display_names field.
    86  	appcoinDescDisplayNames := appcoinFields[3].Descriptor()
    87  	// appcoin.DefaultDisplayNames holds the default value on creation for the display_names field.
    88  	appcoin.DefaultDisplayNames = appcoinDescDisplayNames.Default.([]string)
    89  	// appcoinDescLogo is the schema descriptor for logo field.
    90  	appcoinDescLogo := appcoinFields[4].Descriptor()
    91  	// appcoin.DefaultLogo holds the default value on creation for the logo field.
    92  	appcoin.DefaultLogo = appcoinDescLogo.Default.(string)
    93  	// appcoinDescForPay is the schema descriptor for for_pay field.
    94  	appcoinDescForPay := appcoinFields[5].Descriptor()
    95  	// appcoin.DefaultForPay holds the default value on creation for the for_pay field.
    96  	appcoin.DefaultForPay = appcoinDescForPay.Default.(bool)
    97  	// appcoinDescWithdrawAutoReviewAmount is the schema descriptor for withdraw_auto_review_amount field.
    98  	appcoinDescWithdrawAutoReviewAmount := appcoinFields[6].Descriptor()
    99  	// appcoin.DefaultWithdrawAutoReviewAmount holds the default value on creation for the withdraw_auto_review_amount field.
   100  	appcoin.DefaultWithdrawAutoReviewAmount = appcoinDescWithdrawAutoReviewAmount.Default.(decimal.Decimal)
   101  	// appcoinDescProductPage is the schema descriptor for product_page field.
   102  	appcoinDescProductPage := appcoinFields[7].Descriptor()
   103  	// appcoin.DefaultProductPage holds the default value on creation for the product_page field.
   104  	appcoin.DefaultProductPage = appcoinDescProductPage.Default.(string)
   105  	// appcoinDescDisabled is the schema descriptor for disabled field.
   106  	appcoinDescDisabled := appcoinFields[8].Descriptor()
   107  	// appcoin.DefaultDisabled holds the default value on creation for the disabled field.
   108  	appcoin.DefaultDisabled = appcoinDescDisabled.Default.(bool)
   109  	// appcoinDescDailyRewardAmount is the schema descriptor for daily_reward_amount field.
   110  	appcoinDescDailyRewardAmount := appcoinFields[9].Descriptor()
   111  	// appcoin.DefaultDailyRewardAmount holds the default value on creation for the daily_reward_amount field.
   112  	appcoin.DefaultDailyRewardAmount = appcoinDescDailyRewardAmount.Default.(decimal.Decimal)
   113  	// appcoinDescDisplay is the schema descriptor for display field.
   114  	appcoinDescDisplay := appcoinFields[10].Descriptor()
   115  	// appcoin.DefaultDisplay holds the default value on creation for the display field.
   116  	appcoin.DefaultDisplay = appcoinDescDisplay.Default.(bool)
   117  	// appcoinDescDisplayIndex is the schema descriptor for display_index field.
   118  	appcoinDescDisplayIndex := appcoinFields[11].Descriptor()
   119  	// appcoin.DefaultDisplayIndex holds the default value on creation for the display_index field.
   120  	appcoin.DefaultDisplayIndex = appcoinDescDisplayIndex.Default.(uint32)
   121  	// appcoinDescMaxAmountPerWithdraw is the schema descriptor for max_amount_per_withdraw field.
   122  	appcoinDescMaxAmountPerWithdraw := appcoinFields[12].Descriptor()
   123  	// appcoin.DefaultMaxAmountPerWithdraw holds the default value on creation for the max_amount_per_withdraw field.
   124  	appcoin.DefaultMaxAmountPerWithdraw = appcoinDescMaxAmountPerWithdraw.Default.(decimal.Decimal)
   125  	chainbaseMixin := schema.ChainBase{}.Mixin()
   126  	chainbase.Policy = privacy.NewPolicies(chainbaseMixin[0], schema.ChainBase{})
   127  	chainbase.Hooks[0] = func(next ent.Mutator) ent.Mutator {
   128  		return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) {
   129  			if err := chainbase.Policy.EvalMutation(ctx, m); err != nil {
   130  				return nil, err
   131  			}
   132  			return next.Mutate(ctx, m)
   133  		})
   134  	}
   135  	chainbaseMixinFields0 := chainbaseMixin[0].Fields()
   136  	_ = chainbaseMixinFields0
   137  	chainbaseMixinFields1 := chainbaseMixin[1].Fields()
   138  	_ = chainbaseMixinFields1
   139  	chainbaseFields := schema.ChainBase{}.Fields()
   140  	_ = chainbaseFields
   141  	// chainbaseDescCreatedAt is the schema descriptor for created_at field.
   142  	chainbaseDescCreatedAt := chainbaseMixinFields0[0].Descriptor()
   143  	// chainbase.DefaultCreatedAt holds the default value on creation for the created_at field.
   144  	chainbase.DefaultCreatedAt = chainbaseDescCreatedAt.Default.(func() uint32)
   145  	// chainbaseDescUpdatedAt is the schema descriptor for updated_at field.
   146  	chainbaseDescUpdatedAt := chainbaseMixinFields0[1].Descriptor()
   147  	// chainbase.DefaultUpdatedAt holds the default value on creation for the updated_at field.
   148  	chainbase.DefaultUpdatedAt = chainbaseDescUpdatedAt.Default.(func() uint32)
   149  	// chainbase.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
   150  	chainbase.UpdateDefaultUpdatedAt = chainbaseDescUpdatedAt.UpdateDefault.(func() uint32)
   151  	// chainbaseDescDeletedAt is the schema descriptor for deleted_at field.
   152  	chainbaseDescDeletedAt := chainbaseMixinFields0[2].Descriptor()
   153  	// chainbase.DefaultDeletedAt holds the default value on creation for the deleted_at field.
   154  	chainbase.DefaultDeletedAt = chainbaseDescDeletedAt.Default.(func() uint32)
   155  	// chainbaseDescEntID is the schema descriptor for ent_id field.
   156  	chainbaseDescEntID := chainbaseMixinFields1[1].Descriptor()
   157  	// chainbase.DefaultEntID holds the default value on creation for the ent_id field.
   158  	chainbase.DefaultEntID = chainbaseDescEntID.Default.(func() uuid.UUID)
   159  	// chainbaseDescName is the schema descriptor for name field.
   160  	chainbaseDescName := chainbaseFields[0].Descriptor()
   161  	// chainbase.DefaultName holds the default value on creation for the name field.
   162  	chainbase.DefaultName = chainbaseDescName.Default.(string)
   163  	// chainbaseDescLogo is the schema descriptor for logo field.
   164  	chainbaseDescLogo := chainbaseFields[1].Descriptor()
   165  	// chainbase.DefaultLogo holds the default value on creation for the logo field.
   166  	chainbase.DefaultLogo = chainbaseDescLogo.Default.(string)
   167  	// chainbaseDescNativeUnit is the schema descriptor for native_unit field.
   168  	chainbaseDescNativeUnit := chainbaseFields[2].Descriptor()
   169  	// chainbase.DefaultNativeUnit holds the default value on creation for the native_unit field.
   170  	chainbase.DefaultNativeUnit = chainbaseDescNativeUnit.Default.(string)
   171  	// chainbaseDescAtomicUnit is the schema descriptor for atomic_unit field.
   172  	chainbaseDescAtomicUnit := chainbaseFields[3].Descriptor()
   173  	// chainbase.DefaultAtomicUnit holds the default value on creation for the atomic_unit field.
   174  	chainbase.DefaultAtomicUnit = chainbaseDescAtomicUnit.Default.(string)
   175  	// chainbaseDescUnitExp is the schema descriptor for unit_exp field.
   176  	chainbaseDescUnitExp := chainbaseFields[4].Descriptor()
   177  	// chainbase.DefaultUnitExp holds the default value on creation for the unit_exp field.
   178  	chainbase.DefaultUnitExp = chainbaseDescUnitExp.Default.(uint32)
   179  	// chainbaseDescEnv is the schema descriptor for env field.
   180  	chainbaseDescEnv := chainbaseFields[5].Descriptor()
   181  	// chainbase.DefaultEnv holds the default value on creation for the env field.
   182  	chainbase.DefaultEnv = chainbaseDescEnv.Default.(string)
   183  	// chainbaseDescChainID is the schema descriptor for chain_id field.
   184  	chainbaseDescChainID := chainbaseFields[6].Descriptor()
   185  	// chainbase.DefaultChainID holds the default value on creation for the chain_id field.
   186  	chainbase.DefaultChainID = chainbaseDescChainID.Default.(string)
   187  	// chainbaseDescNickname is the schema descriptor for nickname field.
   188  	chainbaseDescNickname := chainbaseFields[7].Descriptor()
   189  	// chainbase.DefaultNickname holds the default value on creation for the nickname field.
   190  	chainbase.DefaultNickname = chainbaseDescNickname.Default.(string)
   191  	// chainbaseDescGasType is the schema descriptor for gas_type field.
   192  	chainbaseDescGasType := chainbaseFields[8].Descriptor()
   193  	// chainbase.DefaultGasType holds the default value on creation for the gas_type field.
   194  	chainbase.DefaultGasType = chainbaseDescGasType.Default.(string)
   195  	coinbaseMixin := schema.CoinBase{}.Mixin()
   196  	coinbase.Policy = privacy.NewPolicies(coinbaseMixin[0], schema.CoinBase{})
   197  	coinbase.Hooks[0] = func(next ent.Mutator) ent.Mutator {
   198  		return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) {
   199  			if err := coinbase.Policy.EvalMutation(ctx, m); err != nil {
   200  				return nil, err
   201  			}
   202  			return next.Mutate(ctx, m)
   203  		})
   204  	}
   205  	coinbaseMixinFields0 := coinbaseMixin[0].Fields()
   206  	_ = coinbaseMixinFields0
   207  	coinbaseMixinFields1 := coinbaseMixin[1].Fields()
   208  	_ = coinbaseMixinFields1
   209  	coinbaseFields := schema.CoinBase{}.Fields()
   210  	_ = coinbaseFields
   211  	// coinbaseDescCreatedAt is the schema descriptor for created_at field.
   212  	coinbaseDescCreatedAt := coinbaseMixinFields0[0].Descriptor()
   213  	// coinbase.DefaultCreatedAt holds the default value on creation for the created_at field.
   214  	coinbase.DefaultCreatedAt = coinbaseDescCreatedAt.Default.(func() uint32)
   215  	// coinbaseDescUpdatedAt is the schema descriptor for updated_at field.
   216  	coinbaseDescUpdatedAt := coinbaseMixinFields0[1].Descriptor()
   217  	// coinbase.DefaultUpdatedAt holds the default value on creation for the updated_at field.
   218  	coinbase.DefaultUpdatedAt = coinbaseDescUpdatedAt.Default.(func() uint32)
   219  	// coinbase.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
   220  	coinbase.UpdateDefaultUpdatedAt = coinbaseDescUpdatedAt.UpdateDefault.(func() uint32)
   221  	// coinbaseDescDeletedAt is the schema descriptor for deleted_at field.
   222  	coinbaseDescDeletedAt := coinbaseMixinFields0[2].Descriptor()
   223  	// coinbase.DefaultDeletedAt holds the default value on creation for the deleted_at field.
   224  	coinbase.DefaultDeletedAt = coinbaseDescDeletedAt.Default.(func() uint32)
   225  	// coinbaseDescEntID is the schema descriptor for ent_id field.
   226  	coinbaseDescEntID := coinbaseMixinFields1[1].Descriptor()
   227  	// coinbase.DefaultEntID holds the default value on creation for the ent_id field.
   228  	coinbase.DefaultEntID = coinbaseDescEntID.Default.(func() uuid.UUID)
   229  	// coinbaseDescName is the schema descriptor for name field.
   230  	coinbaseDescName := coinbaseFields[0].Descriptor()
   231  	// coinbase.DefaultName holds the default value on creation for the name field.
   232  	coinbase.DefaultName = coinbaseDescName.Default.(string)
   233  	// coinbaseDescLogo is the schema descriptor for logo field.
   234  	coinbaseDescLogo := coinbaseFields[1].Descriptor()
   235  	// coinbase.DefaultLogo holds the default value on creation for the logo field.
   236  	coinbase.DefaultLogo = coinbaseDescLogo.Default.(string)
   237  	// coinbaseDescPresale is the schema descriptor for presale field.
   238  	coinbaseDescPresale := coinbaseFields[2].Descriptor()
   239  	// coinbase.DefaultPresale holds the default value on creation for the presale field.
   240  	coinbase.DefaultPresale = coinbaseDescPresale.Default.(bool)
   241  	// coinbaseDescUnit is the schema descriptor for unit field.
   242  	coinbaseDescUnit := coinbaseFields[3].Descriptor()
   243  	// coinbase.DefaultUnit holds the default value on creation for the unit field.
   244  	coinbase.DefaultUnit = coinbaseDescUnit.Default.(string)
   245  	// coinbaseDescEnv is the schema descriptor for env field.
   246  	coinbaseDescEnv := coinbaseFields[4].Descriptor()
   247  	// coinbase.DefaultEnv holds the default value on creation for the env field.
   248  	coinbase.DefaultEnv = coinbaseDescEnv.Default.(string)
   249  	// coinbaseDescReservedAmount is the schema descriptor for reserved_amount field.
   250  	coinbaseDescReservedAmount := coinbaseFields[5].Descriptor()
   251  	// coinbase.DefaultReservedAmount holds the default value on creation for the reserved_amount field.
   252  	coinbase.DefaultReservedAmount = coinbaseDescReservedAmount.Default.(decimal.Decimal)
   253  	// coinbaseDescForPay is the schema descriptor for for_pay field.
   254  	coinbaseDescForPay := coinbaseFields[6].Descriptor()
   255  	// coinbase.DefaultForPay holds the default value on creation for the for_pay field.
   256  	coinbase.DefaultForPay = coinbaseDescForPay.Default.(bool)
   257  	// coinbaseDescDisabled is the schema descriptor for disabled field.
   258  	coinbaseDescDisabled := coinbaseFields[7].Descriptor()
   259  	// coinbase.DefaultDisabled holds the default value on creation for the disabled field.
   260  	coinbase.DefaultDisabled = coinbaseDescDisabled.Default.(bool)
   261  	coindescriptionMixin := schema.CoinDescription{}.Mixin()
   262  	coindescription.Policy = privacy.NewPolicies(coindescriptionMixin[0], schema.CoinDescription{})
   263  	coindescription.Hooks[0] = func(next ent.Mutator) ent.Mutator {
   264  		return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) {
   265  			if err := coindescription.Policy.EvalMutation(ctx, m); err != nil {
   266  				return nil, err
   267  			}
   268  			return next.Mutate(ctx, m)
   269  		})
   270  	}
   271  	coindescriptionMixinFields0 := coindescriptionMixin[0].Fields()
   272  	_ = coindescriptionMixinFields0
   273  	coindescriptionMixinFields1 := coindescriptionMixin[1].Fields()
   274  	_ = coindescriptionMixinFields1
   275  	coindescriptionFields := schema.CoinDescription{}.Fields()
   276  	_ = coindescriptionFields
   277  	// coindescriptionDescCreatedAt is the schema descriptor for created_at field.
   278  	coindescriptionDescCreatedAt := coindescriptionMixinFields0[0].Descriptor()
   279  	// coindescription.DefaultCreatedAt holds the default value on creation for the created_at field.
   280  	coindescription.DefaultCreatedAt = coindescriptionDescCreatedAt.Default.(func() uint32)
   281  	// coindescriptionDescUpdatedAt is the schema descriptor for updated_at field.
   282  	coindescriptionDescUpdatedAt := coindescriptionMixinFields0[1].Descriptor()
   283  	// coindescription.DefaultUpdatedAt holds the default value on creation for the updated_at field.
   284  	coindescription.DefaultUpdatedAt = coindescriptionDescUpdatedAt.Default.(func() uint32)
   285  	// coindescription.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
   286  	coindescription.UpdateDefaultUpdatedAt = coindescriptionDescUpdatedAt.UpdateDefault.(func() uint32)
   287  	// coindescriptionDescDeletedAt is the schema descriptor for deleted_at field.
   288  	coindescriptionDescDeletedAt := coindescriptionMixinFields0[2].Descriptor()
   289  	// coindescription.DefaultDeletedAt holds the default value on creation for the deleted_at field.
   290  	coindescription.DefaultDeletedAt = coindescriptionDescDeletedAt.Default.(func() uint32)
   291  	// coindescriptionDescEntID is the schema descriptor for ent_id field.
   292  	coindescriptionDescEntID := coindescriptionMixinFields1[1].Descriptor()
   293  	// coindescription.DefaultEntID holds the default value on creation for the ent_id field.
   294  	coindescription.DefaultEntID = coindescriptionDescEntID.Default.(func() uuid.UUID)
   295  	// coindescriptionDescAppID is the schema descriptor for app_id field.
   296  	coindescriptionDescAppID := coindescriptionFields[0].Descriptor()
   297  	// coindescription.DefaultAppID holds the default value on creation for the app_id field.
   298  	coindescription.DefaultAppID = coindescriptionDescAppID.Default.(func() uuid.UUID)
   299  	// coindescriptionDescCoinTypeID is the schema descriptor for coin_type_id field.
   300  	coindescriptionDescCoinTypeID := coindescriptionFields[1].Descriptor()
   301  	// coindescription.DefaultCoinTypeID holds the default value on creation for the coin_type_id field.
   302  	coindescription.DefaultCoinTypeID = coindescriptionDescCoinTypeID.Default.(func() uuid.UUID)
   303  	// coindescriptionDescUsedFor is the schema descriptor for used_for field.
   304  	coindescriptionDescUsedFor := coindescriptionFields[2].Descriptor()
   305  	// coindescription.DefaultUsedFor holds the default value on creation for the used_for field.
   306  	coindescription.DefaultUsedFor = coindescriptionDescUsedFor.Default.(string)
   307  	// coindescriptionDescTitle is the schema descriptor for title field.
   308  	coindescriptionDescTitle := coindescriptionFields[3].Descriptor()
   309  	// coindescription.DefaultTitle holds the default value on creation for the title field.
   310  	coindescription.DefaultTitle = coindescriptionDescTitle.Default.(string)
   311  	// coindescriptionDescMessage is the schema descriptor for message field.
   312  	coindescriptionDescMessage := coindescriptionFields[4].Descriptor()
   313  	// coindescription.DefaultMessage holds the default value on creation for the message field.
   314  	coindescription.DefaultMessage = coindescriptionDescMessage.Default.(string)
   315  	coinextraMixin := schema.CoinExtra{}.Mixin()
   316  	coinextra.Policy = privacy.NewPolicies(coinextraMixin[0], schema.CoinExtra{})
   317  	coinextra.Hooks[0] = func(next ent.Mutator) ent.Mutator {
   318  		return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) {
   319  			if err := coinextra.Policy.EvalMutation(ctx, m); err != nil {
   320  				return nil, err
   321  			}
   322  			return next.Mutate(ctx, m)
   323  		})
   324  	}
   325  	coinextraMixinFields0 := coinextraMixin[0].Fields()
   326  	_ = coinextraMixinFields0
   327  	coinextraMixinFields1 := coinextraMixin[1].Fields()
   328  	_ = coinextraMixinFields1
   329  	coinextraFields := schema.CoinExtra{}.Fields()
   330  	_ = coinextraFields
   331  	// coinextraDescCreatedAt is the schema descriptor for created_at field.
   332  	coinextraDescCreatedAt := coinextraMixinFields0[0].Descriptor()
   333  	// coinextra.DefaultCreatedAt holds the default value on creation for the created_at field.
   334  	coinextra.DefaultCreatedAt = coinextraDescCreatedAt.Default.(func() uint32)
   335  	// coinextraDescUpdatedAt is the schema descriptor for updated_at field.
   336  	coinextraDescUpdatedAt := coinextraMixinFields0[1].Descriptor()
   337  	// coinextra.DefaultUpdatedAt holds the default value on creation for the updated_at field.
   338  	coinextra.DefaultUpdatedAt = coinextraDescUpdatedAt.Default.(func() uint32)
   339  	// coinextra.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
   340  	coinextra.UpdateDefaultUpdatedAt = coinextraDescUpdatedAt.UpdateDefault.(func() uint32)
   341  	// coinextraDescDeletedAt is the schema descriptor for deleted_at field.
   342  	coinextraDescDeletedAt := coinextraMixinFields0[2].Descriptor()
   343  	// coinextra.DefaultDeletedAt holds the default value on creation for the deleted_at field.
   344  	coinextra.DefaultDeletedAt = coinextraDescDeletedAt.Default.(func() uint32)
   345  	// coinextraDescEntID is the schema descriptor for ent_id field.
   346  	coinextraDescEntID := coinextraMixinFields1[1].Descriptor()
   347  	// coinextra.DefaultEntID holds the default value on creation for the ent_id field.
   348  	coinextra.DefaultEntID = coinextraDescEntID.Default.(func() uuid.UUID)
   349  	// coinextraDescCoinTypeID is the schema descriptor for coin_type_id field.
   350  	coinextraDescCoinTypeID := coinextraFields[0].Descriptor()
   351  	// coinextra.DefaultCoinTypeID holds the default value on creation for the coin_type_id field.
   352  	coinextra.DefaultCoinTypeID = coinextraDescCoinTypeID.Default.(func() uuid.UUID)
   353  	// coinextraDescHomePage is the schema descriptor for home_page field.
   354  	coinextraDescHomePage := coinextraFields[1].Descriptor()
   355  	// coinextra.DefaultHomePage holds the default value on creation for the home_page field.
   356  	coinextra.DefaultHomePage = coinextraDescHomePage.Default.(string)
   357  	// coinextraDescSpecs is the schema descriptor for specs field.
   358  	coinextraDescSpecs := coinextraFields[2].Descriptor()
   359  	// coinextra.DefaultSpecs holds the default value on creation for the specs field.
   360  	coinextra.DefaultSpecs = coinextraDescSpecs.Default.(string)
   361  	// coinextraDescStableUsd is the schema descriptor for stable_usd field.
   362  	coinextraDescStableUsd := coinextraFields[3].Descriptor()
   363  	// coinextra.DefaultStableUsd holds the default value on creation for the stable_usd field.
   364  	coinextra.DefaultStableUsd = coinextraDescStableUsd.Default.(bool)
   365  	coinfiatMixin := schema.CoinFiat{}.Mixin()
   366  	coinfiat.Policy = privacy.NewPolicies(coinfiatMixin[0], schema.CoinFiat{})
   367  	coinfiat.Hooks[0] = func(next ent.Mutator) ent.Mutator {
   368  		return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) {
   369  			if err := coinfiat.Policy.EvalMutation(ctx, m); err != nil {
   370  				return nil, err
   371  			}
   372  			return next.Mutate(ctx, m)
   373  		})
   374  	}
   375  	coinfiatMixinFields0 := coinfiatMixin[0].Fields()
   376  	_ = coinfiatMixinFields0
   377  	coinfiatMixinFields1 := coinfiatMixin[1].Fields()
   378  	_ = coinfiatMixinFields1
   379  	coinfiatFields := schema.CoinFiat{}.Fields()
   380  	_ = coinfiatFields
   381  	// coinfiatDescCreatedAt is the schema descriptor for created_at field.
   382  	coinfiatDescCreatedAt := coinfiatMixinFields0[0].Descriptor()
   383  	// coinfiat.DefaultCreatedAt holds the default value on creation for the created_at field.
   384  	coinfiat.DefaultCreatedAt = coinfiatDescCreatedAt.Default.(func() uint32)
   385  	// coinfiatDescUpdatedAt is the schema descriptor for updated_at field.
   386  	coinfiatDescUpdatedAt := coinfiatMixinFields0[1].Descriptor()
   387  	// coinfiat.DefaultUpdatedAt holds the default value on creation for the updated_at field.
   388  	coinfiat.DefaultUpdatedAt = coinfiatDescUpdatedAt.Default.(func() uint32)
   389  	// coinfiat.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
   390  	coinfiat.UpdateDefaultUpdatedAt = coinfiatDescUpdatedAt.UpdateDefault.(func() uint32)
   391  	// coinfiatDescDeletedAt is the schema descriptor for deleted_at field.
   392  	coinfiatDescDeletedAt := coinfiatMixinFields0[2].Descriptor()
   393  	// coinfiat.DefaultDeletedAt holds the default value on creation for the deleted_at field.
   394  	coinfiat.DefaultDeletedAt = coinfiatDescDeletedAt.Default.(func() uint32)
   395  	// coinfiatDescEntID is the schema descriptor for ent_id field.
   396  	coinfiatDescEntID := coinfiatMixinFields1[1].Descriptor()
   397  	// coinfiat.DefaultEntID holds the default value on creation for the ent_id field.
   398  	coinfiat.DefaultEntID = coinfiatDescEntID.Default.(func() uuid.UUID)
   399  	// coinfiatDescCoinTypeID is the schema descriptor for coin_type_id field.
   400  	coinfiatDescCoinTypeID := coinfiatFields[0].Descriptor()
   401  	// coinfiat.DefaultCoinTypeID holds the default value on creation for the coin_type_id field.
   402  	coinfiat.DefaultCoinTypeID = coinfiatDescCoinTypeID.Default.(func() uuid.UUID)
   403  	// coinfiatDescFiatID is the schema descriptor for fiat_id field.
   404  	coinfiatDescFiatID := coinfiatFields[1].Descriptor()
   405  	// coinfiat.DefaultFiatID holds the default value on creation for the fiat_id field.
   406  	coinfiat.DefaultFiatID = coinfiatDescFiatID.Default.(func() uuid.UUID)
   407  	// coinfiatDescFeedType is the schema descriptor for feed_type field.
   408  	coinfiatDescFeedType := coinfiatFields[2].Descriptor()
   409  	// coinfiat.DefaultFeedType holds the default value on creation for the feed_type field.
   410  	coinfiat.DefaultFeedType = coinfiatDescFeedType.Default.(string)
   411  	coinfiatcurrencyMixin := schema.CoinFiatCurrency{}.Mixin()
   412  	coinfiatcurrency.Policy = privacy.NewPolicies(coinfiatcurrencyMixin[0], schema.CoinFiatCurrency{})
   413  	coinfiatcurrency.Hooks[0] = func(next ent.Mutator) ent.Mutator {
   414  		return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) {
   415  			if err := coinfiatcurrency.Policy.EvalMutation(ctx, m); err != nil {
   416  				return nil, err
   417  			}
   418  			return next.Mutate(ctx, m)
   419  		})
   420  	}
   421  	coinfiatcurrencyMixinFields0 := coinfiatcurrencyMixin[0].Fields()
   422  	_ = coinfiatcurrencyMixinFields0
   423  	coinfiatcurrencyMixinFields1 := coinfiatcurrencyMixin[1].Fields()
   424  	_ = coinfiatcurrencyMixinFields1
   425  	coinfiatcurrencyFields := schema.CoinFiatCurrency{}.Fields()
   426  	_ = coinfiatcurrencyFields
   427  	// coinfiatcurrencyDescCreatedAt is the schema descriptor for created_at field.
   428  	coinfiatcurrencyDescCreatedAt := coinfiatcurrencyMixinFields0[0].Descriptor()
   429  	// coinfiatcurrency.DefaultCreatedAt holds the default value on creation for the created_at field.
   430  	coinfiatcurrency.DefaultCreatedAt = coinfiatcurrencyDescCreatedAt.Default.(func() uint32)
   431  	// coinfiatcurrencyDescUpdatedAt is the schema descriptor for updated_at field.
   432  	coinfiatcurrencyDescUpdatedAt := coinfiatcurrencyMixinFields0[1].Descriptor()
   433  	// coinfiatcurrency.DefaultUpdatedAt holds the default value on creation for the updated_at field.
   434  	coinfiatcurrency.DefaultUpdatedAt = coinfiatcurrencyDescUpdatedAt.Default.(func() uint32)
   435  	// coinfiatcurrency.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
   436  	coinfiatcurrency.UpdateDefaultUpdatedAt = coinfiatcurrencyDescUpdatedAt.UpdateDefault.(func() uint32)
   437  	// coinfiatcurrencyDescDeletedAt is the schema descriptor for deleted_at field.
   438  	coinfiatcurrencyDescDeletedAt := coinfiatcurrencyMixinFields0[2].Descriptor()
   439  	// coinfiatcurrency.DefaultDeletedAt holds the default value on creation for the deleted_at field.
   440  	coinfiatcurrency.DefaultDeletedAt = coinfiatcurrencyDescDeletedAt.Default.(func() uint32)
   441  	// coinfiatcurrencyDescEntID is the schema descriptor for ent_id field.
   442  	coinfiatcurrencyDescEntID := coinfiatcurrencyMixinFields1[1].Descriptor()
   443  	// coinfiatcurrency.DefaultEntID holds the default value on creation for the ent_id field.
   444  	coinfiatcurrency.DefaultEntID = coinfiatcurrencyDescEntID.Default.(func() uuid.UUID)
   445  	// coinfiatcurrencyDescCoinTypeID is the schema descriptor for coin_type_id field.
   446  	coinfiatcurrencyDescCoinTypeID := coinfiatcurrencyFields[0].Descriptor()
   447  	// coinfiatcurrency.DefaultCoinTypeID holds the default value on creation for the coin_type_id field.
   448  	coinfiatcurrency.DefaultCoinTypeID = coinfiatcurrencyDescCoinTypeID.Default.(func() uuid.UUID)
   449  	// coinfiatcurrencyDescFiatID is the schema descriptor for fiat_id field.
   450  	coinfiatcurrencyDescFiatID := coinfiatcurrencyFields[1].Descriptor()
   451  	// coinfiatcurrency.DefaultFiatID holds the default value on creation for the fiat_id field.
   452  	coinfiatcurrency.DefaultFiatID = coinfiatcurrencyDescFiatID.Default.(func() uuid.UUID)
   453  	// coinfiatcurrencyDescFeedType is the schema descriptor for feed_type field.
   454  	coinfiatcurrencyDescFeedType := coinfiatcurrencyFields[2].Descriptor()
   455  	// coinfiatcurrency.DefaultFeedType holds the default value on creation for the feed_type field.
   456  	coinfiatcurrency.DefaultFeedType = coinfiatcurrencyDescFeedType.Default.(string)
   457  	// coinfiatcurrencyDescMarketValueLow is the schema descriptor for market_value_low field.
   458  	coinfiatcurrencyDescMarketValueLow := coinfiatcurrencyFields[3].Descriptor()
   459  	// coinfiatcurrency.DefaultMarketValueLow holds the default value on creation for the market_value_low field.
   460  	coinfiatcurrency.DefaultMarketValueLow = coinfiatcurrencyDescMarketValueLow.Default.(decimal.Decimal)
   461  	// coinfiatcurrencyDescMarketValueHigh is the schema descriptor for market_value_high field.
   462  	coinfiatcurrencyDescMarketValueHigh := coinfiatcurrencyFields[4].Descriptor()
   463  	// coinfiatcurrency.DefaultMarketValueHigh holds the default value on creation for the market_value_high field.
   464  	coinfiatcurrency.DefaultMarketValueHigh = coinfiatcurrencyDescMarketValueHigh.Default.(decimal.Decimal)
   465  	coinfiatcurrencyhistoryMixin := schema.CoinFiatCurrencyHistory{}.Mixin()
   466  	coinfiatcurrencyhistory.Policy = privacy.NewPolicies(coinfiatcurrencyhistoryMixin[0], schema.CoinFiatCurrencyHistory{})
   467  	coinfiatcurrencyhistory.Hooks[0] = func(next ent.Mutator) ent.Mutator {
   468  		return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) {
   469  			if err := coinfiatcurrencyhistory.Policy.EvalMutation(ctx, m); err != nil {
   470  				return nil, err
   471  			}
   472  			return next.Mutate(ctx, m)
   473  		})
   474  	}
   475  	coinfiatcurrencyhistoryMixinFields0 := coinfiatcurrencyhistoryMixin[0].Fields()
   476  	_ = coinfiatcurrencyhistoryMixinFields0
   477  	coinfiatcurrencyhistoryMixinFields1 := coinfiatcurrencyhistoryMixin[1].Fields()
   478  	_ = coinfiatcurrencyhistoryMixinFields1
   479  	coinfiatcurrencyhistoryFields := schema.CoinFiatCurrencyHistory{}.Fields()
   480  	_ = coinfiatcurrencyhistoryFields
   481  	// coinfiatcurrencyhistoryDescCreatedAt is the schema descriptor for created_at field.
   482  	coinfiatcurrencyhistoryDescCreatedAt := coinfiatcurrencyhistoryMixinFields0[0].Descriptor()
   483  	// coinfiatcurrencyhistory.DefaultCreatedAt holds the default value on creation for the created_at field.
   484  	coinfiatcurrencyhistory.DefaultCreatedAt = coinfiatcurrencyhistoryDescCreatedAt.Default.(func() uint32)
   485  	// coinfiatcurrencyhistoryDescUpdatedAt is the schema descriptor for updated_at field.
   486  	coinfiatcurrencyhistoryDescUpdatedAt := coinfiatcurrencyhistoryMixinFields0[1].Descriptor()
   487  	// coinfiatcurrencyhistory.DefaultUpdatedAt holds the default value on creation for the updated_at field.
   488  	coinfiatcurrencyhistory.DefaultUpdatedAt = coinfiatcurrencyhistoryDescUpdatedAt.Default.(func() uint32)
   489  	// coinfiatcurrencyhistory.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
   490  	coinfiatcurrencyhistory.UpdateDefaultUpdatedAt = coinfiatcurrencyhistoryDescUpdatedAt.UpdateDefault.(func() uint32)
   491  	// coinfiatcurrencyhistoryDescDeletedAt is the schema descriptor for deleted_at field.
   492  	coinfiatcurrencyhistoryDescDeletedAt := coinfiatcurrencyhistoryMixinFields0[2].Descriptor()
   493  	// coinfiatcurrencyhistory.DefaultDeletedAt holds the default value on creation for the deleted_at field.
   494  	coinfiatcurrencyhistory.DefaultDeletedAt = coinfiatcurrencyhistoryDescDeletedAt.Default.(func() uint32)
   495  	// coinfiatcurrencyhistoryDescEntID is the schema descriptor for ent_id field.
   496  	coinfiatcurrencyhistoryDescEntID := coinfiatcurrencyhistoryMixinFields1[1].Descriptor()
   497  	// coinfiatcurrencyhistory.DefaultEntID holds the default value on creation for the ent_id field.
   498  	coinfiatcurrencyhistory.DefaultEntID = coinfiatcurrencyhistoryDescEntID.Default.(func() uuid.UUID)
   499  	// coinfiatcurrencyhistoryDescCoinTypeID is the schema descriptor for coin_type_id field.
   500  	coinfiatcurrencyhistoryDescCoinTypeID := coinfiatcurrencyhistoryFields[0].Descriptor()
   501  	// coinfiatcurrencyhistory.DefaultCoinTypeID holds the default value on creation for the coin_type_id field.
   502  	coinfiatcurrencyhistory.DefaultCoinTypeID = coinfiatcurrencyhistoryDescCoinTypeID.Default.(func() uuid.UUID)
   503  	// coinfiatcurrencyhistoryDescFiatID is the schema descriptor for fiat_id field.
   504  	coinfiatcurrencyhistoryDescFiatID := coinfiatcurrencyhistoryFields[1].Descriptor()
   505  	// coinfiatcurrencyhistory.DefaultFiatID holds the default value on creation for the fiat_id field.
   506  	coinfiatcurrencyhistory.DefaultFiatID = coinfiatcurrencyhistoryDescFiatID.Default.(func() uuid.UUID)
   507  	// coinfiatcurrencyhistoryDescFeedType is the schema descriptor for feed_type field.
   508  	coinfiatcurrencyhistoryDescFeedType := coinfiatcurrencyhistoryFields[2].Descriptor()
   509  	// coinfiatcurrencyhistory.DefaultFeedType holds the default value on creation for the feed_type field.
   510  	coinfiatcurrencyhistory.DefaultFeedType = coinfiatcurrencyhistoryDescFeedType.Default.(string)
   511  	// coinfiatcurrencyhistoryDescMarketValueLow is the schema descriptor for market_value_low field.
   512  	coinfiatcurrencyhistoryDescMarketValueLow := coinfiatcurrencyhistoryFields[3].Descriptor()
   513  	// coinfiatcurrencyhistory.DefaultMarketValueLow holds the default value on creation for the market_value_low field.
   514  	coinfiatcurrencyhistory.DefaultMarketValueLow = coinfiatcurrencyhistoryDescMarketValueLow.Default.(decimal.Decimal)
   515  	// coinfiatcurrencyhistoryDescMarketValueHigh is the schema descriptor for market_value_high field.
   516  	coinfiatcurrencyhistoryDescMarketValueHigh := coinfiatcurrencyhistoryFields[4].Descriptor()
   517  	// coinfiatcurrencyhistory.DefaultMarketValueHigh holds the default value on creation for the market_value_high field.
   518  	coinfiatcurrencyhistory.DefaultMarketValueHigh = coinfiatcurrencyhistoryDescMarketValueHigh.Default.(decimal.Decimal)
   519  	coinusedforMixin := schema.CoinUsedFor{}.Mixin()
   520  	coinusedfor.Policy = privacy.NewPolicies(coinusedforMixin[0], schema.CoinUsedFor{})
   521  	coinusedfor.Hooks[0] = func(next ent.Mutator) ent.Mutator {
   522  		return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) {
   523  			if err := coinusedfor.Policy.EvalMutation(ctx, m); err != nil {
   524  				return nil, err
   525  			}
   526  			return next.Mutate(ctx, m)
   527  		})
   528  	}
   529  	coinusedforMixinFields0 := coinusedforMixin[0].Fields()
   530  	_ = coinusedforMixinFields0
   531  	coinusedforMixinFields1 := coinusedforMixin[1].Fields()
   532  	_ = coinusedforMixinFields1
   533  	coinusedforFields := schema.CoinUsedFor{}.Fields()
   534  	_ = coinusedforFields
   535  	// coinusedforDescCreatedAt is the schema descriptor for created_at field.
   536  	coinusedforDescCreatedAt := coinusedforMixinFields0[0].Descriptor()
   537  	// coinusedfor.DefaultCreatedAt holds the default value on creation for the created_at field.
   538  	coinusedfor.DefaultCreatedAt = coinusedforDescCreatedAt.Default.(func() uint32)
   539  	// coinusedforDescUpdatedAt is the schema descriptor for updated_at field.
   540  	coinusedforDescUpdatedAt := coinusedforMixinFields0[1].Descriptor()
   541  	// coinusedfor.DefaultUpdatedAt holds the default value on creation for the updated_at field.
   542  	coinusedfor.DefaultUpdatedAt = coinusedforDescUpdatedAt.Default.(func() uint32)
   543  	// coinusedfor.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
   544  	coinusedfor.UpdateDefaultUpdatedAt = coinusedforDescUpdatedAt.UpdateDefault.(func() uint32)
   545  	// coinusedforDescDeletedAt is the schema descriptor for deleted_at field.
   546  	coinusedforDescDeletedAt := coinusedforMixinFields0[2].Descriptor()
   547  	// coinusedfor.DefaultDeletedAt holds the default value on creation for the deleted_at field.
   548  	coinusedfor.DefaultDeletedAt = coinusedforDescDeletedAt.Default.(func() uint32)
   549  	// coinusedforDescEntID is the schema descriptor for ent_id field.
   550  	coinusedforDescEntID := coinusedforMixinFields1[1].Descriptor()
   551  	// coinusedfor.DefaultEntID holds the default value on creation for the ent_id field.
   552  	coinusedfor.DefaultEntID = coinusedforDescEntID.Default.(func() uuid.UUID)
   553  	// coinusedforDescCoinTypeID is the schema descriptor for coin_type_id field.
   554  	coinusedforDescCoinTypeID := coinusedforFields[0].Descriptor()
   555  	// coinusedfor.DefaultCoinTypeID holds the default value on creation for the coin_type_id field.
   556  	coinusedfor.DefaultCoinTypeID = coinusedforDescCoinTypeID.Default.(func() uuid.UUID)
   557  	// coinusedforDescUsedFor is the schema descriptor for used_for field.
   558  	coinusedforDescUsedFor := coinusedforFields[1].Descriptor()
   559  	// coinusedfor.DefaultUsedFor holds the default value on creation for the used_for field.
   560  	coinusedfor.DefaultUsedFor = coinusedforDescUsedFor.Default.(string)
   561  	// coinusedforDescPriority is the schema descriptor for priority field.
   562  	coinusedforDescPriority := coinusedforFields[2].Descriptor()
   563  	// coinusedfor.DefaultPriority holds the default value on creation for the priority field.
   564  	coinusedfor.DefaultPriority = coinusedforDescPriority.Default.(uint32)
   565  	currencyMixin := schema.Currency{}.Mixin()
   566  	currency.Policy = privacy.NewPolicies(currencyMixin[0], schema.Currency{})
   567  	currency.Hooks[0] = func(next ent.Mutator) ent.Mutator {
   568  		return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) {
   569  			if err := currency.Policy.EvalMutation(ctx, m); err != nil {
   570  				return nil, err
   571  			}
   572  			return next.Mutate(ctx, m)
   573  		})
   574  	}
   575  	currencyMixinFields0 := currencyMixin[0].Fields()
   576  	_ = currencyMixinFields0
   577  	currencyMixinFields1 := currencyMixin[1].Fields()
   578  	_ = currencyMixinFields1
   579  	currencyFields := schema.Currency{}.Fields()
   580  	_ = currencyFields
   581  	// currencyDescCreatedAt is the schema descriptor for created_at field.
   582  	currencyDescCreatedAt := currencyMixinFields0[0].Descriptor()
   583  	// currency.DefaultCreatedAt holds the default value on creation for the created_at field.
   584  	currency.DefaultCreatedAt = currencyDescCreatedAt.Default.(func() uint32)
   585  	// currencyDescUpdatedAt is the schema descriptor for updated_at field.
   586  	currencyDescUpdatedAt := currencyMixinFields0[1].Descriptor()
   587  	// currency.DefaultUpdatedAt holds the default value on creation for the updated_at field.
   588  	currency.DefaultUpdatedAt = currencyDescUpdatedAt.Default.(func() uint32)
   589  	// currency.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
   590  	currency.UpdateDefaultUpdatedAt = currencyDescUpdatedAt.UpdateDefault.(func() uint32)
   591  	// currencyDescDeletedAt is the schema descriptor for deleted_at field.
   592  	currencyDescDeletedAt := currencyMixinFields0[2].Descriptor()
   593  	// currency.DefaultDeletedAt holds the default value on creation for the deleted_at field.
   594  	currency.DefaultDeletedAt = currencyDescDeletedAt.Default.(func() uint32)
   595  	// currencyDescEntID is the schema descriptor for ent_id field.
   596  	currencyDescEntID := currencyMixinFields1[1].Descriptor()
   597  	// currency.DefaultEntID holds the default value on creation for the ent_id field.
   598  	currency.DefaultEntID = currencyDescEntID.Default.(func() uuid.UUID)
   599  	// currencyDescCoinTypeID is the schema descriptor for coin_type_id field.
   600  	currencyDescCoinTypeID := currencyFields[0].Descriptor()
   601  	// currency.DefaultCoinTypeID holds the default value on creation for the coin_type_id field.
   602  	currency.DefaultCoinTypeID = currencyDescCoinTypeID.Default.(func() uuid.UUID)
   603  	// currencyDescFeedType is the schema descriptor for feed_type field.
   604  	currencyDescFeedType := currencyFields[1].Descriptor()
   605  	// currency.DefaultFeedType holds the default value on creation for the feed_type field.
   606  	currency.DefaultFeedType = currencyDescFeedType.Default.(string)
   607  	// currencyDescMarketValueHigh is the schema descriptor for market_value_high field.
   608  	currencyDescMarketValueHigh := currencyFields[2].Descriptor()
   609  	// currency.DefaultMarketValueHigh holds the default value on creation for the market_value_high field.
   610  	currency.DefaultMarketValueHigh = currencyDescMarketValueHigh.Default.(decimal.Decimal)
   611  	// currencyDescMarketValueLow is the schema descriptor for market_value_low field.
   612  	currencyDescMarketValueLow := currencyFields[3].Descriptor()
   613  	// currency.DefaultMarketValueLow holds the default value on creation for the market_value_low field.
   614  	currency.DefaultMarketValueLow = currencyDescMarketValueLow.Default.(decimal.Decimal)
   615  	currencyfeedMixin := schema.CurrencyFeed{}.Mixin()
   616  	currencyfeed.Policy = privacy.NewPolicies(currencyfeedMixin[0], schema.CurrencyFeed{})
   617  	currencyfeed.Hooks[0] = func(next ent.Mutator) ent.Mutator {
   618  		return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) {
   619  			if err := currencyfeed.Policy.EvalMutation(ctx, m); err != nil {
   620  				return nil, err
   621  			}
   622  			return next.Mutate(ctx, m)
   623  		})
   624  	}
   625  	currencyfeedMixinFields0 := currencyfeedMixin[0].Fields()
   626  	_ = currencyfeedMixinFields0
   627  	currencyfeedMixinFields1 := currencyfeedMixin[1].Fields()
   628  	_ = currencyfeedMixinFields1
   629  	currencyfeedFields := schema.CurrencyFeed{}.Fields()
   630  	_ = currencyfeedFields
   631  	// currencyfeedDescCreatedAt is the schema descriptor for created_at field.
   632  	currencyfeedDescCreatedAt := currencyfeedMixinFields0[0].Descriptor()
   633  	// currencyfeed.DefaultCreatedAt holds the default value on creation for the created_at field.
   634  	currencyfeed.DefaultCreatedAt = currencyfeedDescCreatedAt.Default.(func() uint32)
   635  	// currencyfeedDescUpdatedAt is the schema descriptor for updated_at field.
   636  	currencyfeedDescUpdatedAt := currencyfeedMixinFields0[1].Descriptor()
   637  	// currencyfeed.DefaultUpdatedAt holds the default value on creation for the updated_at field.
   638  	currencyfeed.DefaultUpdatedAt = currencyfeedDescUpdatedAt.Default.(func() uint32)
   639  	// currencyfeed.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
   640  	currencyfeed.UpdateDefaultUpdatedAt = currencyfeedDescUpdatedAt.UpdateDefault.(func() uint32)
   641  	// currencyfeedDescDeletedAt is the schema descriptor for deleted_at field.
   642  	currencyfeedDescDeletedAt := currencyfeedMixinFields0[2].Descriptor()
   643  	// currencyfeed.DefaultDeletedAt holds the default value on creation for the deleted_at field.
   644  	currencyfeed.DefaultDeletedAt = currencyfeedDescDeletedAt.Default.(func() uint32)
   645  	// currencyfeedDescEntID is the schema descriptor for ent_id field.
   646  	currencyfeedDescEntID := currencyfeedMixinFields1[1].Descriptor()
   647  	// currencyfeed.DefaultEntID holds the default value on creation for the ent_id field.
   648  	currencyfeed.DefaultEntID = currencyfeedDescEntID.Default.(func() uuid.UUID)
   649  	// currencyfeedDescCoinTypeID is the schema descriptor for coin_type_id field.
   650  	currencyfeedDescCoinTypeID := currencyfeedFields[0].Descriptor()
   651  	// currencyfeed.DefaultCoinTypeID holds the default value on creation for the coin_type_id field.
   652  	currencyfeed.DefaultCoinTypeID = currencyfeedDescCoinTypeID.Default.(func() uuid.UUID)
   653  	// currencyfeedDescFeedType is the schema descriptor for feed_type field.
   654  	currencyfeedDescFeedType := currencyfeedFields[1].Descriptor()
   655  	// currencyfeed.DefaultFeedType holds the default value on creation for the feed_type field.
   656  	currencyfeed.DefaultFeedType = currencyfeedDescFeedType.Default.(string)
   657  	// currencyfeedDescFeedCoinName is the schema descriptor for feed_coin_name field.
   658  	currencyfeedDescFeedCoinName := currencyfeedFields[2].Descriptor()
   659  	// currencyfeed.DefaultFeedCoinName holds the default value on creation for the feed_coin_name field.
   660  	currencyfeed.DefaultFeedCoinName = currencyfeedDescFeedCoinName.Default.(string)
   661  	// currencyfeedDescDisabled is the schema descriptor for disabled field.
   662  	currencyfeedDescDisabled := currencyfeedFields[3].Descriptor()
   663  	// currencyfeed.DefaultDisabled holds the default value on creation for the disabled field.
   664  	currencyfeed.DefaultDisabled = currencyfeedDescDisabled.Default.(bool)
   665  	currencyhistoryMixin := schema.CurrencyHistory{}.Mixin()
   666  	currencyhistory.Policy = privacy.NewPolicies(currencyhistoryMixin[0], schema.CurrencyHistory{})
   667  	currencyhistory.Hooks[0] = func(next ent.Mutator) ent.Mutator {
   668  		return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) {
   669  			if err := currencyhistory.Policy.EvalMutation(ctx, m); err != nil {
   670  				return nil, err
   671  			}
   672  			return next.Mutate(ctx, m)
   673  		})
   674  	}
   675  	currencyhistoryMixinFields0 := currencyhistoryMixin[0].Fields()
   676  	_ = currencyhistoryMixinFields0
   677  	currencyhistoryMixinFields1 := currencyhistoryMixin[1].Fields()
   678  	_ = currencyhistoryMixinFields1
   679  	currencyhistoryFields := schema.CurrencyHistory{}.Fields()
   680  	_ = currencyhistoryFields
   681  	// currencyhistoryDescCreatedAt is the schema descriptor for created_at field.
   682  	currencyhistoryDescCreatedAt := currencyhistoryMixinFields0[0].Descriptor()
   683  	// currencyhistory.DefaultCreatedAt holds the default value on creation for the created_at field.
   684  	currencyhistory.DefaultCreatedAt = currencyhistoryDescCreatedAt.Default.(func() uint32)
   685  	// currencyhistoryDescUpdatedAt is the schema descriptor for updated_at field.
   686  	currencyhistoryDescUpdatedAt := currencyhistoryMixinFields0[1].Descriptor()
   687  	// currencyhistory.DefaultUpdatedAt holds the default value on creation for the updated_at field.
   688  	currencyhistory.DefaultUpdatedAt = currencyhistoryDescUpdatedAt.Default.(func() uint32)
   689  	// currencyhistory.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
   690  	currencyhistory.UpdateDefaultUpdatedAt = currencyhistoryDescUpdatedAt.UpdateDefault.(func() uint32)
   691  	// currencyhistoryDescDeletedAt is the schema descriptor for deleted_at field.
   692  	currencyhistoryDescDeletedAt := currencyhistoryMixinFields0[2].Descriptor()
   693  	// currencyhistory.DefaultDeletedAt holds the default value on creation for the deleted_at field.
   694  	currencyhistory.DefaultDeletedAt = currencyhistoryDescDeletedAt.Default.(func() uint32)
   695  	// currencyhistoryDescEntID is the schema descriptor for ent_id field.
   696  	currencyhistoryDescEntID := currencyhistoryMixinFields1[1].Descriptor()
   697  	// currencyhistory.DefaultEntID holds the default value on creation for the ent_id field.
   698  	currencyhistory.DefaultEntID = currencyhistoryDescEntID.Default.(func() uuid.UUID)
   699  	// currencyhistoryDescCoinTypeID is the schema descriptor for coin_type_id field.
   700  	currencyhistoryDescCoinTypeID := currencyhistoryFields[0].Descriptor()
   701  	// currencyhistory.DefaultCoinTypeID holds the default value on creation for the coin_type_id field.
   702  	currencyhistory.DefaultCoinTypeID = currencyhistoryDescCoinTypeID.Default.(func() uuid.UUID)
   703  	// currencyhistoryDescFeedType is the schema descriptor for feed_type field.
   704  	currencyhistoryDescFeedType := currencyhistoryFields[1].Descriptor()
   705  	// currencyhistory.DefaultFeedType holds the default value on creation for the feed_type field.
   706  	currencyhistory.DefaultFeedType = currencyhistoryDescFeedType.Default.(string)
   707  	// currencyhistoryDescMarketValueHigh is the schema descriptor for market_value_high field.
   708  	currencyhistoryDescMarketValueHigh := currencyhistoryFields[2].Descriptor()
   709  	// currencyhistory.DefaultMarketValueHigh holds the default value on creation for the market_value_high field.
   710  	currencyhistory.DefaultMarketValueHigh = currencyhistoryDescMarketValueHigh.Default.(decimal.Decimal)
   711  	// currencyhistoryDescMarketValueLow is the schema descriptor for market_value_low field.
   712  	currencyhistoryDescMarketValueLow := currencyhistoryFields[3].Descriptor()
   713  	// currencyhistory.DefaultMarketValueLow holds the default value on creation for the market_value_low field.
   714  	currencyhistory.DefaultMarketValueLow = currencyhistoryDescMarketValueLow.Default.(decimal.Decimal)
   715  	exchangerateMixin := schema.ExchangeRate{}.Mixin()
   716  	exchangerate.Policy = privacy.NewPolicies(exchangerateMixin[0], schema.ExchangeRate{})
   717  	exchangerate.Hooks[0] = func(next ent.Mutator) ent.Mutator {
   718  		return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) {
   719  			if err := exchangerate.Policy.EvalMutation(ctx, m); err != nil {
   720  				return nil, err
   721  			}
   722  			return next.Mutate(ctx, m)
   723  		})
   724  	}
   725  	exchangerateMixinFields0 := exchangerateMixin[0].Fields()
   726  	_ = exchangerateMixinFields0
   727  	exchangerateMixinFields1 := exchangerateMixin[1].Fields()
   728  	_ = exchangerateMixinFields1
   729  	exchangerateFields := schema.ExchangeRate{}.Fields()
   730  	_ = exchangerateFields
   731  	// exchangerateDescCreatedAt is the schema descriptor for created_at field.
   732  	exchangerateDescCreatedAt := exchangerateMixinFields0[0].Descriptor()
   733  	// exchangerate.DefaultCreatedAt holds the default value on creation for the created_at field.
   734  	exchangerate.DefaultCreatedAt = exchangerateDescCreatedAt.Default.(func() uint32)
   735  	// exchangerateDescUpdatedAt is the schema descriptor for updated_at field.
   736  	exchangerateDescUpdatedAt := exchangerateMixinFields0[1].Descriptor()
   737  	// exchangerate.DefaultUpdatedAt holds the default value on creation for the updated_at field.
   738  	exchangerate.DefaultUpdatedAt = exchangerateDescUpdatedAt.Default.(func() uint32)
   739  	// exchangerate.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
   740  	exchangerate.UpdateDefaultUpdatedAt = exchangerateDescUpdatedAt.UpdateDefault.(func() uint32)
   741  	// exchangerateDescDeletedAt is the schema descriptor for deleted_at field.
   742  	exchangerateDescDeletedAt := exchangerateMixinFields0[2].Descriptor()
   743  	// exchangerate.DefaultDeletedAt holds the default value on creation for the deleted_at field.
   744  	exchangerate.DefaultDeletedAt = exchangerateDescDeletedAt.Default.(func() uint32)
   745  	// exchangerateDescEntID is the schema descriptor for ent_id field.
   746  	exchangerateDescEntID := exchangerateMixinFields1[1].Descriptor()
   747  	// exchangerate.DefaultEntID holds the default value on creation for the ent_id field.
   748  	exchangerate.DefaultEntID = exchangerateDescEntID.Default.(func() uuid.UUID)
   749  	// exchangerateDescAppID is the schema descriptor for app_id field.
   750  	exchangerateDescAppID := exchangerateFields[0].Descriptor()
   751  	// exchangerate.DefaultAppID holds the default value on creation for the app_id field.
   752  	exchangerate.DefaultAppID = exchangerateDescAppID.Default.(func() uuid.UUID)
   753  	// exchangerateDescCoinTypeID is the schema descriptor for coin_type_id field.
   754  	exchangerateDescCoinTypeID := exchangerateFields[1].Descriptor()
   755  	// exchangerate.DefaultCoinTypeID holds the default value on creation for the coin_type_id field.
   756  	exchangerate.DefaultCoinTypeID = exchangerateDescCoinTypeID.Default.(func() uuid.UUID)
   757  	// exchangerateDescMarketValue is the schema descriptor for market_value field.
   758  	exchangerateDescMarketValue := exchangerateFields[2].Descriptor()
   759  	// exchangerate.DefaultMarketValue holds the default value on creation for the market_value field.
   760  	exchangerate.DefaultMarketValue = exchangerateDescMarketValue.Default.(decimal.Decimal)
   761  	// exchangerateDescSettleValue is the schema descriptor for settle_value field.
   762  	exchangerateDescSettleValue := exchangerateFields[3].Descriptor()
   763  	// exchangerate.DefaultSettleValue holds the default value on creation for the settle_value field.
   764  	exchangerate.DefaultSettleValue = exchangerateDescSettleValue.Default.(decimal.Decimal)
   765  	// exchangerateDescSettlePercent is the schema descriptor for settle_percent field.
   766  	exchangerateDescSettlePercent := exchangerateFields[4].Descriptor()
   767  	// exchangerate.DefaultSettlePercent holds the default value on creation for the settle_percent field.
   768  	exchangerate.DefaultSettlePercent = exchangerateDescSettlePercent.Default.(uint32)
   769  	// exchangerateDescSettleTips is the schema descriptor for settle_tips field.
   770  	exchangerateDescSettleTips := exchangerateFields[5].Descriptor()
   771  	// exchangerate.DefaultSettleTips holds the default value on creation for the settle_tips field.
   772  	exchangerate.DefaultSettleTips = exchangerateDescSettleTips.Default.([]string)
   773  	// exchangerateDescSetter is the schema descriptor for setter field.
   774  	exchangerateDescSetter := exchangerateFields[6].Descriptor()
   775  	// exchangerate.DefaultSetter holds the default value on creation for the setter field.
   776  	exchangerate.DefaultSetter = exchangerateDescSetter.Default.(func() uuid.UUID)
   777  	fiatMixin := schema.Fiat{}.Mixin()
   778  	fiat.Policy = privacy.NewPolicies(fiatMixin[0], schema.Fiat{})
   779  	fiat.Hooks[0] = func(next ent.Mutator) ent.Mutator {
   780  		return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) {
   781  			if err := fiat.Policy.EvalMutation(ctx, m); err != nil {
   782  				return nil, err
   783  			}
   784  			return next.Mutate(ctx, m)
   785  		})
   786  	}
   787  	fiatMixinFields0 := fiatMixin[0].Fields()
   788  	_ = fiatMixinFields0
   789  	fiatMixinFields1 := fiatMixin[1].Fields()
   790  	_ = fiatMixinFields1
   791  	fiatFields := schema.Fiat{}.Fields()
   792  	_ = fiatFields
   793  	// fiatDescCreatedAt is the schema descriptor for created_at field.
   794  	fiatDescCreatedAt := fiatMixinFields0[0].Descriptor()
   795  	// fiat.DefaultCreatedAt holds the default value on creation for the created_at field.
   796  	fiat.DefaultCreatedAt = fiatDescCreatedAt.Default.(func() uint32)
   797  	// fiatDescUpdatedAt is the schema descriptor for updated_at field.
   798  	fiatDescUpdatedAt := fiatMixinFields0[1].Descriptor()
   799  	// fiat.DefaultUpdatedAt holds the default value on creation for the updated_at field.
   800  	fiat.DefaultUpdatedAt = fiatDescUpdatedAt.Default.(func() uint32)
   801  	// fiat.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
   802  	fiat.UpdateDefaultUpdatedAt = fiatDescUpdatedAt.UpdateDefault.(func() uint32)
   803  	// fiatDescDeletedAt is the schema descriptor for deleted_at field.
   804  	fiatDescDeletedAt := fiatMixinFields0[2].Descriptor()
   805  	// fiat.DefaultDeletedAt holds the default value on creation for the deleted_at field.
   806  	fiat.DefaultDeletedAt = fiatDescDeletedAt.Default.(func() uint32)
   807  	// fiatDescEntID is the schema descriptor for ent_id field.
   808  	fiatDescEntID := fiatMixinFields1[1].Descriptor()
   809  	// fiat.DefaultEntID holds the default value on creation for the ent_id field.
   810  	fiat.DefaultEntID = fiatDescEntID.Default.(func() uuid.UUID)
   811  	// fiatDescName is the schema descriptor for name field.
   812  	fiatDescName := fiatFields[0].Descriptor()
   813  	// fiat.DefaultName holds the default value on creation for the name field.
   814  	fiat.DefaultName = fiatDescName.Default.(string)
   815  	// fiatDescLogo is the schema descriptor for logo field.
   816  	fiatDescLogo := fiatFields[1].Descriptor()
   817  	// fiat.DefaultLogo holds the default value on creation for the logo field.
   818  	fiat.DefaultLogo = fiatDescLogo.Default.(string)
   819  	// fiatDescUnit is the schema descriptor for unit field.
   820  	fiatDescUnit := fiatFields[2].Descriptor()
   821  	// fiat.DefaultUnit holds the default value on creation for the unit field.
   822  	fiat.DefaultUnit = fiatDescUnit.Default.(string)
   823  	fiatcurrencyMixin := schema.FiatCurrency{}.Mixin()
   824  	fiatcurrency.Policy = privacy.NewPolicies(fiatcurrencyMixin[0], schema.FiatCurrency{})
   825  	fiatcurrency.Hooks[0] = func(next ent.Mutator) ent.Mutator {
   826  		return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) {
   827  			if err := fiatcurrency.Policy.EvalMutation(ctx, m); err != nil {
   828  				return nil, err
   829  			}
   830  			return next.Mutate(ctx, m)
   831  		})
   832  	}
   833  	fiatcurrencyMixinFields0 := fiatcurrencyMixin[0].Fields()
   834  	_ = fiatcurrencyMixinFields0
   835  	fiatcurrencyMixinFields1 := fiatcurrencyMixin[1].Fields()
   836  	_ = fiatcurrencyMixinFields1
   837  	fiatcurrencyFields := schema.FiatCurrency{}.Fields()
   838  	_ = fiatcurrencyFields
   839  	// fiatcurrencyDescCreatedAt is the schema descriptor for created_at field.
   840  	fiatcurrencyDescCreatedAt := fiatcurrencyMixinFields0[0].Descriptor()
   841  	// fiatcurrency.DefaultCreatedAt holds the default value on creation for the created_at field.
   842  	fiatcurrency.DefaultCreatedAt = fiatcurrencyDescCreatedAt.Default.(func() uint32)
   843  	// fiatcurrencyDescUpdatedAt is the schema descriptor for updated_at field.
   844  	fiatcurrencyDescUpdatedAt := fiatcurrencyMixinFields0[1].Descriptor()
   845  	// fiatcurrency.DefaultUpdatedAt holds the default value on creation for the updated_at field.
   846  	fiatcurrency.DefaultUpdatedAt = fiatcurrencyDescUpdatedAt.Default.(func() uint32)
   847  	// fiatcurrency.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
   848  	fiatcurrency.UpdateDefaultUpdatedAt = fiatcurrencyDescUpdatedAt.UpdateDefault.(func() uint32)
   849  	// fiatcurrencyDescDeletedAt is the schema descriptor for deleted_at field.
   850  	fiatcurrencyDescDeletedAt := fiatcurrencyMixinFields0[2].Descriptor()
   851  	// fiatcurrency.DefaultDeletedAt holds the default value on creation for the deleted_at field.
   852  	fiatcurrency.DefaultDeletedAt = fiatcurrencyDescDeletedAt.Default.(func() uint32)
   853  	// fiatcurrencyDescEntID is the schema descriptor for ent_id field.
   854  	fiatcurrencyDescEntID := fiatcurrencyMixinFields1[1].Descriptor()
   855  	// fiatcurrency.DefaultEntID holds the default value on creation for the ent_id field.
   856  	fiatcurrency.DefaultEntID = fiatcurrencyDescEntID.Default.(func() uuid.UUID)
   857  	// fiatcurrencyDescFiatID is the schema descriptor for fiat_id field.
   858  	fiatcurrencyDescFiatID := fiatcurrencyFields[0].Descriptor()
   859  	// fiatcurrency.DefaultFiatID holds the default value on creation for the fiat_id field.
   860  	fiatcurrency.DefaultFiatID = fiatcurrencyDescFiatID.Default.(func() uuid.UUID)
   861  	// fiatcurrencyDescFeedType is the schema descriptor for feed_type field.
   862  	fiatcurrencyDescFeedType := fiatcurrencyFields[1].Descriptor()
   863  	// fiatcurrency.DefaultFeedType holds the default value on creation for the feed_type field.
   864  	fiatcurrency.DefaultFeedType = fiatcurrencyDescFeedType.Default.(string)
   865  	// fiatcurrencyDescMarketValueLow is the schema descriptor for market_value_low field.
   866  	fiatcurrencyDescMarketValueLow := fiatcurrencyFields[2].Descriptor()
   867  	// fiatcurrency.DefaultMarketValueLow holds the default value on creation for the market_value_low field.
   868  	fiatcurrency.DefaultMarketValueLow = fiatcurrencyDescMarketValueLow.Default.(decimal.Decimal)
   869  	// fiatcurrencyDescMarketValueHigh is the schema descriptor for market_value_high field.
   870  	fiatcurrencyDescMarketValueHigh := fiatcurrencyFields[3].Descriptor()
   871  	// fiatcurrency.DefaultMarketValueHigh holds the default value on creation for the market_value_high field.
   872  	fiatcurrency.DefaultMarketValueHigh = fiatcurrencyDescMarketValueHigh.Default.(decimal.Decimal)
   873  	fiatcurrencyfeedMixin := schema.FiatCurrencyFeed{}.Mixin()
   874  	fiatcurrencyfeed.Policy = privacy.NewPolicies(fiatcurrencyfeedMixin[0], schema.FiatCurrencyFeed{})
   875  	fiatcurrencyfeed.Hooks[0] = func(next ent.Mutator) ent.Mutator {
   876  		return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) {
   877  			if err := fiatcurrencyfeed.Policy.EvalMutation(ctx, m); err != nil {
   878  				return nil, err
   879  			}
   880  			return next.Mutate(ctx, m)
   881  		})
   882  	}
   883  	fiatcurrencyfeedMixinFields0 := fiatcurrencyfeedMixin[0].Fields()
   884  	_ = fiatcurrencyfeedMixinFields0
   885  	fiatcurrencyfeedMixinFields1 := fiatcurrencyfeedMixin[1].Fields()
   886  	_ = fiatcurrencyfeedMixinFields1
   887  	fiatcurrencyfeedFields := schema.FiatCurrencyFeed{}.Fields()
   888  	_ = fiatcurrencyfeedFields
   889  	// fiatcurrencyfeedDescCreatedAt is the schema descriptor for created_at field.
   890  	fiatcurrencyfeedDescCreatedAt := fiatcurrencyfeedMixinFields0[0].Descriptor()
   891  	// fiatcurrencyfeed.DefaultCreatedAt holds the default value on creation for the created_at field.
   892  	fiatcurrencyfeed.DefaultCreatedAt = fiatcurrencyfeedDescCreatedAt.Default.(func() uint32)
   893  	// fiatcurrencyfeedDescUpdatedAt is the schema descriptor for updated_at field.
   894  	fiatcurrencyfeedDescUpdatedAt := fiatcurrencyfeedMixinFields0[1].Descriptor()
   895  	// fiatcurrencyfeed.DefaultUpdatedAt holds the default value on creation for the updated_at field.
   896  	fiatcurrencyfeed.DefaultUpdatedAt = fiatcurrencyfeedDescUpdatedAt.Default.(func() uint32)
   897  	// fiatcurrencyfeed.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
   898  	fiatcurrencyfeed.UpdateDefaultUpdatedAt = fiatcurrencyfeedDescUpdatedAt.UpdateDefault.(func() uint32)
   899  	// fiatcurrencyfeedDescDeletedAt is the schema descriptor for deleted_at field.
   900  	fiatcurrencyfeedDescDeletedAt := fiatcurrencyfeedMixinFields0[2].Descriptor()
   901  	// fiatcurrencyfeed.DefaultDeletedAt holds the default value on creation for the deleted_at field.
   902  	fiatcurrencyfeed.DefaultDeletedAt = fiatcurrencyfeedDescDeletedAt.Default.(func() uint32)
   903  	// fiatcurrencyfeedDescEntID is the schema descriptor for ent_id field.
   904  	fiatcurrencyfeedDescEntID := fiatcurrencyfeedMixinFields1[1].Descriptor()
   905  	// fiatcurrencyfeed.DefaultEntID holds the default value on creation for the ent_id field.
   906  	fiatcurrencyfeed.DefaultEntID = fiatcurrencyfeedDescEntID.Default.(func() uuid.UUID)
   907  	// fiatcurrencyfeedDescFiatID is the schema descriptor for fiat_id field.
   908  	fiatcurrencyfeedDescFiatID := fiatcurrencyfeedFields[0].Descriptor()
   909  	// fiatcurrencyfeed.DefaultFiatID holds the default value on creation for the fiat_id field.
   910  	fiatcurrencyfeed.DefaultFiatID = fiatcurrencyfeedDescFiatID.Default.(func() uuid.UUID)
   911  	// fiatcurrencyfeedDescFeedType is the schema descriptor for feed_type field.
   912  	fiatcurrencyfeedDescFeedType := fiatcurrencyfeedFields[1].Descriptor()
   913  	// fiatcurrencyfeed.DefaultFeedType holds the default value on creation for the feed_type field.
   914  	fiatcurrencyfeed.DefaultFeedType = fiatcurrencyfeedDescFeedType.Default.(string)
   915  	// fiatcurrencyfeedDescFeedFiatName is the schema descriptor for feed_fiat_name field.
   916  	fiatcurrencyfeedDescFeedFiatName := fiatcurrencyfeedFields[2].Descriptor()
   917  	// fiatcurrencyfeed.DefaultFeedFiatName holds the default value on creation for the feed_fiat_name field.
   918  	fiatcurrencyfeed.DefaultFeedFiatName = fiatcurrencyfeedDescFeedFiatName.Default.(string)
   919  	// fiatcurrencyfeedDescDisabled is the schema descriptor for disabled field.
   920  	fiatcurrencyfeedDescDisabled := fiatcurrencyfeedFields[3].Descriptor()
   921  	// fiatcurrencyfeed.DefaultDisabled holds the default value on creation for the disabled field.
   922  	fiatcurrencyfeed.DefaultDisabled = fiatcurrencyfeedDescDisabled.Default.(bool)
   923  	fiatcurrencyhistoryMixin := schema.FiatCurrencyHistory{}.Mixin()
   924  	fiatcurrencyhistory.Policy = privacy.NewPolicies(fiatcurrencyhistoryMixin[0], schema.FiatCurrencyHistory{})
   925  	fiatcurrencyhistory.Hooks[0] = func(next ent.Mutator) ent.Mutator {
   926  		return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) {
   927  			if err := fiatcurrencyhistory.Policy.EvalMutation(ctx, m); err != nil {
   928  				return nil, err
   929  			}
   930  			return next.Mutate(ctx, m)
   931  		})
   932  	}
   933  	fiatcurrencyhistoryMixinFields0 := fiatcurrencyhistoryMixin[0].Fields()
   934  	_ = fiatcurrencyhistoryMixinFields0
   935  	fiatcurrencyhistoryMixinFields1 := fiatcurrencyhistoryMixin[1].Fields()
   936  	_ = fiatcurrencyhistoryMixinFields1
   937  	fiatcurrencyhistoryFields := schema.FiatCurrencyHistory{}.Fields()
   938  	_ = fiatcurrencyhistoryFields
   939  	// fiatcurrencyhistoryDescCreatedAt is the schema descriptor for created_at field.
   940  	fiatcurrencyhistoryDescCreatedAt := fiatcurrencyhistoryMixinFields0[0].Descriptor()
   941  	// fiatcurrencyhistory.DefaultCreatedAt holds the default value on creation for the created_at field.
   942  	fiatcurrencyhistory.DefaultCreatedAt = fiatcurrencyhistoryDescCreatedAt.Default.(func() uint32)
   943  	// fiatcurrencyhistoryDescUpdatedAt is the schema descriptor for updated_at field.
   944  	fiatcurrencyhistoryDescUpdatedAt := fiatcurrencyhistoryMixinFields0[1].Descriptor()
   945  	// fiatcurrencyhistory.DefaultUpdatedAt holds the default value on creation for the updated_at field.
   946  	fiatcurrencyhistory.DefaultUpdatedAt = fiatcurrencyhistoryDescUpdatedAt.Default.(func() uint32)
   947  	// fiatcurrencyhistory.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
   948  	fiatcurrencyhistory.UpdateDefaultUpdatedAt = fiatcurrencyhistoryDescUpdatedAt.UpdateDefault.(func() uint32)
   949  	// fiatcurrencyhistoryDescDeletedAt is the schema descriptor for deleted_at field.
   950  	fiatcurrencyhistoryDescDeletedAt := fiatcurrencyhistoryMixinFields0[2].Descriptor()
   951  	// fiatcurrencyhistory.DefaultDeletedAt holds the default value on creation for the deleted_at field.
   952  	fiatcurrencyhistory.DefaultDeletedAt = fiatcurrencyhistoryDescDeletedAt.Default.(func() uint32)
   953  	// fiatcurrencyhistoryDescEntID is the schema descriptor for ent_id field.
   954  	fiatcurrencyhistoryDescEntID := fiatcurrencyhistoryMixinFields1[1].Descriptor()
   955  	// fiatcurrencyhistory.DefaultEntID holds the default value on creation for the ent_id field.
   956  	fiatcurrencyhistory.DefaultEntID = fiatcurrencyhistoryDescEntID.Default.(func() uuid.UUID)
   957  	// fiatcurrencyhistoryDescFiatID is the schema descriptor for fiat_id field.
   958  	fiatcurrencyhistoryDescFiatID := fiatcurrencyhistoryFields[0].Descriptor()
   959  	// fiatcurrencyhistory.DefaultFiatID holds the default value on creation for the fiat_id field.
   960  	fiatcurrencyhistory.DefaultFiatID = fiatcurrencyhistoryDescFiatID.Default.(func() uuid.UUID)
   961  	// fiatcurrencyhistoryDescFeedType is the schema descriptor for feed_type field.
   962  	fiatcurrencyhistoryDescFeedType := fiatcurrencyhistoryFields[1].Descriptor()
   963  	// fiatcurrencyhistory.DefaultFeedType holds the default value on creation for the feed_type field.
   964  	fiatcurrencyhistory.DefaultFeedType = fiatcurrencyhistoryDescFeedType.Default.(string)
   965  	// fiatcurrencyhistoryDescMarketValueLow is the schema descriptor for market_value_low field.
   966  	fiatcurrencyhistoryDescMarketValueLow := fiatcurrencyhistoryFields[2].Descriptor()
   967  	// fiatcurrencyhistory.DefaultMarketValueLow holds the default value on creation for the market_value_low field.
   968  	fiatcurrencyhistory.DefaultMarketValueLow = fiatcurrencyhistoryDescMarketValueLow.Default.(decimal.Decimal)
   969  	// fiatcurrencyhistoryDescMarketValueHigh is the schema descriptor for market_value_high field.
   970  	fiatcurrencyhistoryDescMarketValueHigh := fiatcurrencyhistoryFields[3].Descriptor()
   971  	// fiatcurrencyhistory.DefaultMarketValueHigh holds the default value on creation for the market_value_high field.
   972  	fiatcurrencyhistory.DefaultMarketValueHigh = fiatcurrencyhistoryDescMarketValueHigh.Default.(decimal.Decimal)
   973  	settingMixin := schema.Setting{}.Mixin()
   974  	setting.Policy = privacy.NewPolicies(settingMixin[0], schema.Setting{})
   975  	setting.Hooks[0] = func(next ent.Mutator) ent.Mutator {
   976  		return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) {
   977  			if err := setting.Policy.EvalMutation(ctx, m); err != nil {
   978  				return nil, err
   979  			}
   980  			return next.Mutate(ctx, m)
   981  		})
   982  	}
   983  	settingMixinFields0 := settingMixin[0].Fields()
   984  	_ = settingMixinFields0
   985  	settingMixinFields1 := settingMixin[1].Fields()
   986  	_ = settingMixinFields1
   987  	settingFields := schema.Setting{}.Fields()
   988  	_ = settingFields
   989  	// settingDescCreatedAt is the schema descriptor for created_at field.
   990  	settingDescCreatedAt := settingMixinFields0[0].Descriptor()
   991  	// setting.DefaultCreatedAt holds the default value on creation for the created_at field.
   992  	setting.DefaultCreatedAt = settingDescCreatedAt.Default.(func() uint32)
   993  	// settingDescUpdatedAt is the schema descriptor for updated_at field.
   994  	settingDescUpdatedAt := settingMixinFields0[1].Descriptor()
   995  	// setting.DefaultUpdatedAt holds the default value on creation for the updated_at field.
   996  	setting.DefaultUpdatedAt = settingDescUpdatedAt.Default.(func() uint32)
   997  	// setting.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
   998  	setting.UpdateDefaultUpdatedAt = settingDescUpdatedAt.UpdateDefault.(func() uint32)
   999  	// settingDescDeletedAt is the schema descriptor for deleted_at field.
  1000  	settingDescDeletedAt := settingMixinFields0[2].Descriptor()
  1001  	// setting.DefaultDeletedAt holds the default value on creation for the deleted_at field.
  1002  	setting.DefaultDeletedAt = settingDescDeletedAt.Default.(func() uint32)
  1003  	// settingDescEntID is the schema descriptor for ent_id field.
  1004  	settingDescEntID := settingMixinFields1[1].Descriptor()
  1005  	// setting.DefaultEntID holds the default value on creation for the ent_id field.
  1006  	setting.DefaultEntID = settingDescEntID.Default.(func() uuid.UUID)
  1007  	// settingDescCoinTypeID is the schema descriptor for coin_type_id field.
  1008  	settingDescCoinTypeID := settingFields[0].Descriptor()
  1009  	// setting.DefaultCoinTypeID holds the default value on creation for the coin_type_id field.
  1010  	setting.DefaultCoinTypeID = settingDescCoinTypeID.Default.(func() uuid.UUID)
  1011  	// settingDescFeeCoinTypeID is the schema descriptor for fee_coin_type_id field.
  1012  	settingDescFeeCoinTypeID := settingFields[1].Descriptor()
  1013  	// setting.DefaultFeeCoinTypeID holds the default value on creation for the fee_coin_type_id field.
  1014  	setting.DefaultFeeCoinTypeID = settingDescFeeCoinTypeID.Default.(func() uuid.UUID)
  1015  	// settingDescWithdrawFeeByStableUsd is the schema descriptor for withdraw_fee_by_stable_usd field.
  1016  	settingDescWithdrawFeeByStableUsd := settingFields[2].Descriptor()
  1017  	// setting.DefaultWithdrawFeeByStableUsd holds the default value on creation for the withdraw_fee_by_stable_usd field.
  1018  	setting.DefaultWithdrawFeeByStableUsd = settingDescWithdrawFeeByStableUsd.Default.(bool)
  1019  	// settingDescWithdrawFeeAmount is the schema descriptor for withdraw_fee_amount field.
  1020  	settingDescWithdrawFeeAmount := settingFields[3].Descriptor()
  1021  	// setting.DefaultWithdrawFeeAmount holds the default value on creation for the withdraw_fee_amount field.
  1022  	setting.DefaultWithdrawFeeAmount = settingDescWithdrawFeeAmount.Default.(decimal.Decimal)
  1023  	// settingDescCollectFeeAmount is the schema descriptor for collect_fee_amount field.
  1024  	settingDescCollectFeeAmount := settingFields[4].Descriptor()
  1025  	// setting.DefaultCollectFeeAmount holds the default value on creation for the collect_fee_amount field.
  1026  	setting.DefaultCollectFeeAmount = settingDescCollectFeeAmount.Default.(decimal.Decimal)
  1027  	// settingDescHotWalletFeeAmount is the schema descriptor for hot_wallet_fee_amount field.
  1028  	settingDescHotWalletFeeAmount := settingFields[5].Descriptor()
  1029  	// setting.DefaultHotWalletFeeAmount holds the default value on creation for the hot_wallet_fee_amount field.
  1030  	setting.DefaultHotWalletFeeAmount = settingDescHotWalletFeeAmount.Default.(decimal.Decimal)
  1031  	// settingDescLowFeeAmount is the schema descriptor for low_fee_amount field.
  1032  	settingDescLowFeeAmount := settingFields[6].Descriptor()
  1033  	// setting.DefaultLowFeeAmount holds the default value on creation for the low_fee_amount field.
  1034  	setting.DefaultLowFeeAmount = settingDescLowFeeAmount.Default.(decimal.Decimal)
  1035  	// settingDescHotLowFeeAmount is the schema descriptor for hot_low_fee_amount field.
  1036  	settingDescHotLowFeeAmount := settingFields[7].Descriptor()
  1037  	// setting.DefaultHotLowFeeAmount holds the default value on creation for the hot_low_fee_amount field.
  1038  	setting.DefaultHotLowFeeAmount = settingDescHotLowFeeAmount.Default.(decimal.Decimal)
  1039  	// settingDescHotWalletAccountAmount is the schema descriptor for hot_wallet_account_amount field.
  1040  	settingDescHotWalletAccountAmount := settingFields[8].Descriptor()
  1041  	// setting.DefaultHotWalletAccountAmount holds the default value on creation for the hot_wallet_account_amount field.
  1042  	setting.DefaultHotWalletAccountAmount = settingDescHotWalletAccountAmount.Default.(decimal.Decimal)
  1043  	// settingDescPaymentAccountCollectAmount is the schema descriptor for payment_account_collect_amount field.
  1044  	settingDescPaymentAccountCollectAmount := settingFields[9].Descriptor()
  1045  	// setting.DefaultPaymentAccountCollectAmount holds the default value on creation for the payment_account_collect_amount field.
  1046  	setting.DefaultPaymentAccountCollectAmount = settingDescPaymentAccountCollectAmount.Default.(decimal.Decimal)
  1047  	// settingDescLeastTransferAmount is the schema descriptor for least_transfer_amount field.
  1048  	settingDescLeastTransferAmount := settingFields[10].Descriptor()
  1049  	// setting.DefaultLeastTransferAmount holds the default value on creation for the least_transfer_amount field.
  1050  	setting.DefaultLeastTransferAmount = settingDescLeastTransferAmount.Default.(decimal.Decimal)
  1051  	// settingDescNeedMemo is the schema descriptor for need_memo field.
  1052  	settingDescNeedMemo := settingFields[11].Descriptor()
  1053  	// setting.DefaultNeedMemo holds the default value on creation for the need_memo field.
  1054  	setting.DefaultNeedMemo = settingDescNeedMemo.Default.(bool)
  1055  	// settingDescRefreshCurrency is the schema descriptor for refresh_currency field.
  1056  	settingDescRefreshCurrency := settingFields[12].Descriptor()
  1057  	// setting.DefaultRefreshCurrency holds the default value on creation for the refresh_currency field.
  1058  	setting.DefaultRefreshCurrency = settingDescRefreshCurrency.Default.(bool)
  1059  	// settingDescCheckNewAddressBalance is the schema descriptor for check_new_address_balance field.
  1060  	settingDescCheckNewAddressBalance := settingFields[13].Descriptor()
  1061  	// setting.DefaultCheckNewAddressBalance holds the default value on creation for the check_new_address_balance field.
  1062  	setting.DefaultCheckNewAddressBalance = settingDescCheckNewAddressBalance.Default.(bool)
  1063  	tranMixin := schema.Tran{}.Mixin()
  1064  	tran.Policy = privacy.NewPolicies(tranMixin[0], schema.Tran{})
  1065  	tran.Hooks[0] = func(next ent.Mutator) ent.Mutator {
  1066  		return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) {
  1067  			if err := tran.Policy.EvalMutation(ctx, m); err != nil {
  1068  				return nil, err
  1069  			}
  1070  			return next.Mutate(ctx, m)
  1071  		})
  1072  	}
  1073  	tranMixinFields0 := tranMixin[0].Fields()
  1074  	_ = tranMixinFields0
  1075  	tranMixinFields1 := tranMixin[1].Fields()
  1076  	_ = tranMixinFields1
  1077  	tranFields := schema.Tran{}.Fields()
  1078  	_ = tranFields
  1079  	// tranDescCreatedAt is the schema descriptor for created_at field.
  1080  	tranDescCreatedAt := tranMixinFields0[0].Descriptor()
  1081  	// tran.DefaultCreatedAt holds the default value on creation for the created_at field.
  1082  	tran.DefaultCreatedAt = tranDescCreatedAt.Default.(func() uint32)
  1083  	// tranDescUpdatedAt is the schema descriptor for updated_at field.
  1084  	tranDescUpdatedAt := tranMixinFields0[1].Descriptor()
  1085  	// tran.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1086  	tran.DefaultUpdatedAt = tranDescUpdatedAt.Default.(func() uint32)
  1087  	// tran.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1088  	tran.UpdateDefaultUpdatedAt = tranDescUpdatedAt.UpdateDefault.(func() uint32)
  1089  	// tranDescDeletedAt is the schema descriptor for deleted_at field.
  1090  	tranDescDeletedAt := tranMixinFields0[2].Descriptor()
  1091  	// tran.DefaultDeletedAt holds the default value on creation for the deleted_at field.
  1092  	tran.DefaultDeletedAt = tranDescDeletedAt.Default.(func() uint32)
  1093  	// tranDescEntID is the schema descriptor for ent_id field.
  1094  	tranDescEntID := tranMixinFields1[1].Descriptor()
  1095  	// tran.DefaultEntID holds the default value on creation for the ent_id field.
  1096  	tran.DefaultEntID = tranDescEntID.Default.(func() uuid.UUID)
  1097  	// tranDescCoinTypeID is the schema descriptor for coin_type_id field.
  1098  	tranDescCoinTypeID := tranFields[0].Descriptor()
  1099  	// tran.DefaultCoinTypeID holds the default value on creation for the coin_type_id field.
  1100  	tran.DefaultCoinTypeID = tranDescCoinTypeID.Default.(func() uuid.UUID)
  1101  	// tranDescFromAccountID is the schema descriptor for from_account_id field.
  1102  	tranDescFromAccountID := tranFields[1].Descriptor()
  1103  	// tran.DefaultFromAccountID holds the default value on creation for the from_account_id field.
  1104  	tran.DefaultFromAccountID = tranDescFromAccountID.Default.(func() uuid.UUID)
  1105  	// tranDescToAccountID is the schema descriptor for to_account_id field.
  1106  	tranDescToAccountID := tranFields[2].Descriptor()
  1107  	// tran.DefaultToAccountID holds the default value on creation for the to_account_id field.
  1108  	tran.DefaultToAccountID = tranDescToAccountID.Default.(func() uuid.UUID)
  1109  	// tranDescAmount is the schema descriptor for amount field.
  1110  	tranDescAmount := tranFields[3].Descriptor()
  1111  	// tran.DefaultAmount holds the default value on creation for the amount field.
  1112  	tran.DefaultAmount = tranDescAmount.Default.(decimal.Decimal)
  1113  	// tranDescFeeAmount is the schema descriptor for fee_amount field.
  1114  	tranDescFeeAmount := tranFields[4].Descriptor()
  1115  	// tran.DefaultFeeAmount holds the default value on creation for the fee_amount field.
  1116  	tran.DefaultFeeAmount = tranDescFeeAmount.Default.(decimal.Decimal)
  1117  	// tranDescChainTxID is the schema descriptor for chain_tx_id field.
  1118  	tranDescChainTxID := tranFields[5].Descriptor()
  1119  	// tran.DefaultChainTxID holds the default value on creation for the chain_tx_id field.
  1120  	tran.DefaultChainTxID = tranDescChainTxID.Default.(string)
  1121  	// tranDescState is the schema descriptor for state field.
  1122  	tranDescState := tranFields[6].Descriptor()
  1123  	// tran.DefaultState holds the default value on creation for the state field.
  1124  	tran.DefaultState = tranDescState.Default.(string)
  1125  	// tranDescExtra is the schema descriptor for extra field.
  1126  	tranDescExtra := tranFields[7].Descriptor()
  1127  	// tran.DefaultExtra holds the default value on creation for the extra field.
  1128  	tran.DefaultExtra = tranDescExtra.Default.(string)
  1129  	// tranDescType is the schema descriptor for type field.
  1130  	tranDescType := tranFields[8].Descriptor()
  1131  	// tran.DefaultType holds the default value on creation for the type field.
  1132  	tran.DefaultType = tranDescType.Default.(string)
  1133  }
  1134  
  1135  const (
  1136  	Version = "v0.11.2" // Version of ent codegen.
  1137  )