func (vs *VerySecret) assignValues(columns []string, values []interface{}) error {
	if m, n := len(values), len(columns); m < n {
		return fmt.Errorf("mismatch number of scan values: %d != %d", m, n)
	}
	for i := range columns {
		switch columns[i] {
		case verysecret.FieldID:
			if value, ok := values[i].(*uuid.UUID); !ok {
				return fmt.Errorf("unexpected type %T for field id", values[i])
			} else if value != nil {
				vs.ID = *value
			}
		case verysecret.FieldPassword:
			if value, ok := values[i].(*sql.NullString); !ok {
				return fmt.Errorf("unexpected type %T for field password", values[i])
			} else if value.Valid {
				vs.Password = value.String
			}
		}
	}
	return nil
}
assignValues assigns the values that were returned from sql.Rows (after scanning)
to the VerySecret fields.
package ent
import (
	"fmt"
	"strings"
	"entgo.io/contrib/entgql/internal/todouuid/ent/verysecret"
	"entgo.io/ent/dialect/sql"
	"github.com/google/uuid"
)
type VerySecret struct {
	config `json:"-"`
	ID uuid.UUID `json:"id,omitempty"`
	Password string `json:"password,omitempty"`
}
func (*VerySecret) scanValues(columns []string) ([]interface{}, error) {
	values := make([]interface{}, len(columns))
	for i := range columns {
		switch columns[i] {
		case verysecret.FieldPassword:
			values[i] = new(sql.NullString)
		case verysecret.FieldID:
			values[i] = new(uuid.UUID)
		default:
			return nil, fmt.Errorf("unexpected column %q for type VerySecret", columns[i])
		}
	}
	return values, nil
}