// Code generated by ent, DO NOT EDIT.

package models

import (
	"juwan-backend/app/wallet/rpc/internal/models/schema"
	"juwan-backend/app/wallet/rpc/internal/models/wallet"
	"time"

	"github.com/shopspring/decimal"
)

// 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() {
	walletFields := schema.Wallet{}.Fields()
	_ = walletFields
	// walletDescBalance is the schema descriptor for balance field.
	walletDescBalance := walletFields[1].Descriptor()
	// wallet.DefaultBalance holds the default value on creation for the balance field.
	wallet.DefaultBalance = walletDescBalance.Default.(decimal.Decimal)
	// walletDescFrozenBalance is the schema descriptor for frozen_balance field.
	walletDescFrozenBalance := walletFields[2].Descriptor()
	// wallet.DefaultFrozenBalance holds the default value on creation for the frozen_balance field.
	wallet.DefaultFrozenBalance = walletDescFrozenBalance.Default.(decimal.Decimal)
	// walletDescVersion is the schema descriptor for version field.
	walletDescVersion := walletFields[3].Descriptor()
	// wallet.DefaultVersion holds the default value on creation for the version field.
	wallet.DefaultVersion = walletDescVersion.Default.(int)
	// walletDescUpdatedAt is the schema descriptor for updated_at field.
	walletDescUpdatedAt := walletFields[4].Descriptor()
	// wallet.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	wallet.DefaultUpdatedAt = walletDescUpdatedAt.Default.(func() time.Time)
}
