// Code generated by ent, DO NOT EDIT. package ent import ( "mingyang-admin-pay/rpc/ent/app" "mingyang-admin-pay/rpc/ent/paychannel" "mingyang-admin-pay/rpc/ent/paynotifylog" "mingyang-admin-pay/rpc/ent/paynotifytask" "mingyang-admin-pay/rpc/ent/payorder" "mingyang-admin-pay/rpc/ent/payorderextension" "mingyang-admin-pay/rpc/ent/payrefund" "mingyang-admin-pay/rpc/ent/schema" "time" ) // The init function reads all schema descriptors with runtime code // (default values, validators, hooks and policies) and stitches it // to their package variables. func init() { appMixin := schema.App{}.Mixin() appMixinFields0 := appMixin[0].Fields() _ = appMixinFields0 appMixinFields1 := appMixin[1].Fields() _ = appMixinFields1 appMixinFields2 := appMixin[2].Fields() _ = appMixinFields2 appFields := schema.App{}.Fields() _ = appFields // appDescCreatedAt is the schema descriptor for created_at field. appDescCreatedAt := appMixinFields0[1].Descriptor() // app.DefaultCreatedAt holds the default value on creation for the created_at field. app.DefaultCreatedAt = appDescCreatedAt.Default.(func() time.Time) // appDescUpdatedAt is the schema descriptor for updated_at field. appDescUpdatedAt := appMixinFields0[2].Descriptor() // app.DefaultUpdatedAt holds the default value on creation for the updated_at field. app.DefaultUpdatedAt = appDescUpdatedAt.Default.(func() time.Time) // app.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. app.UpdateDefaultUpdatedAt = appDescUpdatedAt.UpdateDefault.(func() time.Time) // appDescStatus is the schema descriptor for status field. appDescStatus := appMixinFields1[0].Descriptor() // app.DefaultStatus holds the default value on creation for the status field. app.DefaultStatus = appDescStatus.Default.(uint8) // appDescTenantID is the schema descriptor for tenant_id field. appDescTenantID := appMixinFields2[0].Descriptor() // app.DefaultTenantID holds the default value on creation for the tenant_id field. app.DefaultTenantID = appDescTenantID.Default.(uint64) paychannelMixin := schema.PayChannel{}.Mixin() paychannelMixinFields0 := paychannelMixin[0].Fields() _ = paychannelMixinFields0 paychannelMixinFields1 := paychannelMixin[1].Fields() _ = paychannelMixinFields1 paychannelMixinFields2 := paychannelMixin[2].Fields() _ = paychannelMixinFields2 paychannelFields := schema.PayChannel{}.Fields() _ = paychannelFields // paychannelDescCreatedAt is the schema descriptor for created_at field. paychannelDescCreatedAt := paychannelMixinFields0[1].Descriptor() // paychannel.DefaultCreatedAt holds the default value on creation for the created_at field. paychannel.DefaultCreatedAt = paychannelDescCreatedAt.Default.(func() time.Time) // paychannelDescUpdatedAt is the schema descriptor for updated_at field. paychannelDescUpdatedAt := paychannelMixinFields0[2].Descriptor() // paychannel.DefaultUpdatedAt holds the default value on creation for the updated_at field. paychannel.DefaultUpdatedAt = paychannelDescUpdatedAt.Default.(func() time.Time) // paychannel.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. paychannel.UpdateDefaultUpdatedAt = paychannelDescUpdatedAt.UpdateDefault.(func() time.Time) // paychannelDescStatus is the schema descriptor for status field. paychannelDescStatus := paychannelMixinFields1[0].Descriptor() // paychannel.DefaultStatus holds the default value on creation for the status field. paychannel.DefaultStatus = paychannelDescStatus.Default.(uint8) // paychannelDescTenantID is the schema descriptor for tenant_id field. paychannelDescTenantID := paychannelMixinFields2[0].Descriptor() // paychannel.DefaultTenantID holds the default value on creation for the tenant_id field. paychannel.DefaultTenantID = paychannelDescTenantID.Default.(uint64) // paychannelDescFreeRate is the schema descriptor for free_rate field. paychannelDescFreeRate := paychannelFields[3].Descriptor() // paychannel.DefaultFreeRate holds the default value on creation for the free_rate field. paychannel.DefaultFreeRate = paychannelDescFreeRate.Default.(string) // paychannelDescOrderTimeOut is the schema descriptor for order_time_out field. paychannelDescOrderTimeOut := paychannelFields[8].Descriptor() // paychannel.DefaultOrderTimeOut holds the default value on creation for the order_time_out field. paychannel.DefaultOrderTimeOut = paychannelDescOrderTimeOut.Default.(string) // paychannelDescSupportCurrency is the schema descriptor for support_currency field. paychannelDescSupportCurrency := paychannelFields[9].Descriptor() // paychannel.DefaultSupportCurrency holds the default value on creation for the support_currency field. paychannel.DefaultSupportCurrency = paychannelDescSupportCurrency.Default.(string) paynotifylogMixin := schema.PayNotifyLog{}.Mixin() paynotifylogMixinFields0 := paynotifylogMixin[0].Fields() _ = paynotifylogMixinFields0 paynotifylogMixinFields1 := paynotifylogMixin[1].Fields() _ = paynotifylogMixinFields1 paynotifylogMixinFields2 := paynotifylogMixin[2].Fields() _ = paynotifylogMixinFields2 paynotifylogFields := schema.PayNotifyLog{}.Fields() _ = paynotifylogFields // paynotifylogDescCreatedAt is the schema descriptor for created_at field. paynotifylogDescCreatedAt := paynotifylogMixinFields0[1].Descriptor() // paynotifylog.DefaultCreatedAt holds the default value on creation for the created_at field. paynotifylog.DefaultCreatedAt = paynotifylogDescCreatedAt.Default.(func() time.Time) // paynotifylogDescUpdatedAt is the schema descriptor for updated_at field. paynotifylogDescUpdatedAt := paynotifylogMixinFields0[2].Descriptor() // paynotifylog.DefaultUpdatedAt holds the default value on creation for the updated_at field. paynotifylog.DefaultUpdatedAt = paynotifylogDescUpdatedAt.Default.(func() time.Time) // paynotifylog.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. paynotifylog.UpdateDefaultUpdatedAt = paynotifylogDescUpdatedAt.UpdateDefault.(func() time.Time) // paynotifylogDescStatus is the schema descriptor for status field. paynotifylogDescStatus := paynotifylogMixinFields1[0].Descriptor() // paynotifylog.DefaultStatus holds the default value on creation for the status field. paynotifylog.DefaultStatus = paynotifylogDescStatus.Default.(uint8) // paynotifylogDescTenantID is the schema descriptor for tenant_id field. paynotifylogDescTenantID := paynotifylogMixinFields2[0].Descriptor() // paynotifylog.DefaultTenantID holds the default value on creation for the tenant_id field. paynotifylog.DefaultTenantID = paynotifylogDescTenantID.Default.(uint64) // paynotifylogDescNotifyCount is the schema descriptor for notify_count field. paynotifylogDescNotifyCount := paynotifylogFields[1].Descriptor() // paynotifylog.DefaultNotifyCount holds the default value on creation for the notify_count field. paynotifylog.DefaultNotifyCount = paynotifylogDescNotifyCount.Default.(uint32) paynotifytaskMixin := schema.PayNotifyTask{}.Mixin() paynotifytaskMixinFields0 := paynotifytaskMixin[0].Fields() _ = paynotifytaskMixinFields0 paynotifytaskMixinFields1 := paynotifytaskMixin[1].Fields() _ = paynotifytaskMixinFields1 paynotifytaskMixinFields2 := paynotifytaskMixin[2].Fields() _ = paynotifytaskMixinFields2 paynotifytaskFields := schema.PayNotifyTask{}.Fields() _ = paynotifytaskFields // paynotifytaskDescCreatedAt is the schema descriptor for created_at field. paynotifytaskDescCreatedAt := paynotifytaskMixinFields0[1].Descriptor() // paynotifytask.DefaultCreatedAt holds the default value on creation for the created_at field. paynotifytask.DefaultCreatedAt = paynotifytaskDescCreatedAt.Default.(func() time.Time) // paynotifytaskDescUpdatedAt is the schema descriptor for updated_at field. paynotifytaskDescUpdatedAt := paynotifytaskMixinFields0[2].Descriptor() // paynotifytask.DefaultUpdatedAt holds the default value on creation for the updated_at field. paynotifytask.DefaultUpdatedAt = paynotifytaskDescUpdatedAt.Default.(func() time.Time) // paynotifytask.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. paynotifytask.UpdateDefaultUpdatedAt = paynotifytaskDescUpdatedAt.UpdateDefault.(func() time.Time) // paynotifytaskDescStatus is the schema descriptor for status field. paynotifytaskDescStatus := paynotifytaskMixinFields1[0].Descriptor() // paynotifytask.DefaultStatus holds the default value on creation for the status field. paynotifytask.DefaultStatus = paynotifytaskDescStatus.Default.(uint8) // paynotifytaskDescTenantID is the schema descriptor for tenant_id field. paynotifytaskDescTenantID := paynotifytaskMixinFields2[0].Descriptor() // paynotifytask.DefaultTenantID holds the default value on creation for the tenant_id field. paynotifytask.DefaultTenantID = paynotifytaskDescTenantID.Default.(uint64) // paynotifytaskDescType is the schema descriptor for type field. paynotifytaskDescType := paynotifytaskFields[0].Descriptor() // paynotifytask.DefaultType holds the default value on creation for the type field. paynotifytask.DefaultType = paynotifytaskDescType.Default.(uint8) payorderMixin := schema.PayOrder{}.Mixin() payorderMixinFields0 := payorderMixin[0].Fields() _ = payorderMixinFields0 payorderMixinFields1 := payorderMixin[1].Fields() _ = payorderMixinFields1 payorderMixinFields2 := payorderMixin[2].Fields() _ = payorderMixinFields2 payorderFields := schema.PayOrder{}.Fields() _ = payorderFields // payorderDescCreatedAt is the schema descriptor for created_at field. payorderDescCreatedAt := payorderMixinFields0[1].Descriptor() // payorder.DefaultCreatedAt holds the default value on creation for the created_at field. payorder.DefaultCreatedAt = payorderDescCreatedAt.Default.(func() time.Time) // payorderDescUpdatedAt is the schema descriptor for updated_at field. payorderDescUpdatedAt := payorderMixinFields0[2].Descriptor() // payorder.DefaultUpdatedAt holds the default value on creation for the updated_at field. payorder.DefaultUpdatedAt = payorderDescUpdatedAt.Default.(func() time.Time) // payorder.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. payorder.UpdateDefaultUpdatedAt = payorderDescUpdatedAt.UpdateDefault.(func() time.Time) // payorderDescStatus is the schema descriptor for status field. payorderDescStatus := payorderMixinFields1[0].Descriptor() // payorder.DefaultStatus holds the default value on creation for the status field. payorder.DefaultStatus = payorderDescStatus.Default.(uint8) // payorderDescTenantID is the schema descriptor for tenant_id field. payorderDescTenantID := payorderMixinFields2[0].Descriptor() // payorder.DefaultTenantID holds the default value on creation for the tenant_id field. payorder.DefaultTenantID = payorderDescTenantID.Default.(uint64) // payorderDescAmount is the schema descriptor for amount field. payorderDescAmount := payorderFields[5].Descriptor() // payorder.DefaultAmount holds the default value on creation for the amount field. payorder.DefaultAmount = payorderDescAmount.Default.(uint64) // payorderDescChannelFeeRate is the schema descriptor for channel_fee_rate field. payorderDescChannelFeeRate := payorderFields[7].Descriptor() // payorder.DefaultChannelFeeRate holds the default value on creation for the channel_fee_rate field. payorder.DefaultChannelFeeRate = payorderDescChannelFeeRate.Default.(string) // payorderDescChannelFee is the schema descriptor for channel_fee field. payorderDescChannelFee := payorderFields[8].Descriptor() // payorder.DefaultChannelFee holds the default value on creation for the channel_fee field. payorder.DefaultChannelFee = payorderDescChannelFee.Default.(uint64) // payorderDescOrderStatus is the schema descriptor for order_status field. payorderDescOrderStatus := payorderFields[9].Descriptor() // payorder.DefaultOrderStatus holds the default value on creation for the order_status field. payorder.DefaultOrderStatus = payorderDescOrderStatus.Default.(string) // payorderDescCurrency is the schema descriptor for currency field. payorderDescCurrency := payorderFields[16].Descriptor() // payorder.DefaultCurrency holds the default value on creation for the currency field. payorder.DefaultCurrency = payorderDescCurrency.Default.(string) // payorderDescRefundPrice is the schema descriptor for refund_price field. payorderDescRefundPrice := payorderFields[17].Descriptor() // payorder.DefaultRefundPrice holds the default value on creation for the refund_price field. payorder.DefaultRefundPrice = payorderDescRefundPrice.Default.(uint64) payorderextensionMixin := schema.PayOrderExtension{}.Mixin() payorderextensionMixinFields0 := payorderextensionMixin[0].Fields() _ = payorderextensionMixinFields0 payorderextensionMixinFields1 := payorderextensionMixin[1].Fields() _ = payorderextensionMixinFields1 payorderextensionMixinFields2 := payorderextensionMixin[2].Fields() _ = payorderextensionMixinFields2 payorderextensionFields := schema.PayOrderExtension{}.Fields() _ = payorderextensionFields // payorderextensionDescCreatedAt is the schema descriptor for created_at field. payorderextensionDescCreatedAt := payorderextensionMixinFields0[1].Descriptor() // payorderextension.DefaultCreatedAt holds the default value on creation for the created_at field. payorderextension.DefaultCreatedAt = payorderextensionDescCreatedAt.Default.(func() time.Time) // payorderextensionDescUpdatedAt is the schema descriptor for updated_at field. payorderextensionDescUpdatedAt := payorderextensionMixinFields0[2].Descriptor() // payorderextension.DefaultUpdatedAt holds the default value on creation for the updated_at field. payorderextension.DefaultUpdatedAt = payorderextensionDescUpdatedAt.Default.(func() time.Time) // payorderextension.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. payorderextension.UpdateDefaultUpdatedAt = payorderextensionDescUpdatedAt.UpdateDefault.(func() time.Time) // payorderextensionDescStatus is the schema descriptor for status field. payorderextensionDescStatus := payorderextensionMixinFields1[0].Descriptor() // payorderextension.DefaultStatus holds the default value on creation for the status field. payorderextension.DefaultStatus = payorderextensionDescStatus.Default.(uint8) // payorderextensionDescTenantID is the schema descriptor for tenant_id field. payorderextensionDescTenantID := payorderextensionMixinFields2[0].Descriptor() // payorderextension.DefaultTenantID holds the default value on creation for the tenant_id field. payorderextension.DefaultTenantID = payorderextensionDescTenantID.Default.(uint64) payrefundMixin := schema.PayRefund{}.Mixin() payrefundMixinFields0 := payrefundMixin[0].Fields() _ = payrefundMixinFields0 payrefundMixinFields1 := payrefundMixin[1].Fields() _ = payrefundMixinFields1 payrefundMixinFields2 := payrefundMixin[2].Fields() _ = payrefundMixinFields2 payrefundFields := schema.PayRefund{}.Fields() _ = payrefundFields // payrefundDescCreatedAt is the schema descriptor for created_at field. payrefundDescCreatedAt := payrefundMixinFields0[1].Descriptor() // payrefund.DefaultCreatedAt holds the default value on creation for the created_at field. payrefund.DefaultCreatedAt = payrefundDescCreatedAt.Default.(func() time.Time) // payrefundDescUpdatedAt is the schema descriptor for updated_at field. payrefundDescUpdatedAt := payrefundMixinFields0[2].Descriptor() // payrefund.DefaultUpdatedAt holds the default value on creation for the updated_at field. payrefund.DefaultUpdatedAt = payrefundDescUpdatedAt.Default.(func() time.Time) // payrefund.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. payrefund.UpdateDefaultUpdatedAt = payrefundDescUpdatedAt.UpdateDefault.(func() time.Time) // payrefundDescStatus is the schema descriptor for status field. payrefundDescStatus := payrefundMixinFields1[0].Descriptor() // payrefund.DefaultStatus holds the default value on creation for the status field. payrefund.DefaultStatus = payrefundDescStatus.Default.(uint8) // payrefundDescTenantID is the schema descriptor for tenant_id field. payrefundDescTenantID := payrefundMixinFields2[0].Descriptor() // payrefund.DefaultTenantID holds the default value on creation for the tenant_id field. payrefund.DefaultTenantID = payrefundDescTenantID.Default.(uint64) // payrefundDescRefundStatus is the schema descriptor for refund_status field. payrefundDescRefundStatus := payrefundFields[4].Descriptor() // payrefund.DefaultRefundStatus holds the default value on creation for the refund_status field. payrefund.DefaultRefundStatus = payrefundDescRefundStatus.Default.(uint8) // payrefundDescRefundAmount is the schema descriptor for refund_amount field. payrefundDescRefundAmount := payrefundFields[5].Descriptor() // payrefund.DefaultRefundAmount holds the default value on creation for the refund_amount field. payrefund.DefaultRefundAmount = payrefundDescRefundAmount.Default.(uint64) // payrefundDescPayAmount is the schema descriptor for pay_amount field. payrefundDescPayAmount := payrefundFields[6].Descriptor() // payrefund.DefaultPayAmount holds the default value on creation for the pay_amount field. payrefund.DefaultPayAmount = payrefundDescPayAmount.Default.(uint64) }