// Copyright 2019-present Facebook Inc. All rights reserved.
// This source code is licensed under the Apache 2.0 license found
// in the LICENSE file in the root directory of this source tree.

// Code generated by entc, DO NOT EDIT.

package ent

import (
	"context"
	"errors"
	"fmt"
	"net"
	"net/http"
	"time"

	"entgo.io/ent/dialect/sql"
	"entgo.io/ent/dialect/sql/sqlgraph"
	"entgo.io/ent/entc/integration/ent/fieldtype"
	"entgo.io/ent/entc/integration/ent/role"
	"entgo.io/ent/entc/integration/ent/schema"
	"entgo.io/ent/schema/field"
	"github.com/google/uuid"
)

// FieldTypeCreate is the builder for creating a FieldType entity.
type FieldTypeCreate struct {
	config
	mutation *FieldTypeMutation
	hooks    []Hook
	conflict []sql.ConflictOption
}

// SetInt sets the "int" field.
func (ftc *FieldTypeCreate) SetInt(i int) *FieldTypeCreate {
	ftc.mutation.SetInt(i)
	return ftc
}

// SetInt8 sets the "int8" field.
func (ftc *FieldTypeCreate) SetInt8(i int8) *FieldTypeCreate {
	ftc.mutation.SetInt8(i)
	return ftc
}

// SetInt16 sets the "int16" field.
func (ftc *FieldTypeCreate) SetInt16(i int16) *FieldTypeCreate {
	ftc.mutation.SetInt16(i)
	return ftc
}

// SetInt32 sets the "int32" field.
func (ftc *FieldTypeCreate) SetInt32(i int32) *FieldTypeCreate {
	ftc.mutation.SetInt32(i)
	return ftc
}

// SetInt64 sets the "int64" field.
func (ftc *FieldTypeCreate) SetInt64(i int64) *FieldTypeCreate {
	ftc.mutation.SetInt64(i)
	return ftc
}

// SetOptionalInt sets the "optional_int" field.
func (ftc *FieldTypeCreate) SetOptionalInt(i int) *FieldTypeCreate {
	ftc.mutation.SetOptionalInt(i)
	return ftc
}

// SetNillableOptionalInt sets the "optional_int" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableOptionalInt(i *int) *FieldTypeCreate {
	if i != nil {
		ftc.SetOptionalInt(*i)
	}
	return ftc
}

// SetOptionalInt8 sets the "optional_int8" field.
func (ftc *FieldTypeCreate) SetOptionalInt8(i int8) *FieldTypeCreate {
	ftc.mutation.SetOptionalInt8(i)
	return ftc
}

// SetNillableOptionalInt8 sets the "optional_int8" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableOptionalInt8(i *int8) *FieldTypeCreate {
	if i != nil {
		ftc.SetOptionalInt8(*i)
	}
	return ftc
}

// SetOptionalInt16 sets the "optional_int16" field.
func (ftc *FieldTypeCreate) SetOptionalInt16(i int16) *FieldTypeCreate {
	ftc.mutation.SetOptionalInt16(i)
	return ftc
}

// SetNillableOptionalInt16 sets the "optional_int16" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableOptionalInt16(i *int16) *FieldTypeCreate {
	if i != nil {
		ftc.SetOptionalInt16(*i)
	}
	return ftc
}

// SetOptionalInt32 sets the "optional_int32" field.
func (ftc *FieldTypeCreate) SetOptionalInt32(i int32) *FieldTypeCreate {
	ftc.mutation.SetOptionalInt32(i)
	return ftc
}

// SetNillableOptionalInt32 sets the "optional_int32" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableOptionalInt32(i *int32) *FieldTypeCreate {
	if i != nil {
		ftc.SetOptionalInt32(*i)
	}
	return ftc
}

// SetOptionalInt64 sets the "optional_int64" field.
func (ftc *FieldTypeCreate) SetOptionalInt64(i int64) *FieldTypeCreate {
	ftc.mutation.SetOptionalInt64(i)
	return ftc
}

// SetNillableOptionalInt64 sets the "optional_int64" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableOptionalInt64(i *int64) *FieldTypeCreate {
	if i != nil {
		ftc.SetOptionalInt64(*i)
	}
	return ftc
}

// SetNillableInt sets the "nillable_int" field.
func (ftc *FieldTypeCreate) SetNillableInt(i int) *FieldTypeCreate {
	ftc.mutation.SetNillableInt(i)
	return ftc
}

// SetNillableNillableInt sets the "nillable_int" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableNillableInt(i *int) *FieldTypeCreate {
	if i != nil {
		ftc.SetNillableInt(*i)
	}
	return ftc
}

// SetNillableInt8 sets the "nillable_int8" field.
func (ftc *FieldTypeCreate) SetNillableInt8(i int8) *FieldTypeCreate {
	ftc.mutation.SetNillableInt8(i)
	return ftc
}

// SetNillableNillableInt8 sets the "nillable_int8" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableNillableInt8(i *int8) *FieldTypeCreate {
	if i != nil {
		ftc.SetNillableInt8(*i)
	}
	return ftc
}

// SetNillableInt16 sets the "nillable_int16" field.
func (ftc *FieldTypeCreate) SetNillableInt16(i int16) *FieldTypeCreate {
	ftc.mutation.SetNillableInt16(i)
	return ftc
}

// SetNillableNillableInt16 sets the "nillable_int16" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableNillableInt16(i *int16) *FieldTypeCreate {
	if i != nil {
		ftc.SetNillableInt16(*i)
	}
	return ftc
}

// SetNillableInt32 sets the "nillable_int32" field.
func (ftc *FieldTypeCreate) SetNillableInt32(i int32) *FieldTypeCreate {
	ftc.mutation.SetNillableInt32(i)
	return ftc
}

// SetNillableNillableInt32 sets the "nillable_int32" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableNillableInt32(i *int32) *FieldTypeCreate {
	if i != nil {
		ftc.SetNillableInt32(*i)
	}
	return ftc
}

// SetNillableInt64 sets the "nillable_int64" field.
func (ftc *FieldTypeCreate) SetNillableInt64(i int64) *FieldTypeCreate {
	ftc.mutation.SetNillableInt64(i)
	return ftc
}

// SetNillableNillableInt64 sets the "nillable_int64" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableNillableInt64(i *int64) *FieldTypeCreate {
	if i != nil {
		ftc.SetNillableInt64(*i)
	}
	return ftc
}

// SetValidateOptionalInt32 sets the "validate_optional_int32" field.
func (ftc *FieldTypeCreate) SetValidateOptionalInt32(i int32) *FieldTypeCreate {
	ftc.mutation.SetValidateOptionalInt32(i)
	return ftc
}

// SetNillableValidateOptionalInt32 sets the "validate_optional_int32" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableValidateOptionalInt32(i *int32) *FieldTypeCreate {
	if i != nil {
		ftc.SetValidateOptionalInt32(*i)
	}
	return ftc
}

// SetOptionalUint sets the "optional_uint" field.
func (ftc *FieldTypeCreate) SetOptionalUint(u uint) *FieldTypeCreate {
	ftc.mutation.SetOptionalUint(u)
	return ftc
}

// SetNillableOptionalUint sets the "optional_uint" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableOptionalUint(u *uint) *FieldTypeCreate {
	if u != nil {
		ftc.SetOptionalUint(*u)
	}
	return ftc
}

// SetOptionalUint8 sets the "optional_uint8" field.
func (ftc *FieldTypeCreate) SetOptionalUint8(u uint8) *FieldTypeCreate {
	ftc.mutation.SetOptionalUint8(u)
	return ftc
}

// SetNillableOptionalUint8 sets the "optional_uint8" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableOptionalUint8(u *uint8) *FieldTypeCreate {
	if u != nil {
		ftc.SetOptionalUint8(*u)
	}
	return ftc
}

// SetOptionalUint16 sets the "optional_uint16" field.
func (ftc *FieldTypeCreate) SetOptionalUint16(u uint16) *FieldTypeCreate {
	ftc.mutation.SetOptionalUint16(u)
	return ftc
}

// SetNillableOptionalUint16 sets the "optional_uint16" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableOptionalUint16(u *uint16) *FieldTypeCreate {
	if u != nil {
		ftc.SetOptionalUint16(*u)
	}
	return ftc
}

// SetOptionalUint32 sets the "optional_uint32" field.
func (ftc *FieldTypeCreate) SetOptionalUint32(u uint32) *FieldTypeCreate {
	ftc.mutation.SetOptionalUint32(u)
	return ftc
}

// SetNillableOptionalUint32 sets the "optional_uint32" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableOptionalUint32(u *uint32) *FieldTypeCreate {
	if u != nil {
		ftc.SetOptionalUint32(*u)
	}
	return ftc
}

// SetOptionalUint64 sets the "optional_uint64" field.
func (ftc *FieldTypeCreate) SetOptionalUint64(u uint64) *FieldTypeCreate {
	ftc.mutation.SetOptionalUint64(u)
	return ftc
}

// SetNillableOptionalUint64 sets the "optional_uint64" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableOptionalUint64(u *uint64) *FieldTypeCreate {
	if u != nil {
		ftc.SetOptionalUint64(*u)
	}
	return ftc
}

// SetState sets the "state" field.
func (ftc *FieldTypeCreate) SetState(f fieldtype.State) *FieldTypeCreate {
	ftc.mutation.SetState(f)
	return ftc
}

// SetNillableState sets the "state" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableState(f *fieldtype.State) *FieldTypeCreate {
	if f != nil {
		ftc.SetState(*f)
	}
	return ftc
}

// SetOptionalFloat sets the "optional_float" field.
func (ftc *FieldTypeCreate) SetOptionalFloat(f float64) *FieldTypeCreate {
	ftc.mutation.SetOptionalFloat(f)
	return ftc
}

// SetNillableOptionalFloat sets the "optional_float" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableOptionalFloat(f *float64) *FieldTypeCreate {
	if f != nil {
		ftc.SetOptionalFloat(*f)
	}
	return ftc
}

// SetOptionalFloat32 sets the "optional_float32" field.
func (ftc *FieldTypeCreate) SetOptionalFloat32(f float32) *FieldTypeCreate {
	ftc.mutation.SetOptionalFloat32(f)
	return ftc
}

// SetNillableOptionalFloat32 sets the "optional_float32" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableOptionalFloat32(f *float32) *FieldTypeCreate {
	if f != nil {
		ftc.SetOptionalFloat32(*f)
	}
	return ftc
}

// SetDatetime sets the "datetime" field.
func (ftc *FieldTypeCreate) SetDatetime(t time.Time) *FieldTypeCreate {
	ftc.mutation.SetDatetime(t)
	return ftc
}

// SetNillableDatetime sets the "datetime" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableDatetime(t *time.Time) *FieldTypeCreate {
	if t != nil {
		ftc.SetDatetime(*t)
	}
	return ftc
}

// SetDecimal sets the "decimal" field.
func (ftc *FieldTypeCreate) SetDecimal(f float64) *FieldTypeCreate {
	ftc.mutation.SetDecimal(f)
	return ftc
}

// SetNillableDecimal sets the "decimal" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableDecimal(f *float64) *FieldTypeCreate {
	if f != nil {
		ftc.SetDecimal(*f)
	}
	return ftc
}

// SetLinkOther sets the "link_other" field.
func (ftc *FieldTypeCreate) SetLinkOther(s *schema.Link) *FieldTypeCreate {
	ftc.mutation.SetLinkOther(s)
	return ftc
}

// SetMAC sets the "mac" field.
func (ftc *FieldTypeCreate) SetMAC(s schema.MAC) *FieldTypeCreate {
	ftc.mutation.SetMAC(s)
	return ftc
}

// SetNillableMAC sets the "mac" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableMAC(s *schema.MAC) *FieldTypeCreate {
	if s != nil {
		ftc.SetMAC(*s)
	}
	return ftc
}

// SetStringArray sets the "string_array" field.
func (ftc *FieldTypeCreate) SetStringArray(s schema.Strings) *FieldTypeCreate {
	ftc.mutation.SetStringArray(s)
	return ftc
}

// SetPassword sets the "password" field.
func (ftc *FieldTypeCreate) SetPassword(s string) *FieldTypeCreate {
	ftc.mutation.SetPassword(s)
	return ftc
}

// SetNillablePassword sets the "password" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillablePassword(s *string) *FieldTypeCreate {
	if s != nil {
		ftc.SetPassword(*s)
	}
	return ftc
}

// SetStringScanner sets the "string_scanner" field.
func (ftc *FieldTypeCreate) SetStringScanner(ss schema.StringScanner) *FieldTypeCreate {
	ftc.mutation.SetStringScanner(ss)
	return ftc
}

// SetNillableStringScanner sets the "string_scanner" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableStringScanner(ss *schema.StringScanner) *FieldTypeCreate {
	if ss != nil {
		ftc.SetStringScanner(*ss)
	}
	return ftc
}

// SetDuration sets the "duration" field.
func (ftc *FieldTypeCreate) SetDuration(t time.Duration) *FieldTypeCreate {
	ftc.mutation.SetDuration(t)
	return ftc
}

// SetNillableDuration sets the "duration" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableDuration(t *time.Duration) *FieldTypeCreate {
	if t != nil {
		ftc.SetDuration(*t)
	}
	return ftc
}

// SetDir sets the "dir" field.
func (ftc *FieldTypeCreate) SetDir(h http.Dir) *FieldTypeCreate {
	ftc.mutation.SetDir(h)
	return ftc
}

// SetNillableDir sets the "dir" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableDir(h *http.Dir) *FieldTypeCreate {
	if h != nil {
		ftc.SetDir(*h)
	}
	return ftc
}

// SetNdir sets the "ndir" field.
func (ftc *FieldTypeCreate) SetNdir(h http.Dir) *FieldTypeCreate {
	ftc.mutation.SetNdir(h)
	return ftc
}

// SetNillableNdir sets the "ndir" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableNdir(h *http.Dir) *FieldTypeCreate {
	if h != nil {
		ftc.SetNdir(*h)
	}
	return ftc
}

// SetStr sets the "str" field.
func (ftc *FieldTypeCreate) SetStr(ss sql.NullString) *FieldTypeCreate {
	ftc.mutation.SetStr(ss)
	return ftc
}

// SetNillableStr sets the "str" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableStr(ss *sql.NullString) *FieldTypeCreate {
	if ss != nil {
		ftc.SetStr(*ss)
	}
	return ftc
}

// SetNullStr sets the "null_str" field.
func (ftc *FieldTypeCreate) SetNullStr(ss *sql.NullString) *FieldTypeCreate {
	ftc.mutation.SetNullStr(ss)
	return ftc
}

// SetLink sets the "link" field.
func (ftc *FieldTypeCreate) SetLink(s schema.Link) *FieldTypeCreate {
	ftc.mutation.SetLink(s)
	return ftc
}

// SetNillableLink sets the "link" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableLink(s *schema.Link) *FieldTypeCreate {
	if s != nil {
		ftc.SetLink(*s)
	}
	return ftc
}

// SetNullLink sets the "null_link" field.
func (ftc *FieldTypeCreate) SetNullLink(s *schema.Link) *FieldTypeCreate {
	ftc.mutation.SetNullLink(s)
	return ftc
}

// SetActive sets the "active" field.
func (ftc *FieldTypeCreate) SetActive(s schema.Status) *FieldTypeCreate {
	ftc.mutation.SetActive(s)
	return ftc
}

// SetNillableActive sets the "active" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableActive(s *schema.Status) *FieldTypeCreate {
	if s != nil {
		ftc.SetActive(*s)
	}
	return ftc
}

// SetNullActive sets the "null_active" field.
func (ftc *FieldTypeCreate) SetNullActive(s schema.Status) *FieldTypeCreate {
	ftc.mutation.SetNullActive(s)
	return ftc
}

// SetNillableNullActive sets the "null_active" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableNullActive(s *schema.Status) *FieldTypeCreate {
	if s != nil {
		ftc.SetNullActive(*s)
	}
	return ftc
}

// SetDeleted sets the "deleted" field.
func (ftc *FieldTypeCreate) SetDeleted(sb *sql.NullBool) *FieldTypeCreate {
	ftc.mutation.SetDeleted(sb)
	return ftc
}

// SetDeletedAt sets the "deleted_at" field.
func (ftc *FieldTypeCreate) SetDeletedAt(st *sql.NullTime) *FieldTypeCreate {
	ftc.mutation.SetDeletedAt(st)
	return ftc
}

// SetRawData sets the "raw_data" field.
func (ftc *FieldTypeCreate) SetRawData(b []byte) *FieldTypeCreate {
	ftc.mutation.SetRawData(b)
	return ftc
}

// SetSensitive sets the "sensitive" field.
func (ftc *FieldTypeCreate) SetSensitive(b []byte) *FieldTypeCreate {
	ftc.mutation.SetSensitive(b)
	return ftc
}

// SetIP sets the "ip" field.
func (ftc *FieldTypeCreate) SetIP(n net.IP) *FieldTypeCreate {
	ftc.mutation.SetIP(n)
	return ftc
}

// SetNullInt64 sets the "null_int64" field.
func (ftc *FieldTypeCreate) SetNullInt64(si *sql.NullInt64) *FieldTypeCreate {
	ftc.mutation.SetNullInt64(si)
	return ftc
}

// SetSchemaInt sets the "schema_int" field.
func (ftc *FieldTypeCreate) SetSchemaInt(s schema.Int) *FieldTypeCreate {
	ftc.mutation.SetSchemaInt(s)
	return ftc
}

// SetNillableSchemaInt sets the "schema_int" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableSchemaInt(s *schema.Int) *FieldTypeCreate {
	if s != nil {
		ftc.SetSchemaInt(*s)
	}
	return ftc
}

// SetSchemaInt8 sets the "schema_int8" field.
func (ftc *FieldTypeCreate) SetSchemaInt8(s schema.Int8) *FieldTypeCreate {
	ftc.mutation.SetSchemaInt8(s)
	return ftc
}

// SetNillableSchemaInt8 sets the "schema_int8" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableSchemaInt8(s *schema.Int8) *FieldTypeCreate {
	if s != nil {
		ftc.SetSchemaInt8(*s)
	}
	return ftc
}

// SetSchemaInt64 sets the "schema_int64" field.
func (ftc *FieldTypeCreate) SetSchemaInt64(s schema.Int64) *FieldTypeCreate {
	ftc.mutation.SetSchemaInt64(s)
	return ftc
}

// SetNillableSchemaInt64 sets the "schema_int64" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableSchemaInt64(s *schema.Int64) *FieldTypeCreate {
	if s != nil {
		ftc.SetSchemaInt64(*s)
	}
	return ftc
}

// SetSchemaFloat sets the "schema_float" field.
func (ftc *FieldTypeCreate) SetSchemaFloat(s schema.Float64) *FieldTypeCreate {
	ftc.mutation.SetSchemaFloat(s)
	return ftc
}

// SetNillableSchemaFloat sets the "schema_float" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableSchemaFloat(s *schema.Float64) *FieldTypeCreate {
	if s != nil {
		ftc.SetSchemaFloat(*s)
	}
	return ftc
}

// SetSchemaFloat32 sets the "schema_float32" field.
func (ftc *FieldTypeCreate) SetSchemaFloat32(s schema.Float32) *FieldTypeCreate {
	ftc.mutation.SetSchemaFloat32(s)
	return ftc
}

// SetNillableSchemaFloat32 sets the "schema_float32" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableSchemaFloat32(s *schema.Float32) *FieldTypeCreate {
	if s != nil {
		ftc.SetSchemaFloat32(*s)
	}
	return ftc
}

// SetNullFloat sets the "null_float" field.
func (ftc *FieldTypeCreate) SetNullFloat(sf *sql.NullFloat64) *FieldTypeCreate {
	ftc.mutation.SetNullFloat(sf)
	return ftc
}

// SetRole sets the "role" field.
func (ftc *FieldTypeCreate) SetRole(r role.Role) *FieldTypeCreate {
	ftc.mutation.SetRole(r)
	return ftc
}

// SetNillableRole sets the "role" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableRole(r *role.Role) *FieldTypeCreate {
	if r != nil {
		ftc.SetRole(*r)
	}
	return ftc
}

// SetPriority sets the "priority" field.
func (ftc *FieldTypeCreate) SetPriority(r role.Priority) *FieldTypeCreate {
	ftc.mutation.SetPriority(r)
	return ftc
}

// SetNillablePriority sets the "priority" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillablePriority(r *role.Priority) *FieldTypeCreate {
	if r != nil {
		ftc.SetPriority(*r)
	}
	return ftc
}

// SetUUID sets the "uuid" field.
func (ftc *FieldTypeCreate) SetUUID(u uuid.UUID) *FieldTypeCreate {
	ftc.mutation.SetUUID(u)
	return ftc
}

// SetNillableUUID sets the "nillable_uuid" field.
func (ftc *FieldTypeCreate) SetNillableUUID(u uuid.UUID) *FieldTypeCreate {
	ftc.mutation.SetNillableUUID(u)
	return ftc
}

// SetStrings sets the "strings" field.
func (ftc *FieldTypeCreate) SetStrings(s []string) *FieldTypeCreate {
	ftc.mutation.SetStrings(s)
	return ftc
}

// SetPair sets the "pair" field.
func (ftc *FieldTypeCreate) SetPair(s schema.Pair) *FieldTypeCreate {
	ftc.mutation.SetPair(s)
	return ftc
}

// SetNillablePair sets the "pair" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillablePair(s *schema.Pair) *FieldTypeCreate {
	if s != nil {
		ftc.SetPair(*s)
	}
	return ftc
}

// SetNilPair sets the "nil_pair" field.
func (ftc *FieldTypeCreate) SetNilPair(s *schema.Pair) *FieldTypeCreate {
	ftc.mutation.SetNilPair(s)
	return ftc
}

// SetVstring sets the "vstring" field.
func (ftc *FieldTypeCreate) SetVstring(ss schema.VString) *FieldTypeCreate {
	ftc.mutation.SetVstring(ss)
	return ftc
}

// SetNillableVstring sets the "vstring" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableVstring(ss *schema.VString) *FieldTypeCreate {
	if ss != nil {
		ftc.SetVstring(*ss)
	}
	return ftc
}

// SetTriple sets the "triple" field.
func (ftc *FieldTypeCreate) SetTriple(s schema.Triple) *FieldTypeCreate {
	ftc.mutation.SetTriple(s)
	return ftc
}

// SetNillableTriple sets the "triple" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableTriple(s *schema.Triple) *FieldTypeCreate {
	if s != nil {
		ftc.SetTriple(*s)
	}
	return ftc
}

// SetBigInt sets the "big_int" field.
func (ftc *FieldTypeCreate) SetBigInt(si schema.BigInt) *FieldTypeCreate {
	ftc.mutation.SetBigInt(si)
	return ftc
}

// SetNillableBigInt sets the "big_int" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillableBigInt(si *schema.BigInt) *FieldTypeCreate {
	if si != nil {
		ftc.SetBigInt(*si)
	}
	return ftc
}

// SetPasswordOther sets the "password_other" field.
func (ftc *FieldTypeCreate) SetPasswordOther(s schema.Password) *FieldTypeCreate {
	ftc.mutation.SetPasswordOther(s)
	return ftc
}

// SetNillablePasswordOther sets the "password_other" field if the given value is not nil.
func (ftc *FieldTypeCreate) SetNillablePasswordOther(s *schema.Password) *FieldTypeCreate {
	if s != nil {
		ftc.SetPasswordOther(*s)
	}
	return ftc
}

// Mutation returns the FieldTypeMutation object of the builder.
func (ftc *FieldTypeCreate) Mutation() *FieldTypeMutation {
	return ftc.mutation
}

// Save creates the FieldType in the database.
func (ftc *FieldTypeCreate) Save(ctx context.Context) (*FieldType, error) {
	var (
		err  error
		node *FieldType
	)
	ftc.defaults()
	if len(ftc.hooks) == 0 {
		if err = ftc.check(); err != nil {
			return nil, err
		}
		node, err = ftc.sqlSave(ctx)
	} else {
		var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) {
			mutation, ok := m.(*FieldTypeMutation)
			if !ok {
				return nil, fmt.Errorf("unexpected mutation type %T", m)
			}
			if err = ftc.check(); err != nil {
				return nil, err
			}
			ftc.mutation = mutation
			if node, err = ftc.sqlSave(ctx); err != nil {
				return nil, err
			}
			mutation.id = &node.ID
			mutation.done = true
			return node, err
		})
		for i := len(ftc.hooks) - 1; i >= 0; i-- {
			if ftc.hooks[i] == nil {
				return nil, fmt.Errorf("ent: uninitialized hook (forgotten import ent/runtime?)")
			}
			mut = ftc.hooks[i](mut)
		}
		if _, err := mut.Mutate(ctx, ftc.mutation); err != nil {
			return nil, err
		}
	}
	return node, err
}

// SaveX calls Save and panics if Save returns an error.
func (ftc *FieldTypeCreate) SaveX(ctx context.Context) *FieldType {
	v, err := ftc.Save(ctx)
	if err != nil {
		panic(err)
	}
	return v
}

// Exec executes the query.
func (ftc *FieldTypeCreate) Exec(ctx context.Context) error {
	_, err := ftc.Save(ctx)
	return err
}

// ExecX is like Exec, but panics if an error occurs.
func (ftc *FieldTypeCreate) ExecX(ctx context.Context) {
	if err := ftc.Exec(ctx); err != nil {
		panic(err)
	}
}

// defaults sets the default values of the builder before save.
func (ftc *FieldTypeCreate) defaults() {
	if _, ok := ftc.mutation.Dir(); !ok {
		v := fieldtype.DefaultDir()
		ftc.mutation.SetDir(v)
	}
	if _, ok := ftc.mutation.Str(); !ok {
		v := fieldtype.DefaultStr()
		ftc.mutation.SetStr(v)
	}
	if _, ok := ftc.mutation.NullStr(); !ok {
		v := fieldtype.DefaultNullStr()
		ftc.mutation.SetNullStr(v)
	}
	if _, ok := ftc.mutation.IP(); !ok {
		v := fieldtype.DefaultIP()
		ftc.mutation.SetIP(v)
	}
	if _, ok := ftc.mutation.Role(); !ok {
		v := fieldtype.DefaultRole
		ftc.mutation.SetRole(v)
	}
	if _, ok := ftc.mutation.Pair(); !ok {
		v := fieldtype.DefaultPair()
		ftc.mutation.SetPair(v)
	}
	if _, ok := ftc.mutation.Vstring(); !ok {
		v := fieldtype.DefaultVstring()
		ftc.mutation.SetVstring(v)
	}
	if _, ok := ftc.mutation.Triple(); !ok {
		v := fieldtype.DefaultTriple()
		ftc.mutation.SetTriple(v)
	}
}

// check runs all checks and user-defined validators on the builder.
func (ftc *FieldTypeCreate) check() error {
	if _, ok := ftc.mutation.Int(); !ok {
		return &ValidationError{Name: "int", err: errors.New(`ent: missing required field "FieldType.int"`)}
	}
	if _, ok := ftc.mutation.Int8(); !ok {
		return &ValidationError{Name: "int8", err: errors.New(`ent: missing required field "FieldType.int8"`)}
	}
	if _, ok := ftc.mutation.Int16(); !ok {
		return &ValidationError{Name: "int16", err: errors.New(`ent: missing required field "FieldType.int16"`)}
	}
	if _, ok := ftc.mutation.Int32(); !ok {
		return &ValidationError{Name: "int32", err: errors.New(`ent: missing required field "FieldType.int32"`)}
	}
	if _, ok := ftc.mutation.Int64(); !ok {
		return &ValidationError{Name: "int64", err: errors.New(`ent: missing required field "FieldType.int64"`)}
	}
	if v, ok := ftc.mutation.ValidateOptionalInt32(); ok {
		if err := fieldtype.ValidateOptionalInt32Validator(v); err != nil {
			return &ValidationError{Name: "validate_optional_int32", err: fmt.Errorf(`ent: validator failed for field "FieldType.validate_optional_int32": %w`, err)}
		}
	}
	if v, ok := ftc.mutation.State(); ok {
		if err := fieldtype.StateValidator(v); err != nil {
			return &ValidationError{Name: "state", err: fmt.Errorf(`ent: validator failed for field "FieldType.state": %w`, err)}
		}
	}
	if v, ok := ftc.mutation.MAC(); ok {
		if err := fieldtype.MACValidator(v.String()); err != nil {
			return &ValidationError{Name: "mac", err: fmt.Errorf(`ent: validator failed for field "FieldType.mac": %w`, err)}
		}
	}
	if _, ok := ftc.mutation.Dir(); !ok {
		return &ValidationError{Name: "dir", err: errors.New(`ent: missing required field "FieldType.dir"`)}
	}
	if v, ok := ftc.mutation.Ndir(); ok {
		if err := fieldtype.NdirValidator(string(v)); err != nil {
			return &ValidationError{Name: "ndir", err: fmt.Errorf(`ent: validator failed for field "FieldType.ndir": %w`, err)}
		}
	}
	if v, ok := ftc.mutation.Link(); ok {
		if err := fieldtype.LinkValidator(v.String()); err != nil {
			return &ValidationError{Name: "link", err: fmt.Errorf(`ent: validator failed for field "FieldType.link": %w`, err)}
		}
	}
	if v, ok := ftc.mutation.RawData(); ok {
		if err := fieldtype.RawDataValidator(v); err != nil {
			return &ValidationError{Name: "raw_data", err: fmt.Errorf(`ent: validator failed for field "FieldType.raw_data": %w`, err)}
		}
	}
	if v, ok := ftc.mutation.IP(); ok {
		if err := fieldtype.IPValidator([]byte(v)); err != nil {
			return &ValidationError{Name: "ip", err: fmt.Errorf(`ent: validator failed for field "FieldType.ip": %w`, err)}
		}
	}
	if _, ok := ftc.mutation.Role(); !ok {
		return &ValidationError{Name: "role", err: errors.New(`ent: missing required field "FieldType.role"`)}
	}
	if v, ok := ftc.mutation.Role(); ok {
		if err := fieldtype.RoleValidator(v); err != nil {
			return &ValidationError{Name: "role", err: fmt.Errorf(`ent: validator failed for field "FieldType.role": %w`, err)}
		}
	}
	if v, ok := ftc.mutation.Priority(); ok {
		if err := fieldtype.PriorityValidator(v); err != nil {
			return &ValidationError{Name: "priority", err: fmt.Errorf(`ent: validator failed for field "FieldType.priority": %w`, err)}
		}
	}
	if _, ok := ftc.mutation.Pair(); !ok {
		return &ValidationError{Name: "pair", err: errors.New(`ent: missing required field "FieldType.pair"`)}
	}
	if _, ok := ftc.mutation.Vstring(); !ok {
		return &ValidationError{Name: "vstring", err: errors.New(`ent: missing required field "FieldType.vstring"`)}
	}
	if _, ok := ftc.mutation.Triple(); !ok {
		return &ValidationError{Name: "triple", err: errors.New(`ent: missing required field "FieldType.triple"`)}
	}
	return nil
}

func (ftc *FieldTypeCreate) sqlSave(ctx context.Context) (*FieldType, error) {
	_node, _spec := ftc.createSpec()
	if err := sqlgraph.CreateNode(ctx, ftc.driver, _spec); err != nil {
		if sqlgraph.IsConstraintError(err) {
			err = &ConstraintError{err.Error(), err}
		}
		return nil, err
	}
	id := _spec.ID.Value.(int64)
	_node.ID = int(id)
	return _node, nil
}

func (ftc *FieldTypeCreate) createSpec() (*FieldType, *sqlgraph.CreateSpec) {
	var (
		_node = &FieldType{config: ftc.config}
		_spec = &sqlgraph.CreateSpec{
			Table: fieldtype.Table,
			ID: &sqlgraph.FieldSpec{
				Type:   field.TypeInt,
				Column: fieldtype.FieldID,
			},
		}
	)
	_spec.OnConflict = ftc.conflict
	if value, ok := ftc.mutation.Int(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeInt,
			Value:  value,
			Column: fieldtype.FieldInt,
		})
		_node.Int = value
	}
	if value, ok := ftc.mutation.Int8(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeInt8,
			Value:  value,
			Column: fieldtype.FieldInt8,
		})
		_node.Int8 = value
	}
	if value, ok := ftc.mutation.Int16(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeInt16,
			Value:  value,
			Column: fieldtype.FieldInt16,
		})
		_node.Int16 = value
	}
	if value, ok := ftc.mutation.Int32(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeInt32,
			Value:  value,
			Column: fieldtype.FieldInt32,
		})
		_node.Int32 = value
	}
	if value, ok := ftc.mutation.Int64(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeInt64,
			Value:  value,
			Column: fieldtype.FieldInt64,
		})
		_node.Int64 = value
	}
	if value, ok := ftc.mutation.OptionalInt(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeInt,
			Value:  value,
			Column: fieldtype.FieldOptionalInt,
		})
		_node.OptionalInt = value
	}
	if value, ok := ftc.mutation.OptionalInt8(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeInt8,
			Value:  value,
			Column: fieldtype.FieldOptionalInt8,
		})
		_node.OptionalInt8 = value
	}
	if value, ok := ftc.mutation.OptionalInt16(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeInt16,
			Value:  value,
			Column: fieldtype.FieldOptionalInt16,
		})
		_node.OptionalInt16 = value
	}
	if value, ok := ftc.mutation.OptionalInt32(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeInt32,
			Value:  value,
			Column: fieldtype.FieldOptionalInt32,
		})
		_node.OptionalInt32 = value
	}
	if value, ok := ftc.mutation.OptionalInt64(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeInt64,
			Value:  value,
			Column: fieldtype.FieldOptionalInt64,
		})
		_node.OptionalInt64 = value
	}
	if value, ok := ftc.mutation.NillableInt(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeInt,
			Value:  value,
			Column: fieldtype.FieldNillableInt,
		})
		_node.NillableInt = &value
	}
	if value, ok := ftc.mutation.NillableInt8(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeInt8,
			Value:  value,
			Column: fieldtype.FieldNillableInt8,
		})
		_node.NillableInt8 = &value
	}
	if value, ok := ftc.mutation.NillableInt16(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeInt16,
			Value:  value,
			Column: fieldtype.FieldNillableInt16,
		})
		_node.NillableInt16 = &value
	}
	if value, ok := ftc.mutation.NillableInt32(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeInt32,
			Value:  value,
			Column: fieldtype.FieldNillableInt32,
		})
		_node.NillableInt32 = &value
	}
	if value, ok := ftc.mutation.NillableInt64(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeInt64,
			Value:  value,
			Column: fieldtype.FieldNillableInt64,
		})
		_node.NillableInt64 = &value
	}
	if value, ok := ftc.mutation.ValidateOptionalInt32(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeInt32,
			Value:  value,
			Column: fieldtype.FieldValidateOptionalInt32,
		})
		_node.ValidateOptionalInt32 = value
	}
	if value, ok := ftc.mutation.OptionalUint(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeUint,
			Value:  value,
			Column: fieldtype.FieldOptionalUint,
		})
		_node.OptionalUint = value
	}
	if value, ok := ftc.mutation.OptionalUint8(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeUint8,
			Value:  value,
			Column: fieldtype.FieldOptionalUint8,
		})
		_node.OptionalUint8 = value
	}
	if value, ok := ftc.mutation.OptionalUint16(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeUint16,
			Value:  value,
			Column: fieldtype.FieldOptionalUint16,
		})
		_node.OptionalUint16 = value
	}
	if value, ok := ftc.mutation.OptionalUint32(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeUint32,
			Value:  value,
			Column: fieldtype.FieldOptionalUint32,
		})
		_node.OptionalUint32 = value
	}
	if value, ok := ftc.mutation.OptionalUint64(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeUint64,
			Value:  value,
			Column: fieldtype.FieldOptionalUint64,
		})
		_node.OptionalUint64 = value
	}
	if value, ok := ftc.mutation.State(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeEnum,
			Value:  value,
			Column: fieldtype.FieldState,
		})
		_node.State = value
	}
	if value, ok := ftc.mutation.OptionalFloat(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeFloat64,
			Value:  value,
			Column: fieldtype.FieldOptionalFloat,
		})
		_node.OptionalFloat = value
	}
	if value, ok := ftc.mutation.OptionalFloat32(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeFloat32,
			Value:  value,
			Column: fieldtype.FieldOptionalFloat32,
		})
		_node.OptionalFloat32 = value
	}
	if value, ok := ftc.mutation.Datetime(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeTime,
			Value:  value,
			Column: fieldtype.FieldDatetime,
		})
		_node.Datetime = value
	}
	if value, ok := ftc.mutation.Decimal(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeFloat64,
			Value:  value,
			Column: fieldtype.FieldDecimal,
		})
		_node.Decimal = value
	}
	if value, ok := ftc.mutation.LinkOther(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeOther,
			Value:  value,
			Column: fieldtype.FieldLinkOther,
		})
		_node.LinkOther = value
	}
	if value, ok := ftc.mutation.MAC(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeString,
			Value:  value,
			Column: fieldtype.FieldMAC,
		})
		_node.MAC = value
	}
	if value, ok := ftc.mutation.StringArray(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeOther,
			Value:  value,
			Column: fieldtype.FieldStringArray,
		})
		_node.StringArray = value
	}
	if value, ok := ftc.mutation.Password(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeString,
			Value:  value,
			Column: fieldtype.FieldPassword,
		})
		_node.Password = value
	}
	if value, ok := ftc.mutation.StringScanner(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeString,
			Value:  value,
			Column: fieldtype.FieldStringScanner,
		})
		_node.StringScanner = &value
	}
	if value, ok := ftc.mutation.Duration(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeInt64,
			Value:  value,
			Column: fieldtype.FieldDuration,
		})
		_node.Duration = value
	}
	if value, ok := ftc.mutation.Dir(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeString,
			Value:  value,
			Column: fieldtype.FieldDir,
		})
		_node.Dir = value
	}
	if value, ok := ftc.mutation.Ndir(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeString,
			Value:  value,
			Column: fieldtype.FieldNdir,
		})
		_node.Ndir = &value
	}
	if value, ok := ftc.mutation.Str(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeString,
			Value:  value,
			Column: fieldtype.FieldStr,
		})
		_node.Str = value
	}
	if value, ok := ftc.mutation.NullStr(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeString,
			Value:  value,
			Column: fieldtype.FieldNullStr,
		})
		_node.NullStr = value
	}
	if value, ok := ftc.mutation.Link(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeString,
			Value:  value,
			Column: fieldtype.FieldLink,
		})
		_node.Link = value
	}
	if value, ok := ftc.mutation.NullLink(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeString,
			Value:  value,
			Column: fieldtype.FieldNullLink,
		})
		_node.NullLink = value
	}
	if value, ok := ftc.mutation.Active(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeBool,
			Value:  value,
			Column: fieldtype.FieldActive,
		})
		_node.Active = value
	}
	if value, ok := ftc.mutation.NullActive(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeBool,
			Value:  value,
			Column: fieldtype.FieldNullActive,
		})
		_node.NullActive = &value
	}
	if value, ok := ftc.mutation.Deleted(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeBool,
			Value:  value,
			Column: fieldtype.FieldDeleted,
		})
		_node.Deleted = value
	}
	if value, ok := ftc.mutation.DeletedAt(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeTime,
			Value:  value,
			Column: fieldtype.FieldDeletedAt,
		})
		_node.DeletedAt = value
	}
	if value, ok := ftc.mutation.RawData(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeBytes,
			Value:  value,
			Column: fieldtype.FieldRawData,
		})
		_node.RawData = value
	}
	if value, ok := ftc.mutation.Sensitive(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeBytes,
			Value:  value,
			Column: fieldtype.FieldSensitive,
		})
		_node.Sensitive = value
	}
	if value, ok := ftc.mutation.IP(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeBytes,
			Value:  value,
			Column: fieldtype.FieldIP,
		})
		_node.IP = value
	}
	if value, ok := ftc.mutation.NullInt64(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeInt,
			Value:  value,
			Column: fieldtype.FieldNullInt64,
		})
		_node.NullInt64 = value
	}
	if value, ok := ftc.mutation.SchemaInt(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeInt,
			Value:  value,
			Column: fieldtype.FieldSchemaInt,
		})
		_node.SchemaInt = value
	}
	if value, ok := ftc.mutation.SchemaInt8(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeInt8,
			Value:  value,
			Column: fieldtype.FieldSchemaInt8,
		})
		_node.SchemaInt8 = value
	}
	if value, ok := ftc.mutation.SchemaInt64(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeInt64,
			Value:  value,
			Column: fieldtype.FieldSchemaInt64,
		})
		_node.SchemaInt64 = value
	}
	if value, ok := ftc.mutation.SchemaFloat(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeFloat64,
			Value:  value,
			Column: fieldtype.FieldSchemaFloat,
		})
		_node.SchemaFloat = value
	}
	if value, ok := ftc.mutation.SchemaFloat32(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeFloat32,
			Value:  value,
			Column: fieldtype.FieldSchemaFloat32,
		})
		_node.SchemaFloat32 = value
	}
	if value, ok := ftc.mutation.NullFloat(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeFloat64,
			Value:  value,
			Column: fieldtype.FieldNullFloat,
		})
		_node.NullFloat = value
	}
	if value, ok := ftc.mutation.Role(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeEnum,
			Value:  value,
			Column: fieldtype.FieldRole,
		})
		_node.Role = value
	}
	if value, ok := ftc.mutation.Priority(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeEnum,
			Value:  value,
			Column: fieldtype.FieldPriority,
		})
		_node.Priority = value
	}
	if value, ok := ftc.mutation.UUID(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeUUID,
			Value:  value,
			Column: fieldtype.FieldUUID,
		})
		_node.UUID = value
	}
	if value, ok := ftc.mutation.NillableUUID(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeUUID,
			Value:  value,
			Column: fieldtype.FieldNillableUUID,
		})
		_node.NillableUUID = &value
	}
	if value, ok := ftc.mutation.Strings(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeJSON,
			Value:  value,
			Column: fieldtype.FieldStrings,
		})
		_node.Strings = value
	}
	if value, ok := ftc.mutation.Pair(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeBytes,
			Value:  value,
			Column: fieldtype.FieldPair,
		})
		_node.Pair = value
	}
	if value, ok := ftc.mutation.NilPair(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeBytes,
			Value:  value,
			Column: fieldtype.FieldNilPair,
		})
		_node.NilPair = value
	}
	if value, ok := ftc.mutation.Vstring(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeString,
			Value:  value,
			Column: fieldtype.FieldVstring,
		})
		_node.Vstring = value
	}
	if value, ok := ftc.mutation.Triple(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeString,
			Value:  value,
			Column: fieldtype.FieldTriple,
		})
		_node.Triple = value
	}
	if value, ok := ftc.mutation.BigInt(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeInt,
			Value:  value,
			Column: fieldtype.FieldBigInt,
		})
		_node.BigInt = value
	}
	if value, ok := ftc.mutation.PasswordOther(); ok {
		_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
			Type:   field.TypeOther,
			Value:  value,
			Column: fieldtype.FieldPasswordOther,
		})
		_node.PasswordOther = value
	}
	return _node, _spec
}

// OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause
// of the `INSERT` statement. For example:
//
//	client.FieldType.Create().
//		SetInt(v).
//		OnConflict(
//			// Update the row with the new values
//			// the was proposed for insertion.
//			sql.ResolveWithNewValues(),
//		).
//		// Override some of the fields with custom
//		// update values.
//		Update(func(u *ent.FieldTypeUpsert) {
//			SetInt(v+v).
//		}).
//		Exec(ctx)
//
func (ftc *FieldTypeCreate) OnConflict(opts ...sql.ConflictOption) *FieldTypeUpsertOne {
	ftc.conflict = opts
	return &FieldTypeUpsertOne{
		create: ftc,
	}
}

// OnConflictColumns calls `OnConflict` and configures the columns
// as conflict target. Using this option is equivalent to using:
//
//	client.FieldType.Create().
//		OnConflict(sql.ConflictColumns(columns...)).
//		Exec(ctx)
//
func (ftc *FieldTypeCreate) OnConflictColumns(columns ...string) *FieldTypeUpsertOne {
	ftc.conflict = append(ftc.conflict, sql.ConflictColumns(columns...))
	return &FieldTypeUpsertOne{
		create: ftc,
	}
}

type (
	// FieldTypeUpsertOne is the builder for "upsert"-ing
	//  one FieldType node.
	FieldTypeUpsertOne struct {
		create *FieldTypeCreate
	}

	// FieldTypeUpsert is the "OnConflict" setter.
	FieldTypeUpsert struct {
		*sql.UpdateSet
	}
)

// SetInt sets the "int" field.
func (u *FieldTypeUpsert) SetInt(v int) *FieldTypeUpsert {
	u.Set(fieldtype.FieldInt, v)
	return u
}

// UpdateInt sets the "int" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateInt() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldInt)
	return u
}

// AddInt adds v to the "int" field.
func (u *FieldTypeUpsert) AddInt(v int) *FieldTypeUpsert {
	u.Add(fieldtype.FieldInt, v)
	return u
}

// SetInt8 sets the "int8" field.
func (u *FieldTypeUpsert) SetInt8(v int8) *FieldTypeUpsert {
	u.Set(fieldtype.FieldInt8, v)
	return u
}

// UpdateInt8 sets the "int8" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateInt8() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldInt8)
	return u
}

// AddInt8 adds v to the "int8" field.
func (u *FieldTypeUpsert) AddInt8(v int8) *FieldTypeUpsert {
	u.Add(fieldtype.FieldInt8, v)
	return u
}

// SetInt16 sets the "int16" field.
func (u *FieldTypeUpsert) SetInt16(v int16) *FieldTypeUpsert {
	u.Set(fieldtype.FieldInt16, v)
	return u
}

// UpdateInt16 sets the "int16" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateInt16() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldInt16)
	return u
}

// AddInt16 adds v to the "int16" field.
func (u *FieldTypeUpsert) AddInt16(v int16) *FieldTypeUpsert {
	u.Add(fieldtype.FieldInt16, v)
	return u
}

// SetInt32 sets the "int32" field.
func (u *FieldTypeUpsert) SetInt32(v int32) *FieldTypeUpsert {
	u.Set(fieldtype.FieldInt32, v)
	return u
}

// UpdateInt32 sets the "int32" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateInt32() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldInt32)
	return u
}

// AddInt32 adds v to the "int32" field.
func (u *FieldTypeUpsert) AddInt32(v int32) *FieldTypeUpsert {
	u.Add(fieldtype.FieldInt32, v)
	return u
}

// SetInt64 sets the "int64" field.
func (u *FieldTypeUpsert) SetInt64(v int64) *FieldTypeUpsert {
	u.Set(fieldtype.FieldInt64, v)
	return u
}

// UpdateInt64 sets the "int64" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateInt64() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldInt64)
	return u
}

// AddInt64 adds v to the "int64" field.
func (u *FieldTypeUpsert) AddInt64(v int64) *FieldTypeUpsert {
	u.Add(fieldtype.FieldInt64, v)
	return u
}

// SetOptionalInt sets the "optional_int" field.
func (u *FieldTypeUpsert) SetOptionalInt(v int) *FieldTypeUpsert {
	u.Set(fieldtype.FieldOptionalInt, v)
	return u
}

// UpdateOptionalInt sets the "optional_int" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateOptionalInt() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldOptionalInt)
	return u
}

// AddOptionalInt adds v to the "optional_int" field.
func (u *FieldTypeUpsert) AddOptionalInt(v int) *FieldTypeUpsert {
	u.Add(fieldtype.FieldOptionalInt, v)
	return u
}

// ClearOptionalInt clears the value of the "optional_int" field.
func (u *FieldTypeUpsert) ClearOptionalInt() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldOptionalInt)
	return u
}

// SetOptionalInt8 sets the "optional_int8" field.
func (u *FieldTypeUpsert) SetOptionalInt8(v int8) *FieldTypeUpsert {
	u.Set(fieldtype.FieldOptionalInt8, v)
	return u
}

// UpdateOptionalInt8 sets the "optional_int8" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateOptionalInt8() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldOptionalInt8)
	return u
}

// AddOptionalInt8 adds v to the "optional_int8" field.
func (u *FieldTypeUpsert) AddOptionalInt8(v int8) *FieldTypeUpsert {
	u.Add(fieldtype.FieldOptionalInt8, v)
	return u
}

// ClearOptionalInt8 clears the value of the "optional_int8" field.
func (u *FieldTypeUpsert) ClearOptionalInt8() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldOptionalInt8)
	return u
}

// SetOptionalInt16 sets the "optional_int16" field.
func (u *FieldTypeUpsert) SetOptionalInt16(v int16) *FieldTypeUpsert {
	u.Set(fieldtype.FieldOptionalInt16, v)
	return u
}

// UpdateOptionalInt16 sets the "optional_int16" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateOptionalInt16() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldOptionalInt16)
	return u
}

// AddOptionalInt16 adds v to the "optional_int16" field.
func (u *FieldTypeUpsert) AddOptionalInt16(v int16) *FieldTypeUpsert {
	u.Add(fieldtype.FieldOptionalInt16, v)
	return u
}

// ClearOptionalInt16 clears the value of the "optional_int16" field.
func (u *FieldTypeUpsert) ClearOptionalInt16() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldOptionalInt16)
	return u
}

// SetOptionalInt32 sets the "optional_int32" field.
func (u *FieldTypeUpsert) SetOptionalInt32(v int32) *FieldTypeUpsert {
	u.Set(fieldtype.FieldOptionalInt32, v)
	return u
}

// UpdateOptionalInt32 sets the "optional_int32" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateOptionalInt32() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldOptionalInt32)
	return u
}

// AddOptionalInt32 adds v to the "optional_int32" field.
func (u *FieldTypeUpsert) AddOptionalInt32(v int32) *FieldTypeUpsert {
	u.Add(fieldtype.FieldOptionalInt32, v)
	return u
}

// ClearOptionalInt32 clears the value of the "optional_int32" field.
func (u *FieldTypeUpsert) ClearOptionalInt32() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldOptionalInt32)
	return u
}

// SetOptionalInt64 sets the "optional_int64" field.
func (u *FieldTypeUpsert) SetOptionalInt64(v int64) *FieldTypeUpsert {
	u.Set(fieldtype.FieldOptionalInt64, v)
	return u
}

// UpdateOptionalInt64 sets the "optional_int64" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateOptionalInt64() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldOptionalInt64)
	return u
}

// AddOptionalInt64 adds v to the "optional_int64" field.
func (u *FieldTypeUpsert) AddOptionalInt64(v int64) *FieldTypeUpsert {
	u.Add(fieldtype.FieldOptionalInt64, v)
	return u
}

// ClearOptionalInt64 clears the value of the "optional_int64" field.
func (u *FieldTypeUpsert) ClearOptionalInt64() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldOptionalInt64)
	return u
}

// SetNillableInt sets the "nillable_int" field.
func (u *FieldTypeUpsert) SetNillableInt(v int) *FieldTypeUpsert {
	u.Set(fieldtype.FieldNillableInt, v)
	return u
}

// UpdateNillableInt sets the "nillable_int" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateNillableInt() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldNillableInt)
	return u
}

// AddNillableInt adds v to the "nillable_int" field.
func (u *FieldTypeUpsert) AddNillableInt(v int) *FieldTypeUpsert {
	u.Add(fieldtype.FieldNillableInt, v)
	return u
}

// ClearNillableInt clears the value of the "nillable_int" field.
func (u *FieldTypeUpsert) ClearNillableInt() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldNillableInt)
	return u
}

// SetNillableInt8 sets the "nillable_int8" field.
func (u *FieldTypeUpsert) SetNillableInt8(v int8) *FieldTypeUpsert {
	u.Set(fieldtype.FieldNillableInt8, v)
	return u
}

// UpdateNillableInt8 sets the "nillable_int8" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateNillableInt8() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldNillableInt8)
	return u
}

// AddNillableInt8 adds v to the "nillable_int8" field.
func (u *FieldTypeUpsert) AddNillableInt8(v int8) *FieldTypeUpsert {
	u.Add(fieldtype.FieldNillableInt8, v)
	return u
}

// ClearNillableInt8 clears the value of the "nillable_int8" field.
func (u *FieldTypeUpsert) ClearNillableInt8() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldNillableInt8)
	return u
}

// SetNillableInt16 sets the "nillable_int16" field.
func (u *FieldTypeUpsert) SetNillableInt16(v int16) *FieldTypeUpsert {
	u.Set(fieldtype.FieldNillableInt16, v)
	return u
}

// UpdateNillableInt16 sets the "nillable_int16" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateNillableInt16() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldNillableInt16)
	return u
}

// AddNillableInt16 adds v to the "nillable_int16" field.
func (u *FieldTypeUpsert) AddNillableInt16(v int16) *FieldTypeUpsert {
	u.Add(fieldtype.FieldNillableInt16, v)
	return u
}

// ClearNillableInt16 clears the value of the "nillable_int16" field.
func (u *FieldTypeUpsert) ClearNillableInt16() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldNillableInt16)
	return u
}

// SetNillableInt32 sets the "nillable_int32" field.
func (u *FieldTypeUpsert) SetNillableInt32(v int32) *FieldTypeUpsert {
	u.Set(fieldtype.FieldNillableInt32, v)
	return u
}

// UpdateNillableInt32 sets the "nillable_int32" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateNillableInt32() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldNillableInt32)
	return u
}

// AddNillableInt32 adds v to the "nillable_int32" field.
func (u *FieldTypeUpsert) AddNillableInt32(v int32) *FieldTypeUpsert {
	u.Add(fieldtype.FieldNillableInt32, v)
	return u
}

// ClearNillableInt32 clears the value of the "nillable_int32" field.
func (u *FieldTypeUpsert) ClearNillableInt32() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldNillableInt32)
	return u
}

// SetNillableInt64 sets the "nillable_int64" field.
func (u *FieldTypeUpsert) SetNillableInt64(v int64) *FieldTypeUpsert {
	u.Set(fieldtype.FieldNillableInt64, v)
	return u
}

// UpdateNillableInt64 sets the "nillable_int64" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateNillableInt64() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldNillableInt64)
	return u
}

// AddNillableInt64 adds v to the "nillable_int64" field.
func (u *FieldTypeUpsert) AddNillableInt64(v int64) *FieldTypeUpsert {
	u.Add(fieldtype.FieldNillableInt64, v)
	return u
}

// ClearNillableInt64 clears the value of the "nillable_int64" field.
func (u *FieldTypeUpsert) ClearNillableInt64() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldNillableInt64)
	return u
}

// SetValidateOptionalInt32 sets the "validate_optional_int32" field.
func (u *FieldTypeUpsert) SetValidateOptionalInt32(v int32) *FieldTypeUpsert {
	u.Set(fieldtype.FieldValidateOptionalInt32, v)
	return u
}

// UpdateValidateOptionalInt32 sets the "validate_optional_int32" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateValidateOptionalInt32() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldValidateOptionalInt32)
	return u
}

// AddValidateOptionalInt32 adds v to the "validate_optional_int32" field.
func (u *FieldTypeUpsert) AddValidateOptionalInt32(v int32) *FieldTypeUpsert {
	u.Add(fieldtype.FieldValidateOptionalInt32, v)
	return u
}

// ClearValidateOptionalInt32 clears the value of the "validate_optional_int32" field.
func (u *FieldTypeUpsert) ClearValidateOptionalInt32() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldValidateOptionalInt32)
	return u
}

// SetOptionalUint sets the "optional_uint" field.
func (u *FieldTypeUpsert) SetOptionalUint(v uint) *FieldTypeUpsert {
	u.Set(fieldtype.FieldOptionalUint, v)
	return u
}

// UpdateOptionalUint sets the "optional_uint" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateOptionalUint() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldOptionalUint)
	return u
}

// AddOptionalUint adds v to the "optional_uint" field.
func (u *FieldTypeUpsert) AddOptionalUint(v uint) *FieldTypeUpsert {
	u.Add(fieldtype.FieldOptionalUint, v)
	return u
}

// ClearOptionalUint clears the value of the "optional_uint" field.
func (u *FieldTypeUpsert) ClearOptionalUint() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldOptionalUint)
	return u
}

// SetOptionalUint8 sets the "optional_uint8" field.
func (u *FieldTypeUpsert) SetOptionalUint8(v uint8) *FieldTypeUpsert {
	u.Set(fieldtype.FieldOptionalUint8, v)
	return u
}

// UpdateOptionalUint8 sets the "optional_uint8" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateOptionalUint8() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldOptionalUint8)
	return u
}

// AddOptionalUint8 adds v to the "optional_uint8" field.
func (u *FieldTypeUpsert) AddOptionalUint8(v uint8) *FieldTypeUpsert {
	u.Add(fieldtype.FieldOptionalUint8, v)
	return u
}

// ClearOptionalUint8 clears the value of the "optional_uint8" field.
func (u *FieldTypeUpsert) ClearOptionalUint8() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldOptionalUint8)
	return u
}

// SetOptionalUint16 sets the "optional_uint16" field.
func (u *FieldTypeUpsert) SetOptionalUint16(v uint16) *FieldTypeUpsert {
	u.Set(fieldtype.FieldOptionalUint16, v)
	return u
}

// UpdateOptionalUint16 sets the "optional_uint16" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateOptionalUint16() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldOptionalUint16)
	return u
}

// AddOptionalUint16 adds v to the "optional_uint16" field.
func (u *FieldTypeUpsert) AddOptionalUint16(v uint16) *FieldTypeUpsert {
	u.Add(fieldtype.FieldOptionalUint16, v)
	return u
}

// ClearOptionalUint16 clears the value of the "optional_uint16" field.
func (u *FieldTypeUpsert) ClearOptionalUint16() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldOptionalUint16)
	return u
}

// SetOptionalUint32 sets the "optional_uint32" field.
func (u *FieldTypeUpsert) SetOptionalUint32(v uint32) *FieldTypeUpsert {
	u.Set(fieldtype.FieldOptionalUint32, v)
	return u
}

// UpdateOptionalUint32 sets the "optional_uint32" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateOptionalUint32() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldOptionalUint32)
	return u
}

// AddOptionalUint32 adds v to the "optional_uint32" field.
func (u *FieldTypeUpsert) AddOptionalUint32(v uint32) *FieldTypeUpsert {
	u.Add(fieldtype.FieldOptionalUint32, v)
	return u
}

// ClearOptionalUint32 clears the value of the "optional_uint32" field.
func (u *FieldTypeUpsert) ClearOptionalUint32() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldOptionalUint32)
	return u
}

// SetOptionalUint64 sets the "optional_uint64" field.
func (u *FieldTypeUpsert) SetOptionalUint64(v uint64) *FieldTypeUpsert {
	u.Set(fieldtype.FieldOptionalUint64, v)
	return u
}

// UpdateOptionalUint64 sets the "optional_uint64" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateOptionalUint64() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldOptionalUint64)
	return u
}

// AddOptionalUint64 adds v to the "optional_uint64" field.
func (u *FieldTypeUpsert) AddOptionalUint64(v uint64) *FieldTypeUpsert {
	u.Add(fieldtype.FieldOptionalUint64, v)
	return u
}

// ClearOptionalUint64 clears the value of the "optional_uint64" field.
func (u *FieldTypeUpsert) ClearOptionalUint64() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldOptionalUint64)
	return u
}

// SetState sets the "state" field.
func (u *FieldTypeUpsert) SetState(v fieldtype.State) *FieldTypeUpsert {
	u.Set(fieldtype.FieldState, v)
	return u
}

// UpdateState sets the "state" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateState() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldState)
	return u
}

// ClearState clears the value of the "state" field.
func (u *FieldTypeUpsert) ClearState() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldState)
	return u
}

// SetOptionalFloat sets the "optional_float" field.
func (u *FieldTypeUpsert) SetOptionalFloat(v float64) *FieldTypeUpsert {
	u.Set(fieldtype.FieldOptionalFloat, v)
	return u
}

// UpdateOptionalFloat sets the "optional_float" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateOptionalFloat() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldOptionalFloat)
	return u
}

// AddOptionalFloat adds v to the "optional_float" field.
func (u *FieldTypeUpsert) AddOptionalFloat(v float64) *FieldTypeUpsert {
	u.Add(fieldtype.FieldOptionalFloat, v)
	return u
}

// ClearOptionalFloat clears the value of the "optional_float" field.
func (u *FieldTypeUpsert) ClearOptionalFloat() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldOptionalFloat)
	return u
}

// SetOptionalFloat32 sets the "optional_float32" field.
func (u *FieldTypeUpsert) SetOptionalFloat32(v float32) *FieldTypeUpsert {
	u.Set(fieldtype.FieldOptionalFloat32, v)
	return u
}

// UpdateOptionalFloat32 sets the "optional_float32" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateOptionalFloat32() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldOptionalFloat32)
	return u
}

// AddOptionalFloat32 adds v to the "optional_float32" field.
func (u *FieldTypeUpsert) AddOptionalFloat32(v float32) *FieldTypeUpsert {
	u.Add(fieldtype.FieldOptionalFloat32, v)
	return u
}

// ClearOptionalFloat32 clears the value of the "optional_float32" field.
func (u *FieldTypeUpsert) ClearOptionalFloat32() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldOptionalFloat32)
	return u
}

// SetDatetime sets the "datetime" field.
func (u *FieldTypeUpsert) SetDatetime(v time.Time) *FieldTypeUpsert {
	u.Set(fieldtype.FieldDatetime, v)
	return u
}

// UpdateDatetime sets the "datetime" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateDatetime() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldDatetime)
	return u
}

// ClearDatetime clears the value of the "datetime" field.
func (u *FieldTypeUpsert) ClearDatetime() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldDatetime)
	return u
}

// SetDecimal sets the "decimal" field.
func (u *FieldTypeUpsert) SetDecimal(v float64) *FieldTypeUpsert {
	u.Set(fieldtype.FieldDecimal, v)
	return u
}

// UpdateDecimal sets the "decimal" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateDecimal() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldDecimal)
	return u
}

// AddDecimal adds v to the "decimal" field.
func (u *FieldTypeUpsert) AddDecimal(v float64) *FieldTypeUpsert {
	u.Add(fieldtype.FieldDecimal, v)
	return u
}

// ClearDecimal clears the value of the "decimal" field.
func (u *FieldTypeUpsert) ClearDecimal() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldDecimal)
	return u
}

// SetLinkOther sets the "link_other" field.
func (u *FieldTypeUpsert) SetLinkOther(v *schema.Link) *FieldTypeUpsert {
	u.Set(fieldtype.FieldLinkOther, v)
	return u
}

// UpdateLinkOther sets the "link_other" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateLinkOther() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldLinkOther)
	return u
}

// ClearLinkOther clears the value of the "link_other" field.
func (u *FieldTypeUpsert) ClearLinkOther() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldLinkOther)
	return u
}

// SetMAC sets the "mac" field.
func (u *FieldTypeUpsert) SetMAC(v schema.MAC) *FieldTypeUpsert {
	u.Set(fieldtype.FieldMAC, v)
	return u
}

// UpdateMAC sets the "mac" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateMAC() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldMAC)
	return u
}

// ClearMAC clears the value of the "mac" field.
func (u *FieldTypeUpsert) ClearMAC() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldMAC)
	return u
}

// SetStringArray sets the "string_array" field.
func (u *FieldTypeUpsert) SetStringArray(v schema.Strings) *FieldTypeUpsert {
	u.Set(fieldtype.FieldStringArray, v)
	return u
}

// UpdateStringArray sets the "string_array" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateStringArray() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldStringArray)
	return u
}

// ClearStringArray clears the value of the "string_array" field.
func (u *FieldTypeUpsert) ClearStringArray() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldStringArray)
	return u
}

// SetPassword sets the "password" field.
func (u *FieldTypeUpsert) SetPassword(v string) *FieldTypeUpsert {
	u.Set(fieldtype.FieldPassword, v)
	return u
}

// UpdatePassword sets the "password" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdatePassword() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldPassword)
	return u
}

// ClearPassword clears the value of the "password" field.
func (u *FieldTypeUpsert) ClearPassword() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldPassword)
	return u
}

// SetStringScanner sets the "string_scanner" field.
func (u *FieldTypeUpsert) SetStringScanner(v schema.StringScanner) *FieldTypeUpsert {
	u.Set(fieldtype.FieldStringScanner, v)
	return u
}

// UpdateStringScanner sets the "string_scanner" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateStringScanner() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldStringScanner)
	return u
}

// ClearStringScanner clears the value of the "string_scanner" field.
func (u *FieldTypeUpsert) ClearStringScanner() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldStringScanner)
	return u
}

// SetDuration sets the "duration" field.
func (u *FieldTypeUpsert) SetDuration(v time.Duration) *FieldTypeUpsert {
	u.Set(fieldtype.FieldDuration, v)
	return u
}

// UpdateDuration sets the "duration" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateDuration() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldDuration)
	return u
}

// AddDuration adds v to the "duration" field.
func (u *FieldTypeUpsert) AddDuration(v time.Duration) *FieldTypeUpsert {
	u.Add(fieldtype.FieldDuration, v)
	return u
}

// ClearDuration clears the value of the "duration" field.
func (u *FieldTypeUpsert) ClearDuration() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldDuration)
	return u
}

// SetDir sets the "dir" field.
func (u *FieldTypeUpsert) SetDir(v http.Dir) *FieldTypeUpsert {
	u.Set(fieldtype.FieldDir, v)
	return u
}

// UpdateDir sets the "dir" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateDir() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldDir)
	return u
}

// SetNdir sets the "ndir" field.
func (u *FieldTypeUpsert) SetNdir(v http.Dir) *FieldTypeUpsert {
	u.Set(fieldtype.FieldNdir, v)
	return u
}

// UpdateNdir sets the "ndir" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateNdir() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldNdir)
	return u
}

// ClearNdir clears the value of the "ndir" field.
func (u *FieldTypeUpsert) ClearNdir() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldNdir)
	return u
}

// SetStr sets the "str" field.
func (u *FieldTypeUpsert) SetStr(v sql.NullString) *FieldTypeUpsert {
	u.Set(fieldtype.FieldStr, v)
	return u
}

// UpdateStr sets the "str" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateStr() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldStr)
	return u
}

// ClearStr clears the value of the "str" field.
func (u *FieldTypeUpsert) ClearStr() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldStr)
	return u
}

// SetNullStr sets the "null_str" field.
func (u *FieldTypeUpsert) SetNullStr(v *sql.NullString) *FieldTypeUpsert {
	u.Set(fieldtype.FieldNullStr, v)
	return u
}

// UpdateNullStr sets the "null_str" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateNullStr() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldNullStr)
	return u
}

// ClearNullStr clears the value of the "null_str" field.
func (u *FieldTypeUpsert) ClearNullStr() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldNullStr)
	return u
}

// SetLink sets the "link" field.
func (u *FieldTypeUpsert) SetLink(v schema.Link) *FieldTypeUpsert {
	u.Set(fieldtype.FieldLink, v)
	return u
}

// UpdateLink sets the "link" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateLink() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldLink)
	return u
}

// ClearLink clears the value of the "link" field.
func (u *FieldTypeUpsert) ClearLink() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldLink)
	return u
}

// SetNullLink sets the "null_link" field.
func (u *FieldTypeUpsert) SetNullLink(v *schema.Link) *FieldTypeUpsert {
	u.Set(fieldtype.FieldNullLink, v)
	return u
}

// UpdateNullLink sets the "null_link" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateNullLink() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldNullLink)
	return u
}

// ClearNullLink clears the value of the "null_link" field.
func (u *FieldTypeUpsert) ClearNullLink() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldNullLink)
	return u
}

// SetActive sets the "active" field.
func (u *FieldTypeUpsert) SetActive(v schema.Status) *FieldTypeUpsert {
	u.Set(fieldtype.FieldActive, v)
	return u
}

// UpdateActive sets the "active" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateActive() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldActive)
	return u
}

// ClearActive clears the value of the "active" field.
func (u *FieldTypeUpsert) ClearActive() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldActive)
	return u
}

// SetNullActive sets the "null_active" field.
func (u *FieldTypeUpsert) SetNullActive(v schema.Status) *FieldTypeUpsert {
	u.Set(fieldtype.FieldNullActive, v)
	return u
}

// UpdateNullActive sets the "null_active" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateNullActive() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldNullActive)
	return u
}

// ClearNullActive clears the value of the "null_active" field.
func (u *FieldTypeUpsert) ClearNullActive() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldNullActive)
	return u
}

// SetDeleted sets the "deleted" field.
func (u *FieldTypeUpsert) SetDeleted(v *sql.NullBool) *FieldTypeUpsert {
	u.Set(fieldtype.FieldDeleted, v)
	return u
}

// UpdateDeleted sets the "deleted" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateDeleted() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldDeleted)
	return u
}

// ClearDeleted clears the value of the "deleted" field.
func (u *FieldTypeUpsert) ClearDeleted() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldDeleted)
	return u
}

// SetDeletedAt sets the "deleted_at" field.
func (u *FieldTypeUpsert) SetDeletedAt(v *sql.NullTime) *FieldTypeUpsert {
	u.Set(fieldtype.FieldDeletedAt, v)
	return u
}

// UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateDeletedAt() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldDeletedAt)
	return u
}

// ClearDeletedAt clears the value of the "deleted_at" field.
func (u *FieldTypeUpsert) ClearDeletedAt() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldDeletedAt)
	return u
}

// SetRawData sets the "raw_data" field.
func (u *FieldTypeUpsert) SetRawData(v []byte) *FieldTypeUpsert {
	u.Set(fieldtype.FieldRawData, v)
	return u
}

// UpdateRawData sets the "raw_data" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateRawData() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldRawData)
	return u
}

// ClearRawData clears the value of the "raw_data" field.
func (u *FieldTypeUpsert) ClearRawData() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldRawData)
	return u
}

// SetSensitive sets the "sensitive" field.
func (u *FieldTypeUpsert) SetSensitive(v []byte) *FieldTypeUpsert {
	u.Set(fieldtype.FieldSensitive, v)
	return u
}

// UpdateSensitive sets the "sensitive" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateSensitive() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldSensitive)
	return u
}

// ClearSensitive clears the value of the "sensitive" field.
func (u *FieldTypeUpsert) ClearSensitive() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldSensitive)
	return u
}

// SetIP sets the "ip" field.
func (u *FieldTypeUpsert) SetIP(v net.IP) *FieldTypeUpsert {
	u.Set(fieldtype.FieldIP, v)
	return u
}

// UpdateIP sets the "ip" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateIP() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldIP)
	return u
}

// ClearIP clears the value of the "ip" field.
func (u *FieldTypeUpsert) ClearIP() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldIP)
	return u
}

// SetNullInt64 sets the "null_int64" field.
func (u *FieldTypeUpsert) SetNullInt64(v *sql.NullInt64) *FieldTypeUpsert {
	u.Set(fieldtype.FieldNullInt64, v)
	return u
}

// UpdateNullInt64 sets the "null_int64" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateNullInt64() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldNullInt64)
	return u
}

// ClearNullInt64 clears the value of the "null_int64" field.
func (u *FieldTypeUpsert) ClearNullInt64() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldNullInt64)
	return u
}

// SetSchemaInt sets the "schema_int" field.
func (u *FieldTypeUpsert) SetSchemaInt(v schema.Int) *FieldTypeUpsert {
	u.Set(fieldtype.FieldSchemaInt, v)
	return u
}

// UpdateSchemaInt sets the "schema_int" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateSchemaInt() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldSchemaInt)
	return u
}

// AddSchemaInt adds v to the "schema_int" field.
func (u *FieldTypeUpsert) AddSchemaInt(v schema.Int) *FieldTypeUpsert {
	u.Add(fieldtype.FieldSchemaInt, v)
	return u
}

// ClearSchemaInt clears the value of the "schema_int" field.
func (u *FieldTypeUpsert) ClearSchemaInt() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldSchemaInt)
	return u
}

// SetSchemaInt8 sets the "schema_int8" field.
func (u *FieldTypeUpsert) SetSchemaInt8(v schema.Int8) *FieldTypeUpsert {
	u.Set(fieldtype.FieldSchemaInt8, v)
	return u
}

// UpdateSchemaInt8 sets the "schema_int8" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateSchemaInt8() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldSchemaInt8)
	return u
}

// AddSchemaInt8 adds v to the "schema_int8" field.
func (u *FieldTypeUpsert) AddSchemaInt8(v schema.Int8) *FieldTypeUpsert {
	u.Add(fieldtype.FieldSchemaInt8, v)
	return u
}

// ClearSchemaInt8 clears the value of the "schema_int8" field.
func (u *FieldTypeUpsert) ClearSchemaInt8() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldSchemaInt8)
	return u
}

// SetSchemaInt64 sets the "schema_int64" field.
func (u *FieldTypeUpsert) SetSchemaInt64(v schema.Int64) *FieldTypeUpsert {
	u.Set(fieldtype.FieldSchemaInt64, v)
	return u
}

// UpdateSchemaInt64 sets the "schema_int64" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateSchemaInt64() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldSchemaInt64)
	return u
}

// AddSchemaInt64 adds v to the "schema_int64" field.
func (u *FieldTypeUpsert) AddSchemaInt64(v schema.Int64) *FieldTypeUpsert {
	u.Add(fieldtype.FieldSchemaInt64, v)
	return u
}

// ClearSchemaInt64 clears the value of the "schema_int64" field.
func (u *FieldTypeUpsert) ClearSchemaInt64() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldSchemaInt64)
	return u
}

// SetSchemaFloat sets the "schema_float" field.
func (u *FieldTypeUpsert) SetSchemaFloat(v schema.Float64) *FieldTypeUpsert {
	u.Set(fieldtype.FieldSchemaFloat, v)
	return u
}

// UpdateSchemaFloat sets the "schema_float" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateSchemaFloat() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldSchemaFloat)
	return u
}

// AddSchemaFloat adds v to the "schema_float" field.
func (u *FieldTypeUpsert) AddSchemaFloat(v schema.Float64) *FieldTypeUpsert {
	u.Add(fieldtype.FieldSchemaFloat, v)
	return u
}

// ClearSchemaFloat clears the value of the "schema_float" field.
func (u *FieldTypeUpsert) ClearSchemaFloat() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldSchemaFloat)
	return u
}

// SetSchemaFloat32 sets the "schema_float32" field.
func (u *FieldTypeUpsert) SetSchemaFloat32(v schema.Float32) *FieldTypeUpsert {
	u.Set(fieldtype.FieldSchemaFloat32, v)
	return u
}

// UpdateSchemaFloat32 sets the "schema_float32" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateSchemaFloat32() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldSchemaFloat32)
	return u
}

// AddSchemaFloat32 adds v to the "schema_float32" field.
func (u *FieldTypeUpsert) AddSchemaFloat32(v schema.Float32) *FieldTypeUpsert {
	u.Add(fieldtype.FieldSchemaFloat32, v)
	return u
}

// ClearSchemaFloat32 clears the value of the "schema_float32" field.
func (u *FieldTypeUpsert) ClearSchemaFloat32() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldSchemaFloat32)
	return u
}

// SetNullFloat sets the "null_float" field.
func (u *FieldTypeUpsert) SetNullFloat(v *sql.NullFloat64) *FieldTypeUpsert {
	u.Set(fieldtype.FieldNullFloat, v)
	return u
}

// UpdateNullFloat sets the "null_float" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateNullFloat() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldNullFloat)
	return u
}

// ClearNullFloat clears the value of the "null_float" field.
func (u *FieldTypeUpsert) ClearNullFloat() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldNullFloat)
	return u
}

// SetRole sets the "role" field.
func (u *FieldTypeUpsert) SetRole(v role.Role) *FieldTypeUpsert {
	u.Set(fieldtype.FieldRole, v)
	return u
}

// UpdateRole sets the "role" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateRole() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldRole)
	return u
}

// SetPriority sets the "priority" field.
func (u *FieldTypeUpsert) SetPriority(v role.Priority) *FieldTypeUpsert {
	u.Set(fieldtype.FieldPriority, v)
	return u
}

// UpdatePriority sets the "priority" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdatePriority() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldPriority)
	return u
}

// ClearPriority clears the value of the "priority" field.
func (u *FieldTypeUpsert) ClearPriority() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldPriority)
	return u
}

// SetUUID sets the "uuid" field.
func (u *FieldTypeUpsert) SetUUID(v uuid.UUID) *FieldTypeUpsert {
	u.Set(fieldtype.FieldUUID, v)
	return u
}

// UpdateUUID sets the "uuid" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateUUID() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldUUID)
	return u
}

// ClearUUID clears the value of the "uuid" field.
func (u *FieldTypeUpsert) ClearUUID() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldUUID)
	return u
}

// SetNillableUUID sets the "nillable_uuid" field.
func (u *FieldTypeUpsert) SetNillableUUID(v uuid.UUID) *FieldTypeUpsert {
	u.Set(fieldtype.FieldNillableUUID, v)
	return u
}

// UpdateNillableUUID sets the "nillable_uuid" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateNillableUUID() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldNillableUUID)
	return u
}

// ClearNillableUUID clears the value of the "nillable_uuid" field.
func (u *FieldTypeUpsert) ClearNillableUUID() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldNillableUUID)
	return u
}

// SetStrings sets the "strings" field.
func (u *FieldTypeUpsert) SetStrings(v []string) *FieldTypeUpsert {
	u.Set(fieldtype.FieldStrings, v)
	return u
}

// UpdateStrings sets the "strings" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateStrings() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldStrings)
	return u
}

// ClearStrings clears the value of the "strings" field.
func (u *FieldTypeUpsert) ClearStrings() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldStrings)
	return u
}

// SetPair sets the "pair" field.
func (u *FieldTypeUpsert) SetPair(v schema.Pair) *FieldTypeUpsert {
	u.Set(fieldtype.FieldPair, v)
	return u
}

// UpdatePair sets the "pair" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdatePair() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldPair)
	return u
}

// SetNilPair sets the "nil_pair" field.
func (u *FieldTypeUpsert) SetNilPair(v *schema.Pair) *FieldTypeUpsert {
	u.Set(fieldtype.FieldNilPair, v)
	return u
}

// UpdateNilPair sets the "nil_pair" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateNilPair() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldNilPair)
	return u
}

// ClearNilPair clears the value of the "nil_pair" field.
func (u *FieldTypeUpsert) ClearNilPair() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldNilPair)
	return u
}

// SetVstring sets the "vstring" field.
func (u *FieldTypeUpsert) SetVstring(v schema.VString) *FieldTypeUpsert {
	u.Set(fieldtype.FieldVstring, v)
	return u
}

// UpdateVstring sets the "vstring" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateVstring() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldVstring)
	return u
}

// SetTriple sets the "triple" field.
func (u *FieldTypeUpsert) SetTriple(v schema.Triple) *FieldTypeUpsert {
	u.Set(fieldtype.FieldTriple, v)
	return u
}

// UpdateTriple sets the "triple" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateTriple() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldTriple)
	return u
}

// SetBigInt sets the "big_int" field.
func (u *FieldTypeUpsert) SetBigInt(v schema.BigInt) *FieldTypeUpsert {
	u.Set(fieldtype.FieldBigInt, v)
	return u
}

// UpdateBigInt sets the "big_int" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdateBigInt() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldBigInt)
	return u
}

// AddBigInt adds v to the "big_int" field.
func (u *FieldTypeUpsert) AddBigInt(v schema.BigInt) *FieldTypeUpsert {
	u.Add(fieldtype.FieldBigInt, v)
	return u
}

// ClearBigInt clears the value of the "big_int" field.
func (u *FieldTypeUpsert) ClearBigInt() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldBigInt)
	return u
}

// SetPasswordOther sets the "password_other" field.
func (u *FieldTypeUpsert) SetPasswordOther(v schema.Password) *FieldTypeUpsert {
	u.Set(fieldtype.FieldPasswordOther, v)
	return u
}

// UpdatePasswordOther sets the "password_other" field to the value that was provided on create.
func (u *FieldTypeUpsert) UpdatePasswordOther() *FieldTypeUpsert {
	u.SetExcluded(fieldtype.FieldPasswordOther)
	return u
}

// ClearPasswordOther clears the value of the "password_other" field.
func (u *FieldTypeUpsert) ClearPasswordOther() *FieldTypeUpsert {
	u.SetNull(fieldtype.FieldPasswordOther)
	return u
}

// UpdateNewValues updates the mutable fields using the new values that were set on create.
// Using this option is equivalent to using:
//
//	client.FieldType.Create().
//		OnConflict(
//			sql.ResolveWithNewValues(),
//		).
//		Exec(ctx)
//
func (u *FieldTypeUpsertOne) UpdateNewValues() *FieldTypeUpsertOne {
	u.create.conflict = append(u.create.conflict, sql.ResolveWithNewValues())
	return u
}

// Ignore sets each column to itself in case of conflict.
// Using this option is equivalent to using:
//
//  client.FieldType.Create().
//      OnConflict(sql.ResolveWithIgnore()).
//      Exec(ctx)
//
func (u *FieldTypeUpsertOne) Ignore() *FieldTypeUpsertOne {
	u.create.conflict = append(u.create.conflict, sql.ResolveWithIgnore())
	return u
}

// DoNothing configures the conflict_action to `DO NOTHING`.
// Supported only by SQLite and PostgreSQL.
func (u *FieldTypeUpsertOne) DoNothing() *FieldTypeUpsertOne {
	u.create.conflict = append(u.create.conflict, sql.DoNothing())
	return u
}

// Update allows overriding fields `UPDATE` values. See the FieldTypeCreate.OnConflict
// documentation for more info.
func (u *FieldTypeUpsertOne) Update(set func(*FieldTypeUpsert)) *FieldTypeUpsertOne {
	u.create.conflict = append(u.create.conflict, sql.ResolveWith(func(update *sql.UpdateSet) {
		set(&FieldTypeUpsert{UpdateSet: update})
	}))
	return u
}

// SetInt sets the "int" field.
func (u *FieldTypeUpsertOne) SetInt(v int) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetInt(v)
	})
}

// AddInt adds v to the "int" field.
func (u *FieldTypeUpsertOne) AddInt(v int) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddInt(v)
	})
}

// UpdateInt sets the "int" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateInt() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateInt()
	})
}

// SetInt8 sets the "int8" field.
func (u *FieldTypeUpsertOne) SetInt8(v int8) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetInt8(v)
	})
}

// AddInt8 adds v to the "int8" field.
func (u *FieldTypeUpsertOne) AddInt8(v int8) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddInt8(v)
	})
}

// UpdateInt8 sets the "int8" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateInt8() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateInt8()
	})
}

// SetInt16 sets the "int16" field.
func (u *FieldTypeUpsertOne) SetInt16(v int16) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetInt16(v)
	})
}

// AddInt16 adds v to the "int16" field.
func (u *FieldTypeUpsertOne) AddInt16(v int16) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddInt16(v)
	})
}

// UpdateInt16 sets the "int16" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateInt16() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateInt16()
	})
}

// SetInt32 sets the "int32" field.
func (u *FieldTypeUpsertOne) SetInt32(v int32) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetInt32(v)
	})
}

// AddInt32 adds v to the "int32" field.
func (u *FieldTypeUpsertOne) AddInt32(v int32) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddInt32(v)
	})
}

// UpdateInt32 sets the "int32" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateInt32() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateInt32()
	})
}

// SetInt64 sets the "int64" field.
func (u *FieldTypeUpsertOne) SetInt64(v int64) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetInt64(v)
	})
}

// AddInt64 adds v to the "int64" field.
func (u *FieldTypeUpsertOne) AddInt64(v int64) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddInt64(v)
	})
}

// UpdateInt64 sets the "int64" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateInt64() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateInt64()
	})
}

// SetOptionalInt sets the "optional_int" field.
func (u *FieldTypeUpsertOne) SetOptionalInt(v int) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetOptionalInt(v)
	})
}

// AddOptionalInt adds v to the "optional_int" field.
func (u *FieldTypeUpsertOne) AddOptionalInt(v int) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddOptionalInt(v)
	})
}

// UpdateOptionalInt sets the "optional_int" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateOptionalInt() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateOptionalInt()
	})
}

// ClearOptionalInt clears the value of the "optional_int" field.
func (u *FieldTypeUpsertOne) ClearOptionalInt() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearOptionalInt()
	})
}

// SetOptionalInt8 sets the "optional_int8" field.
func (u *FieldTypeUpsertOne) SetOptionalInt8(v int8) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetOptionalInt8(v)
	})
}

// AddOptionalInt8 adds v to the "optional_int8" field.
func (u *FieldTypeUpsertOne) AddOptionalInt8(v int8) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddOptionalInt8(v)
	})
}

// UpdateOptionalInt8 sets the "optional_int8" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateOptionalInt8() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateOptionalInt8()
	})
}

// ClearOptionalInt8 clears the value of the "optional_int8" field.
func (u *FieldTypeUpsertOne) ClearOptionalInt8() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearOptionalInt8()
	})
}

// SetOptionalInt16 sets the "optional_int16" field.
func (u *FieldTypeUpsertOne) SetOptionalInt16(v int16) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetOptionalInt16(v)
	})
}

// AddOptionalInt16 adds v to the "optional_int16" field.
func (u *FieldTypeUpsertOne) AddOptionalInt16(v int16) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddOptionalInt16(v)
	})
}

// UpdateOptionalInt16 sets the "optional_int16" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateOptionalInt16() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateOptionalInt16()
	})
}

// ClearOptionalInt16 clears the value of the "optional_int16" field.
func (u *FieldTypeUpsertOne) ClearOptionalInt16() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearOptionalInt16()
	})
}

// SetOptionalInt32 sets the "optional_int32" field.
func (u *FieldTypeUpsertOne) SetOptionalInt32(v int32) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetOptionalInt32(v)
	})
}

// AddOptionalInt32 adds v to the "optional_int32" field.
func (u *FieldTypeUpsertOne) AddOptionalInt32(v int32) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddOptionalInt32(v)
	})
}

// UpdateOptionalInt32 sets the "optional_int32" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateOptionalInt32() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateOptionalInt32()
	})
}

// ClearOptionalInt32 clears the value of the "optional_int32" field.
func (u *FieldTypeUpsertOne) ClearOptionalInt32() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearOptionalInt32()
	})
}

// SetOptionalInt64 sets the "optional_int64" field.
func (u *FieldTypeUpsertOne) SetOptionalInt64(v int64) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetOptionalInt64(v)
	})
}

// AddOptionalInt64 adds v to the "optional_int64" field.
func (u *FieldTypeUpsertOne) AddOptionalInt64(v int64) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddOptionalInt64(v)
	})
}

// UpdateOptionalInt64 sets the "optional_int64" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateOptionalInt64() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateOptionalInt64()
	})
}

// ClearOptionalInt64 clears the value of the "optional_int64" field.
func (u *FieldTypeUpsertOne) ClearOptionalInt64() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearOptionalInt64()
	})
}

// SetNillableInt sets the "nillable_int" field.
func (u *FieldTypeUpsertOne) SetNillableInt(v int) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNillableInt(v)
	})
}

// AddNillableInt adds v to the "nillable_int" field.
func (u *FieldTypeUpsertOne) AddNillableInt(v int) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddNillableInt(v)
	})
}

// UpdateNillableInt sets the "nillable_int" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateNillableInt() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNillableInt()
	})
}

// ClearNillableInt clears the value of the "nillable_int" field.
func (u *FieldTypeUpsertOne) ClearNillableInt() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNillableInt()
	})
}

// SetNillableInt8 sets the "nillable_int8" field.
func (u *FieldTypeUpsertOne) SetNillableInt8(v int8) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNillableInt8(v)
	})
}

// AddNillableInt8 adds v to the "nillable_int8" field.
func (u *FieldTypeUpsertOne) AddNillableInt8(v int8) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddNillableInt8(v)
	})
}

// UpdateNillableInt8 sets the "nillable_int8" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateNillableInt8() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNillableInt8()
	})
}

// ClearNillableInt8 clears the value of the "nillable_int8" field.
func (u *FieldTypeUpsertOne) ClearNillableInt8() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNillableInt8()
	})
}

// SetNillableInt16 sets the "nillable_int16" field.
func (u *FieldTypeUpsertOne) SetNillableInt16(v int16) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNillableInt16(v)
	})
}

// AddNillableInt16 adds v to the "nillable_int16" field.
func (u *FieldTypeUpsertOne) AddNillableInt16(v int16) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddNillableInt16(v)
	})
}

// UpdateNillableInt16 sets the "nillable_int16" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateNillableInt16() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNillableInt16()
	})
}

// ClearNillableInt16 clears the value of the "nillable_int16" field.
func (u *FieldTypeUpsertOne) ClearNillableInt16() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNillableInt16()
	})
}

// SetNillableInt32 sets the "nillable_int32" field.
func (u *FieldTypeUpsertOne) SetNillableInt32(v int32) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNillableInt32(v)
	})
}

// AddNillableInt32 adds v to the "nillable_int32" field.
func (u *FieldTypeUpsertOne) AddNillableInt32(v int32) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddNillableInt32(v)
	})
}

// UpdateNillableInt32 sets the "nillable_int32" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateNillableInt32() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNillableInt32()
	})
}

// ClearNillableInt32 clears the value of the "nillable_int32" field.
func (u *FieldTypeUpsertOne) ClearNillableInt32() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNillableInt32()
	})
}

// SetNillableInt64 sets the "nillable_int64" field.
func (u *FieldTypeUpsertOne) SetNillableInt64(v int64) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNillableInt64(v)
	})
}

// AddNillableInt64 adds v to the "nillable_int64" field.
func (u *FieldTypeUpsertOne) AddNillableInt64(v int64) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddNillableInt64(v)
	})
}

// UpdateNillableInt64 sets the "nillable_int64" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateNillableInt64() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNillableInt64()
	})
}

// ClearNillableInt64 clears the value of the "nillable_int64" field.
func (u *FieldTypeUpsertOne) ClearNillableInt64() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNillableInt64()
	})
}

// SetValidateOptionalInt32 sets the "validate_optional_int32" field.
func (u *FieldTypeUpsertOne) SetValidateOptionalInt32(v int32) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetValidateOptionalInt32(v)
	})
}

// AddValidateOptionalInt32 adds v to the "validate_optional_int32" field.
func (u *FieldTypeUpsertOne) AddValidateOptionalInt32(v int32) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddValidateOptionalInt32(v)
	})
}

// UpdateValidateOptionalInt32 sets the "validate_optional_int32" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateValidateOptionalInt32() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateValidateOptionalInt32()
	})
}

// ClearValidateOptionalInt32 clears the value of the "validate_optional_int32" field.
func (u *FieldTypeUpsertOne) ClearValidateOptionalInt32() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearValidateOptionalInt32()
	})
}

// SetOptionalUint sets the "optional_uint" field.
func (u *FieldTypeUpsertOne) SetOptionalUint(v uint) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetOptionalUint(v)
	})
}

// AddOptionalUint adds v to the "optional_uint" field.
func (u *FieldTypeUpsertOne) AddOptionalUint(v uint) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddOptionalUint(v)
	})
}

// UpdateOptionalUint sets the "optional_uint" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateOptionalUint() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateOptionalUint()
	})
}

// ClearOptionalUint clears the value of the "optional_uint" field.
func (u *FieldTypeUpsertOne) ClearOptionalUint() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearOptionalUint()
	})
}

// SetOptionalUint8 sets the "optional_uint8" field.
func (u *FieldTypeUpsertOne) SetOptionalUint8(v uint8) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetOptionalUint8(v)
	})
}

// AddOptionalUint8 adds v to the "optional_uint8" field.
func (u *FieldTypeUpsertOne) AddOptionalUint8(v uint8) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddOptionalUint8(v)
	})
}

// UpdateOptionalUint8 sets the "optional_uint8" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateOptionalUint8() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateOptionalUint8()
	})
}

// ClearOptionalUint8 clears the value of the "optional_uint8" field.
func (u *FieldTypeUpsertOne) ClearOptionalUint8() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearOptionalUint8()
	})
}

// SetOptionalUint16 sets the "optional_uint16" field.
func (u *FieldTypeUpsertOne) SetOptionalUint16(v uint16) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetOptionalUint16(v)
	})
}

// AddOptionalUint16 adds v to the "optional_uint16" field.
func (u *FieldTypeUpsertOne) AddOptionalUint16(v uint16) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddOptionalUint16(v)
	})
}

// UpdateOptionalUint16 sets the "optional_uint16" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateOptionalUint16() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateOptionalUint16()
	})
}

// ClearOptionalUint16 clears the value of the "optional_uint16" field.
func (u *FieldTypeUpsertOne) ClearOptionalUint16() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearOptionalUint16()
	})
}

// SetOptionalUint32 sets the "optional_uint32" field.
func (u *FieldTypeUpsertOne) SetOptionalUint32(v uint32) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetOptionalUint32(v)
	})
}

// AddOptionalUint32 adds v to the "optional_uint32" field.
func (u *FieldTypeUpsertOne) AddOptionalUint32(v uint32) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddOptionalUint32(v)
	})
}

// UpdateOptionalUint32 sets the "optional_uint32" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateOptionalUint32() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateOptionalUint32()
	})
}

// ClearOptionalUint32 clears the value of the "optional_uint32" field.
func (u *FieldTypeUpsertOne) ClearOptionalUint32() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearOptionalUint32()
	})
}

// SetOptionalUint64 sets the "optional_uint64" field.
func (u *FieldTypeUpsertOne) SetOptionalUint64(v uint64) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetOptionalUint64(v)
	})
}

// AddOptionalUint64 adds v to the "optional_uint64" field.
func (u *FieldTypeUpsertOne) AddOptionalUint64(v uint64) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddOptionalUint64(v)
	})
}

// UpdateOptionalUint64 sets the "optional_uint64" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateOptionalUint64() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateOptionalUint64()
	})
}

// ClearOptionalUint64 clears the value of the "optional_uint64" field.
func (u *FieldTypeUpsertOne) ClearOptionalUint64() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearOptionalUint64()
	})
}

// SetState sets the "state" field.
func (u *FieldTypeUpsertOne) SetState(v fieldtype.State) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetState(v)
	})
}

// UpdateState sets the "state" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateState() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateState()
	})
}

// ClearState clears the value of the "state" field.
func (u *FieldTypeUpsertOne) ClearState() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearState()
	})
}

// SetOptionalFloat sets the "optional_float" field.
func (u *FieldTypeUpsertOne) SetOptionalFloat(v float64) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetOptionalFloat(v)
	})
}

// AddOptionalFloat adds v to the "optional_float" field.
func (u *FieldTypeUpsertOne) AddOptionalFloat(v float64) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddOptionalFloat(v)
	})
}

// UpdateOptionalFloat sets the "optional_float" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateOptionalFloat() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateOptionalFloat()
	})
}

// ClearOptionalFloat clears the value of the "optional_float" field.
func (u *FieldTypeUpsertOne) ClearOptionalFloat() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearOptionalFloat()
	})
}

// SetOptionalFloat32 sets the "optional_float32" field.
func (u *FieldTypeUpsertOne) SetOptionalFloat32(v float32) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetOptionalFloat32(v)
	})
}

// AddOptionalFloat32 adds v to the "optional_float32" field.
func (u *FieldTypeUpsertOne) AddOptionalFloat32(v float32) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddOptionalFloat32(v)
	})
}

// UpdateOptionalFloat32 sets the "optional_float32" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateOptionalFloat32() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateOptionalFloat32()
	})
}

// ClearOptionalFloat32 clears the value of the "optional_float32" field.
func (u *FieldTypeUpsertOne) ClearOptionalFloat32() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearOptionalFloat32()
	})
}

// SetDatetime sets the "datetime" field.
func (u *FieldTypeUpsertOne) SetDatetime(v time.Time) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetDatetime(v)
	})
}

// UpdateDatetime sets the "datetime" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateDatetime() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateDatetime()
	})
}

// ClearDatetime clears the value of the "datetime" field.
func (u *FieldTypeUpsertOne) ClearDatetime() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearDatetime()
	})
}

// SetDecimal sets the "decimal" field.
func (u *FieldTypeUpsertOne) SetDecimal(v float64) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetDecimal(v)
	})
}

// AddDecimal adds v to the "decimal" field.
func (u *FieldTypeUpsertOne) AddDecimal(v float64) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddDecimal(v)
	})
}

// UpdateDecimal sets the "decimal" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateDecimal() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateDecimal()
	})
}

// ClearDecimal clears the value of the "decimal" field.
func (u *FieldTypeUpsertOne) ClearDecimal() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearDecimal()
	})
}

// SetLinkOther sets the "link_other" field.
func (u *FieldTypeUpsertOne) SetLinkOther(v *schema.Link) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetLinkOther(v)
	})
}

// UpdateLinkOther sets the "link_other" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateLinkOther() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateLinkOther()
	})
}

// ClearLinkOther clears the value of the "link_other" field.
func (u *FieldTypeUpsertOne) ClearLinkOther() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearLinkOther()
	})
}

// SetMAC sets the "mac" field.
func (u *FieldTypeUpsertOne) SetMAC(v schema.MAC) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetMAC(v)
	})
}

// UpdateMAC sets the "mac" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateMAC() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateMAC()
	})
}

// ClearMAC clears the value of the "mac" field.
func (u *FieldTypeUpsertOne) ClearMAC() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearMAC()
	})
}

// SetStringArray sets the "string_array" field.
func (u *FieldTypeUpsertOne) SetStringArray(v schema.Strings) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetStringArray(v)
	})
}

// UpdateStringArray sets the "string_array" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateStringArray() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateStringArray()
	})
}

// ClearStringArray clears the value of the "string_array" field.
func (u *FieldTypeUpsertOne) ClearStringArray() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearStringArray()
	})
}

// SetPassword sets the "password" field.
func (u *FieldTypeUpsertOne) SetPassword(v string) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetPassword(v)
	})
}

// UpdatePassword sets the "password" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdatePassword() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdatePassword()
	})
}

// ClearPassword clears the value of the "password" field.
func (u *FieldTypeUpsertOne) ClearPassword() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearPassword()
	})
}

// SetStringScanner sets the "string_scanner" field.
func (u *FieldTypeUpsertOne) SetStringScanner(v schema.StringScanner) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetStringScanner(v)
	})
}

// UpdateStringScanner sets the "string_scanner" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateStringScanner() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateStringScanner()
	})
}

// ClearStringScanner clears the value of the "string_scanner" field.
func (u *FieldTypeUpsertOne) ClearStringScanner() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearStringScanner()
	})
}

// SetDuration sets the "duration" field.
func (u *FieldTypeUpsertOne) SetDuration(v time.Duration) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetDuration(v)
	})
}

// AddDuration adds v to the "duration" field.
func (u *FieldTypeUpsertOne) AddDuration(v time.Duration) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddDuration(v)
	})
}

// UpdateDuration sets the "duration" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateDuration() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateDuration()
	})
}

// ClearDuration clears the value of the "duration" field.
func (u *FieldTypeUpsertOne) ClearDuration() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearDuration()
	})
}

// SetDir sets the "dir" field.
func (u *FieldTypeUpsertOne) SetDir(v http.Dir) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetDir(v)
	})
}

// UpdateDir sets the "dir" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateDir() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateDir()
	})
}

// SetNdir sets the "ndir" field.
func (u *FieldTypeUpsertOne) SetNdir(v http.Dir) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNdir(v)
	})
}

// UpdateNdir sets the "ndir" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateNdir() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNdir()
	})
}

// ClearNdir clears the value of the "ndir" field.
func (u *FieldTypeUpsertOne) ClearNdir() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNdir()
	})
}

// SetStr sets the "str" field.
func (u *FieldTypeUpsertOne) SetStr(v sql.NullString) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetStr(v)
	})
}

// UpdateStr sets the "str" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateStr() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateStr()
	})
}

// ClearStr clears the value of the "str" field.
func (u *FieldTypeUpsertOne) ClearStr() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearStr()
	})
}

// SetNullStr sets the "null_str" field.
func (u *FieldTypeUpsertOne) SetNullStr(v *sql.NullString) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNullStr(v)
	})
}

// UpdateNullStr sets the "null_str" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateNullStr() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNullStr()
	})
}

// ClearNullStr clears the value of the "null_str" field.
func (u *FieldTypeUpsertOne) ClearNullStr() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNullStr()
	})
}

// SetLink sets the "link" field.
func (u *FieldTypeUpsertOne) SetLink(v schema.Link) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetLink(v)
	})
}

// UpdateLink sets the "link" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateLink() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateLink()
	})
}

// ClearLink clears the value of the "link" field.
func (u *FieldTypeUpsertOne) ClearLink() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearLink()
	})
}

// SetNullLink sets the "null_link" field.
func (u *FieldTypeUpsertOne) SetNullLink(v *schema.Link) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNullLink(v)
	})
}

// UpdateNullLink sets the "null_link" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateNullLink() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNullLink()
	})
}

// ClearNullLink clears the value of the "null_link" field.
func (u *FieldTypeUpsertOne) ClearNullLink() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNullLink()
	})
}

// SetActive sets the "active" field.
func (u *FieldTypeUpsertOne) SetActive(v schema.Status) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetActive(v)
	})
}

// UpdateActive sets the "active" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateActive() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateActive()
	})
}

// ClearActive clears the value of the "active" field.
func (u *FieldTypeUpsertOne) ClearActive() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearActive()
	})
}

// SetNullActive sets the "null_active" field.
func (u *FieldTypeUpsertOne) SetNullActive(v schema.Status) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNullActive(v)
	})
}

// UpdateNullActive sets the "null_active" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateNullActive() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNullActive()
	})
}

// ClearNullActive clears the value of the "null_active" field.
func (u *FieldTypeUpsertOne) ClearNullActive() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNullActive()
	})
}

// SetDeleted sets the "deleted" field.
func (u *FieldTypeUpsertOne) SetDeleted(v *sql.NullBool) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetDeleted(v)
	})
}

// UpdateDeleted sets the "deleted" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateDeleted() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateDeleted()
	})
}

// ClearDeleted clears the value of the "deleted" field.
func (u *FieldTypeUpsertOne) ClearDeleted() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearDeleted()
	})
}

// SetDeletedAt sets the "deleted_at" field.
func (u *FieldTypeUpsertOne) SetDeletedAt(v *sql.NullTime) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetDeletedAt(v)
	})
}

// UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateDeletedAt() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateDeletedAt()
	})
}

// ClearDeletedAt clears the value of the "deleted_at" field.
func (u *FieldTypeUpsertOne) ClearDeletedAt() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearDeletedAt()
	})
}

// SetRawData sets the "raw_data" field.
func (u *FieldTypeUpsertOne) SetRawData(v []byte) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetRawData(v)
	})
}

// UpdateRawData sets the "raw_data" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateRawData() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateRawData()
	})
}

// ClearRawData clears the value of the "raw_data" field.
func (u *FieldTypeUpsertOne) ClearRawData() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearRawData()
	})
}

// SetSensitive sets the "sensitive" field.
func (u *FieldTypeUpsertOne) SetSensitive(v []byte) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetSensitive(v)
	})
}

// UpdateSensitive sets the "sensitive" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateSensitive() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateSensitive()
	})
}

// ClearSensitive clears the value of the "sensitive" field.
func (u *FieldTypeUpsertOne) ClearSensitive() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearSensitive()
	})
}

// SetIP sets the "ip" field.
func (u *FieldTypeUpsertOne) SetIP(v net.IP) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetIP(v)
	})
}

// UpdateIP sets the "ip" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateIP() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateIP()
	})
}

// ClearIP clears the value of the "ip" field.
func (u *FieldTypeUpsertOne) ClearIP() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearIP()
	})
}

// SetNullInt64 sets the "null_int64" field.
func (u *FieldTypeUpsertOne) SetNullInt64(v *sql.NullInt64) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNullInt64(v)
	})
}

// UpdateNullInt64 sets the "null_int64" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateNullInt64() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNullInt64()
	})
}

// ClearNullInt64 clears the value of the "null_int64" field.
func (u *FieldTypeUpsertOne) ClearNullInt64() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNullInt64()
	})
}

// SetSchemaInt sets the "schema_int" field.
func (u *FieldTypeUpsertOne) SetSchemaInt(v schema.Int) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetSchemaInt(v)
	})
}

// AddSchemaInt adds v to the "schema_int" field.
func (u *FieldTypeUpsertOne) AddSchemaInt(v schema.Int) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddSchemaInt(v)
	})
}

// UpdateSchemaInt sets the "schema_int" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateSchemaInt() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateSchemaInt()
	})
}

// ClearSchemaInt clears the value of the "schema_int" field.
func (u *FieldTypeUpsertOne) ClearSchemaInt() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearSchemaInt()
	})
}

// SetSchemaInt8 sets the "schema_int8" field.
func (u *FieldTypeUpsertOne) SetSchemaInt8(v schema.Int8) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetSchemaInt8(v)
	})
}

// AddSchemaInt8 adds v to the "schema_int8" field.
func (u *FieldTypeUpsertOne) AddSchemaInt8(v schema.Int8) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddSchemaInt8(v)
	})
}

// UpdateSchemaInt8 sets the "schema_int8" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateSchemaInt8() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateSchemaInt8()
	})
}

// ClearSchemaInt8 clears the value of the "schema_int8" field.
func (u *FieldTypeUpsertOne) ClearSchemaInt8() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearSchemaInt8()
	})
}

// SetSchemaInt64 sets the "schema_int64" field.
func (u *FieldTypeUpsertOne) SetSchemaInt64(v schema.Int64) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetSchemaInt64(v)
	})
}

// AddSchemaInt64 adds v to the "schema_int64" field.
func (u *FieldTypeUpsertOne) AddSchemaInt64(v schema.Int64) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddSchemaInt64(v)
	})
}

// UpdateSchemaInt64 sets the "schema_int64" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateSchemaInt64() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateSchemaInt64()
	})
}

// ClearSchemaInt64 clears the value of the "schema_int64" field.
func (u *FieldTypeUpsertOne) ClearSchemaInt64() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearSchemaInt64()
	})
}

// SetSchemaFloat sets the "schema_float" field.
func (u *FieldTypeUpsertOne) SetSchemaFloat(v schema.Float64) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetSchemaFloat(v)
	})
}

// AddSchemaFloat adds v to the "schema_float" field.
func (u *FieldTypeUpsertOne) AddSchemaFloat(v schema.Float64) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddSchemaFloat(v)
	})
}

// UpdateSchemaFloat sets the "schema_float" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateSchemaFloat() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateSchemaFloat()
	})
}

// ClearSchemaFloat clears the value of the "schema_float" field.
func (u *FieldTypeUpsertOne) ClearSchemaFloat() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearSchemaFloat()
	})
}

// SetSchemaFloat32 sets the "schema_float32" field.
func (u *FieldTypeUpsertOne) SetSchemaFloat32(v schema.Float32) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetSchemaFloat32(v)
	})
}

// AddSchemaFloat32 adds v to the "schema_float32" field.
func (u *FieldTypeUpsertOne) AddSchemaFloat32(v schema.Float32) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddSchemaFloat32(v)
	})
}

// UpdateSchemaFloat32 sets the "schema_float32" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateSchemaFloat32() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateSchemaFloat32()
	})
}

// ClearSchemaFloat32 clears the value of the "schema_float32" field.
func (u *FieldTypeUpsertOne) ClearSchemaFloat32() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearSchemaFloat32()
	})
}

// SetNullFloat sets the "null_float" field.
func (u *FieldTypeUpsertOne) SetNullFloat(v *sql.NullFloat64) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNullFloat(v)
	})
}

// UpdateNullFloat sets the "null_float" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateNullFloat() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNullFloat()
	})
}

// ClearNullFloat clears the value of the "null_float" field.
func (u *FieldTypeUpsertOne) ClearNullFloat() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNullFloat()
	})
}

// SetRole sets the "role" field.
func (u *FieldTypeUpsertOne) SetRole(v role.Role) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetRole(v)
	})
}

// UpdateRole sets the "role" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateRole() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateRole()
	})
}

// SetPriority sets the "priority" field.
func (u *FieldTypeUpsertOne) SetPriority(v role.Priority) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetPriority(v)
	})
}

// UpdatePriority sets the "priority" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdatePriority() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdatePriority()
	})
}

// ClearPriority clears the value of the "priority" field.
func (u *FieldTypeUpsertOne) ClearPriority() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearPriority()
	})
}

// SetUUID sets the "uuid" field.
func (u *FieldTypeUpsertOne) SetUUID(v uuid.UUID) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetUUID(v)
	})
}

// UpdateUUID sets the "uuid" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateUUID() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateUUID()
	})
}

// ClearUUID clears the value of the "uuid" field.
func (u *FieldTypeUpsertOne) ClearUUID() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearUUID()
	})
}

// SetNillableUUID sets the "nillable_uuid" field.
func (u *FieldTypeUpsertOne) SetNillableUUID(v uuid.UUID) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNillableUUID(v)
	})
}

// UpdateNillableUUID sets the "nillable_uuid" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateNillableUUID() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNillableUUID()
	})
}

// ClearNillableUUID clears the value of the "nillable_uuid" field.
func (u *FieldTypeUpsertOne) ClearNillableUUID() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNillableUUID()
	})
}

// SetStrings sets the "strings" field.
func (u *FieldTypeUpsertOne) SetStrings(v []string) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetStrings(v)
	})
}

// UpdateStrings sets the "strings" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateStrings() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateStrings()
	})
}

// ClearStrings clears the value of the "strings" field.
func (u *FieldTypeUpsertOne) ClearStrings() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearStrings()
	})
}

// SetPair sets the "pair" field.
func (u *FieldTypeUpsertOne) SetPair(v schema.Pair) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetPair(v)
	})
}

// UpdatePair sets the "pair" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdatePair() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdatePair()
	})
}

// SetNilPair sets the "nil_pair" field.
func (u *FieldTypeUpsertOne) SetNilPair(v *schema.Pair) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNilPair(v)
	})
}

// UpdateNilPair sets the "nil_pair" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateNilPair() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNilPair()
	})
}

// ClearNilPair clears the value of the "nil_pair" field.
func (u *FieldTypeUpsertOne) ClearNilPair() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNilPair()
	})
}

// SetVstring sets the "vstring" field.
func (u *FieldTypeUpsertOne) SetVstring(v schema.VString) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetVstring(v)
	})
}

// UpdateVstring sets the "vstring" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateVstring() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateVstring()
	})
}

// SetTriple sets the "triple" field.
func (u *FieldTypeUpsertOne) SetTriple(v schema.Triple) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetTriple(v)
	})
}

// UpdateTriple sets the "triple" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateTriple() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateTriple()
	})
}

// SetBigInt sets the "big_int" field.
func (u *FieldTypeUpsertOne) SetBigInt(v schema.BigInt) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetBigInt(v)
	})
}

// AddBigInt adds v to the "big_int" field.
func (u *FieldTypeUpsertOne) AddBigInt(v schema.BigInt) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddBigInt(v)
	})
}

// UpdateBigInt sets the "big_int" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdateBigInt() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateBigInt()
	})
}

// ClearBigInt clears the value of the "big_int" field.
func (u *FieldTypeUpsertOne) ClearBigInt() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearBigInt()
	})
}

// SetPasswordOther sets the "password_other" field.
func (u *FieldTypeUpsertOne) SetPasswordOther(v schema.Password) *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetPasswordOther(v)
	})
}

// UpdatePasswordOther sets the "password_other" field to the value that was provided on create.
func (u *FieldTypeUpsertOne) UpdatePasswordOther() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdatePasswordOther()
	})
}

// ClearPasswordOther clears the value of the "password_other" field.
func (u *FieldTypeUpsertOne) ClearPasswordOther() *FieldTypeUpsertOne {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearPasswordOther()
	})
}

// Exec executes the query.
func (u *FieldTypeUpsertOne) Exec(ctx context.Context) error {
	if len(u.create.conflict) == 0 {
		return errors.New("ent: missing options for FieldTypeCreate.OnConflict")
	}
	return u.create.Exec(ctx)
}

// ExecX is like Exec, but panics if an error occurs.
func (u *FieldTypeUpsertOne) ExecX(ctx context.Context) {
	if err := u.create.Exec(ctx); err != nil {
		panic(err)
	}
}

// Exec executes the UPSERT query and returns the inserted/updated ID.
func (u *FieldTypeUpsertOne) ID(ctx context.Context) (id int, err error) {
	node, err := u.create.Save(ctx)
	if err != nil {
		return id, err
	}
	return node.ID, nil
}

// IDX is like ID, but panics if an error occurs.
func (u *FieldTypeUpsertOne) IDX(ctx context.Context) int {
	id, err := u.ID(ctx)
	if err != nil {
		panic(err)
	}
	return id
}

// FieldTypeCreateBulk is the builder for creating many FieldType entities in bulk.
type FieldTypeCreateBulk struct {
	config
	builders []*FieldTypeCreate
	conflict []sql.ConflictOption
}

// Save creates the FieldType entities in the database.
func (ftcb *FieldTypeCreateBulk) Save(ctx context.Context) ([]*FieldType, error) {
	specs := make([]*sqlgraph.CreateSpec, len(ftcb.builders))
	nodes := make([]*FieldType, len(ftcb.builders))
	mutators := make([]Mutator, len(ftcb.builders))
	for i := range ftcb.builders {
		func(i int, root context.Context) {
			builder := ftcb.builders[i]
			builder.defaults()
			var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) {
				mutation, ok := m.(*FieldTypeMutation)
				if !ok {
					return nil, fmt.Errorf("unexpected mutation type %T", m)
				}
				if err := builder.check(); err != nil {
					return nil, err
				}
				builder.mutation = mutation
				nodes[i], specs[i] = builder.createSpec()
				var err error
				if i < len(mutators)-1 {
					_, err = mutators[i+1].Mutate(root, ftcb.builders[i+1].mutation)
				} else {
					spec := &sqlgraph.BatchCreateSpec{Nodes: specs}
					spec.OnConflict = ftcb.conflict
					// Invoke the actual operation on the latest mutation in the chain.
					if err = sqlgraph.BatchCreate(ctx, ftcb.driver, spec); err != nil {
						if sqlgraph.IsConstraintError(err) {
							err = &ConstraintError{err.Error(), err}
						}
					}
				}
				if err != nil {
					return nil, err
				}
				mutation.id = &nodes[i].ID
				mutation.done = true
				if specs[i].ID.Value != nil {
					id := specs[i].ID.Value.(int64)
					nodes[i].ID = int(id)
				}
				return nodes[i], nil
			})
			for i := len(builder.hooks) - 1; i >= 0; i-- {
				mut = builder.hooks[i](mut)
			}
			mutators[i] = mut
		}(i, ctx)
	}
	if len(mutators) > 0 {
		if _, err := mutators[0].Mutate(ctx, ftcb.builders[0].mutation); err != nil {
			return nil, err
		}
	}
	return nodes, nil
}

// SaveX is like Save, but panics if an error occurs.
func (ftcb *FieldTypeCreateBulk) SaveX(ctx context.Context) []*FieldType {
	v, err := ftcb.Save(ctx)
	if err != nil {
		panic(err)
	}
	return v
}

// Exec executes the query.
func (ftcb *FieldTypeCreateBulk) Exec(ctx context.Context) error {
	_, err := ftcb.Save(ctx)
	return err
}

// ExecX is like Exec, but panics if an error occurs.
func (ftcb *FieldTypeCreateBulk) ExecX(ctx context.Context) {
	if err := ftcb.Exec(ctx); err != nil {
		panic(err)
	}
}

// OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause
// of the `INSERT` statement. For example:
//
//	client.FieldType.CreateBulk(builders...).
//		OnConflict(
//			// Update the row with the new values
//			// the was proposed for insertion.
//			sql.ResolveWithNewValues(),
//		).
//		// Override some of the fields with custom
//		// update values.
//		Update(func(u *ent.FieldTypeUpsert) {
//			SetInt(v+v).
//		}).
//		Exec(ctx)
//
func (ftcb *FieldTypeCreateBulk) OnConflict(opts ...sql.ConflictOption) *FieldTypeUpsertBulk {
	ftcb.conflict = opts
	return &FieldTypeUpsertBulk{
		create: ftcb,
	}
}

// OnConflictColumns calls `OnConflict` and configures the columns
// as conflict target. Using this option is equivalent to using:
//
//	client.FieldType.Create().
//		OnConflict(sql.ConflictColumns(columns...)).
//		Exec(ctx)
//
func (ftcb *FieldTypeCreateBulk) OnConflictColumns(columns ...string) *FieldTypeUpsertBulk {
	ftcb.conflict = append(ftcb.conflict, sql.ConflictColumns(columns...))
	return &FieldTypeUpsertBulk{
		create: ftcb,
	}
}

// FieldTypeUpsertBulk is the builder for "upsert"-ing
// a bulk of FieldType nodes.
type FieldTypeUpsertBulk struct {
	create *FieldTypeCreateBulk
}

// UpdateNewValues updates the mutable fields using the new values that
// were set on create. Using this option is equivalent to using:
//
//	client.FieldType.Create().
//		OnConflict(
//			sql.ResolveWithNewValues(),
//		).
//		Exec(ctx)
//
func (u *FieldTypeUpsertBulk) UpdateNewValues() *FieldTypeUpsertBulk {
	u.create.conflict = append(u.create.conflict, sql.ResolveWithNewValues())
	return u
}

// Ignore sets each column to itself in case of conflict.
// Using this option is equivalent to using:
//
//	client.FieldType.Create().
//		OnConflict(sql.ResolveWithIgnore()).
//		Exec(ctx)
//
func (u *FieldTypeUpsertBulk) Ignore() *FieldTypeUpsertBulk {
	u.create.conflict = append(u.create.conflict, sql.ResolveWithIgnore())
	return u
}

// DoNothing configures the conflict_action to `DO NOTHING`.
// Supported only by SQLite and PostgreSQL.
func (u *FieldTypeUpsertBulk) DoNothing() *FieldTypeUpsertBulk {
	u.create.conflict = append(u.create.conflict, sql.DoNothing())
	return u
}

// Update allows overriding fields `UPDATE` values. See the FieldTypeCreateBulk.OnConflict
// documentation for more info.
func (u *FieldTypeUpsertBulk) Update(set func(*FieldTypeUpsert)) *FieldTypeUpsertBulk {
	u.create.conflict = append(u.create.conflict, sql.ResolveWith(func(update *sql.UpdateSet) {
		set(&FieldTypeUpsert{UpdateSet: update})
	}))
	return u
}

// SetInt sets the "int" field.
func (u *FieldTypeUpsertBulk) SetInt(v int) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetInt(v)
	})
}

// AddInt adds v to the "int" field.
func (u *FieldTypeUpsertBulk) AddInt(v int) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddInt(v)
	})
}

// UpdateInt sets the "int" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateInt() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateInt()
	})
}

// SetInt8 sets the "int8" field.
func (u *FieldTypeUpsertBulk) SetInt8(v int8) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetInt8(v)
	})
}

// AddInt8 adds v to the "int8" field.
func (u *FieldTypeUpsertBulk) AddInt8(v int8) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddInt8(v)
	})
}

// UpdateInt8 sets the "int8" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateInt8() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateInt8()
	})
}

// SetInt16 sets the "int16" field.
func (u *FieldTypeUpsertBulk) SetInt16(v int16) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetInt16(v)
	})
}

// AddInt16 adds v to the "int16" field.
func (u *FieldTypeUpsertBulk) AddInt16(v int16) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddInt16(v)
	})
}

// UpdateInt16 sets the "int16" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateInt16() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateInt16()
	})
}

// SetInt32 sets the "int32" field.
func (u *FieldTypeUpsertBulk) SetInt32(v int32) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetInt32(v)
	})
}

// AddInt32 adds v to the "int32" field.
func (u *FieldTypeUpsertBulk) AddInt32(v int32) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddInt32(v)
	})
}

// UpdateInt32 sets the "int32" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateInt32() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateInt32()
	})
}

// SetInt64 sets the "int64" field.
func (u *FieldTypeUpsertBulk) SetInt64(v int64) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetInt64(v)
	})
}

// AddInt64 adds v to the "int64" field.
func (u *FieldTypeUpsertBulk) AddInt64(v int64) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddInt64(v)
	})
}

// UpdateInt64 sets the "int64" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateInt64() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateInt64()
	})
}

// SetOptionalInt sets the "optional_int" field.
func (u *FieldTypeUpsertBulk) SetOptionalInt(v int) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetOptionalInt(v)
	})
}

// AddOptionalInt adds v to the "optional_int" field.
func (u *FieldTypeUpsertBulk) AddOptionalInt(v int) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddOptionalInt(v)
	})
}

// UpdateOptionalInt sets the "optional_int" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateOptionalInt() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateOptionalInt()
	})
}

// ClearOptionalInt clears the value of the "optional_int" field.
func (u *FieldTypeUpsertBulk) ClearOptionalInt() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearOptionalInt()
	})
}

// SetOptionalInt8 sets the "optional_int8" field.
func (u *FieldTypeUpsertBulk) SetOptionalInt8(v int8) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetOptionalInt8(v)
	})
}

// AddOptionalInt8 adds v to the "optional_int8" field.
func (u *FieldTypeUpsertBulk) AddOptionalInt8(v int8) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddOptionalInt8(v)
	})
}

// UpdateOptionalInt8 sets the "optional_int8" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateOptionalInt8() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateOptionalInt8()
	})
}

// ClearOptionalInt8 clears the value of the "optional_int8" field.
func (u *FieldTypeUpsertBulk) ClearOptionalInt8() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearOptionalInt8()
	})
}

// SetOptionalInt16 sets the "optional_int16" field.
func (u *FieldTypeUpsertBulk) SetOptionalInt16(v int16) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetOptionalInt16(v)
	})
}

// AddOptionalInt16 adds v to the "optional_int16" field.
func (u *FieldTypeUpsertBulk) AddOptionalInt16(v int16) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddOptionalInt16(v)
	})
}

// UpdateOptionalInt16 sets the "optional_int16" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateOptionalInt16() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateOptionalInt16()
	})
}

// ClearOptionalInt16 clears the value of the "optional_int16" field.
func (u *FieldTypeUpsertBulk) ClearOptionalInt16() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearOptionalInt16()
	})
}

// SetOptionalInt32 sets the "optional_int32" field.
func (u *FieldTypeUpsertBulk) SetOptionalInt32(v int32) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetOptionalInt32(v)
	})
}

// AddOptionalInt32 adds v to the "optional_int32" field.
func (u *FieldTypeUpsertBulk) AddOptionalInt32(v int32) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddOptionalInt32(v)
	})
}

// UpdateOptionalInt32 sets the "optional_int32" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateOptionalInt32() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateOptionalInt32()
	})
}

// ClearOptionalInt32 clears the value of the "optional_int32" field.
func (u *FieldTypeUpsertBulk) ClearOptionalInt32() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearOptionalInt32()
	})
}

// SetOptionalInt64 sets the "optional_int64" field.
func (u *FieldTypeUpsertBulk) SetOptionalInt64(v int64) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetOptionalInt64(v)
	})
}

// AddOptionalInt64 adds v to the "optional_int64" field.
func (u *FieldTypeUpsertBulk) AddOptionalInt64(v int64) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddOptionalInt64(v)
	})
}

// UpdateOptionalInt64 sets the "optional_int64" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateOptionalInt64() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateOptionalInt64()
	})
}

// ClearOptionalInt64 clears the value of the "optional_int64" field.
func (u *FieldTypeUpsertBulk) ClearOptionalInt64() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearOptionalInt64()
	})
}

// SetNillableInt sets the "nillable_int" field.
func (u *FieldTypeUpsertBulk) SetNillableInt(v int) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNillableInt(v)
	})
}

// AddNillableInt adds v to the "nillable_int" field.
func (u *FieldTypeUpsertBulk) AddNillableInt(v int) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddNillableInt(v)
	})
}

// UpdateNillableInt sets the "nillable_int" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateNillableInt() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNillableInt()
	})
}

// ClearNillableInt clears the value of the "nillable_int" field.
func (u *FieldTypeUpsertBulk) ClearNillableInt() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNillableInt()
	})
}

// SetNillableInt8 sets the "nillable_int8" field.
func (u *FieldTypeUpsertBulk) SetNillableInt8(v int8) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNillableInt8(v)
	})
}

// AddNillableInt8 adds v to the "nillable_int8" field.
func (u *FieldTypeUpsertBulk) AddNillableInt8(v int8) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddNillableInt8(v)
	})
}

// UpdateNillableInt8 sets the "nillable_int8" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateNillableInt8() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNillableInt8()
	})
}

// ClearNillableInt8 clears the value of the "nillable_int8" field.
func (u *FieldTypeUpsertBulk) ClearNillableInt8() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNillableInt8()
	})
}

// SetNillableInt16 sets the "nillable_int16" field.
func (u *FieldTypeUpsertBulk) SetNillableInt16(v int16) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNillableInt16(v)
	})
}

// AddNillableInt16 adds v to the "nillable_int16" field.
func (u *FieldTypeUpsertBulk) AddNillableInt16(v int16) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddNillableInt16(v)
	})
}

// UpdateNillableInt16 sets the "nillable_int16" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateNillableInt16() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNillableInt16()
	})
}

// ClearNillableInt16 clears the value of the "nillable_int16" field.
func (u *FieldTypeUpsertBulk) ClearNillableInt16() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNillableInt16()
	})
}

// SetNillableInt32 sets the "nillable_int32" field.
func (u *FieldTypeUpsertBulk) SetNillableInt32(v int32) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNillableInt32(v)
	})
}

// AddNillableInt32 adds v to the "nillable_int32" field.
func (u *FieldTypeUpsertBulk) AddNillableInt32(v int32) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddNillableInt32(v)
	})
}

// UpdateNillableInt32 sets the "nillable_int32" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateNillableInt32() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNillableInt32()
	})
}

// ClearNillableInt32 clears the value of the "nillable_int32" field.
func (u *FieldTypeUpsertBulk) ClearNillableInt32() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNillableInt32()
	})
}

// SetNillableInt64 sets the "nillable_int64" field.
func (u *FieldTypeUpsertBulk) SetNillableInt64(v int64) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNillableInt64(v)
	})
}

// AddNillableInt64 adds v to the "nillable_int64" field.
func (u *FieldTypeUpsertBulk) AddNillableInt64(v int64) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddNillableInt64(v)
	})
}

// UpdateNillableInt64 sets the "nillable_int64" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateNillableInt64() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNillableInt64()
	})
}

// ClearNillableInt64 clears the value of the "nillable_int64" field.
func (u *FieldTypeUpsertBulk) ClearNillableInt64() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNillableInt64()
	})
}

// SetValidateOptionalInt32 sets the "validate_optional_int32" field.
func (u *FieldTypeUpsertBulk) SetValidateOptionalInt32(v int32) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetValidateOptionalInt32(v)
	})
}

// AddValidateOptionalInt32 adds v to the "validate_optional_int32" field.
func (u *FieldTypeUpsertBulk) AddValidateOptionalInt32(v int32) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddValidateOptionalInt32(v)
	})
}

// UpdateValidateOptionalInt32 sets the "validate_optional_int32" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateValidateOptionalInt32() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateValidateOptionalInt32()
	})
}

// ClearValidateOptionalInt32 clears the value of the "validate_optional_int32" field.
func (u *FieldTypeUpsertBulk) ClearValidateOptionalInt32() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearValidateOptionalInt32()
	})
}

// SetOptionalUint sets the "optional_uint" field.
func (u *FieldTypeUpsertBulk) SetOptionalUint(v uint) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetOptionalUint(v)
	})
}

// AddOptionalUint adds v to the "optional_uint" field.
func (u *FieldTypeUpsertBulk) AddOptionalUint(v uint) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddOptionalUint(v)
	})
}

// UpdateOptionalUint sets the "optional_uint" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateOptionalUint() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateOptionalUint()
	})
}

// ClearOptionalUint clears the value of the "optional_uint" field.
func (u *FieldTypeUpsertBulk) ClearOptionalUint() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearOptionalUint()
	})
}

// SetOptionalUint8 sets the "optional_uint8" field.
func (u *FieldTypeUpsertBulk) SetOptionalUint8(v uint8) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetOptionalUint8(v)
	})
}

// AddOptionalUint8 adds v to the "optional_uint8" field.
func (u *FieldTypeUpsertBulk) AddOptionalUint8(v uint8) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddOptionalUint8(v)
	})
}

// UpdateOptionalUint8 sets the "optional_uint8" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateOptionalUint8() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateOptionalUint8()
	})
}

// ClearOptionalUint8 clears the value of the "optional_uint8" field.
func (u *FieldTypeUpsertBulk) ClearOptionalUint8() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearOptionalUint8()
	})
}

// SetOptionalUint16 sets the "optional_uint16" field.
func (u *FieldTypeUpsertBulk) SetOptionalUint16(v uint16) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetOptionalUint16(v)
	})
}

// AddOptionalUint16 adds v to the "optional_uint16" field.
func (u *FieldTypeUpsertBulk) AddOptionalUint16(v uint16) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddOptionalUint16(v)
	})
}

// UpdateOptionalUint16 sets the "optional_uint16" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateOptionalUint16() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateOptionalUint16()
	})
}

// ClearOptionalUint16 clears the value of the "optional_uint16" field.
func (u *FieldTypeUpsertBulk) ClearOptionalUint16() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearOptionalUint16()
	})
}

// SetOptionalUint32 sets the "optional_uint32" field.
func (u *FieldTypeUpsertBulk) SetOptionalUint32(v uint32) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetOptionalUint32(v)
	})
}

// AddOptionalUint32 adds v to the "optional_uint32" field.
func (u *FieldTypeUpsertBulk) AddOptionalUint32(v uint32) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddOptionalUint32(v)
	})
}

// UpdateOptionalUint32 sets the "optional_uint32" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateOptionalUint32() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateOptionalUint32()
	})
}

// ClearOptionalUint32 clears the value of the "optional_uint32" field.
func (u *FieldTypeUpsertBulk) ClearOptionalUint32() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearOptionalUint32()
	})
}

// SetOptionalUint64 sets the "optional_uint64" field.
func (u *FieldTypeUpsertBulk) SetOptionalUint64(v uint64) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetOptionalUint64(v)
	})
}

// AddOptionalUint64 adds v to the "optional_uint64" field.
func (u *FieldTypeUpsertBulk) AddOptionalUint64(v uint64) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddOptionalUint64(v)
	})
}

// UpdateOptionalUint64 sets the "optional_uint64" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateOptionalUint64() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateOptionalUint64()
	})
}

// ClearOptionalUint64 clears the value of the "optional_uint64" field.
func (u *FieldTypeUpsertBulk) ClearOptionalUint64() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearOptionalUint64()
	})
}

// SetState sets the "state" field.
func (u *FieldTypeUpsertBulk) SetState(v fieldtype.State) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetState(v)
	})
}

// UpdateState sets the "state" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateState() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateState()
	})
}

// ClearState clears the value of the "state" field.
func (u *FieldTypeUpsertBulk) ClearState() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearState()
	})
}

// SetOptionalFloat sets the "optional_float" field.
func (u *FieldTypeUpsertBulk) SetOptionalFloat(v float64) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetOptionalFloat(v)
	})
}

// AddOptionalFloat adds v to the "optional_float" field.
func (u *FieldTypeUpsertBulk) AddOptionalFloat(v float64) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddOptionalFloat(v)
	})
}

// UpdateOptionalFloat sets the "optional_float" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateOptionalFloat() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateOptionalFloat()
	})
}

// ClearOptionalFloat clears the value of the "optional_float" field.
func (u *FieldTypeUpsertBulk) ClearOptionalFloat() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearOptionalFloat()
	})
}

// SetOptionalFloat32 sets the "optional_float32" field.
func (u *FieldTypeUpsertBulk) SetOptionalFloat32(v float32) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetOptionalFloat32(v)
	})
}

// AddOptionalFloat32 adds v to the "optional_float32" field.
func (u *FieldTypeUpsertBulk) AddOptionalFloat32(v float32) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddOptionalFloat32(v)
	})
}

// UpdateOptionalFloat32 sets the "optional_float32" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateOptionalFloat32() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateOptionalFloat32()
	})
}

// ClearOptionalFloat32 clears the value of the "optional_float32" field.
func (u *FieldTypeUpsertBulk) ClearOptionalFloat32() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearOptionalFloat32()
	})
}

// SetDatetime sets the "datetime" field.
func (u *FieldTypeUpsertBulk) SetDatetime(v time.Time) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetDatetime(v)
	})
}

// UpdateDatetime sets the "datetime" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateDatetime() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateDatetime()
	})
}

// ClearDatetime clears the value of the "datetime" field.
func (u *FieldTypeUpsertBulk) ClearDatetime() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearDatetime()
	})
}

// SetDecimal sets the "decimal" field.
func (u *FieldTypeUpsertBulk) SetDecimal(v float64) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetDecimal(v)
	})
}

// AddDecimal adds v to the "decimal" field.
func (u *FieldTypeUpsertBulk) AddDecimal(v float64) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddDecimal(v)
	})
}

// UpdateDecimal sets the "decimal" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateDecimal() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateDecimal()
	})
}

// ClearDecimal clears the value of the "decimal" field.
func (u *FieldTypeUpsertBulk) ClearDecimal() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearDecimal()
	})
}

// SetLinkOther sets the "link_other" field.
func (u *FieldTypeUpsertBulk) SetLinkOther(v *schema.Link) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetLinkOther(v)
	})
}

// UpdateLinkOther sets the "link_other" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateLinkOther() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateLinkOther()
	})
}

// ClearLinkOther clears the value of the "link_other" field.
func (u *FieldTypeUpsertBulk) ClearLinkOther() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearLinkOther()
	})
}

// SetMAC sets the "mac" field.
func (u *FieldTypeUpsertBulk) SetMAC(v schema.MAC) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetMAC(v)
	})
}

// UpdateMAC sets the "mac" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateMAC() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateMAC()
	})
}

// ClearMAC clears the value of the "mac" field.
func (u *FieldTypeUpsertBulk) ClearMAC() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearMAC()
	})
}

// SetStringArray sets the "string_array" field.
func (u *FieldTypeUpsertBulk) SetStringArray(v schema.Strings) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetStringArray(v)
	})
}

// UpdateStringArray sets the "string_array" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateStringArray() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateStringArray()
	})
}

// ClearStringArray clears the value of the "string_array" field.
func (u *FieldTypeUpsertBulk) ClearStringArray() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearStringArray()
	})
}

// SetPassword sets the "password" field.
func (u *FieldTypeUpsertBulk) SetPassword(v string) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetPassword(v)
	})
}

// UpdatePassword sets the "password" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdatePassword() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdatePassword()
	})
}

// ClearPassword clears the value of the "password" field.
func (u *FieldTypeUpsertBulk) ClearPassword() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearPassword()
	})
}

// SetStringScanner sets the "string_scanner" field.
func (u *FieldTypeUpsertBulk) SetStringScanner(v schema.StringScanner) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetStringScanner(v)
	})
}

// UpdateStringScanner sets the "string_scanner" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateStringScanner() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateStringScanner()
	})
}

// ClearStringScanner clears the value of the "string_scanner" field.
func (u *FieldTypeUpsertBulk) ClearStringScanner() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearStringScanner()
	})
}

// SetDuration sets the "duration" field.
func (u *FieldTypeUpsertBulk) SetDuration(v time.Duration) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetDuration(v)
	})
}

// AddDuration adds v to the "duration" field.
func (u *FieldTypeUpsertBulk) AddDuration(v time.Duration) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddDuration(v)
	})
}

// UpdateDuration sets the "duration" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateDuration() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateDuration()
	})
}

// ClearDuration clears the value of the "duration" field.
func (u *FieldTypeUpsertBulk) ClearDuration() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearDuration()
	})
}

// SetDir sets the "dir" field.
func (u *FieldTypeUpsertBulk) SetDir(v http.Dir) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetDir(v)
	})
}

// UpdateDir sets the "dir" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateDir() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateDir()
	})
}

// SetNdir sets the "ndir" field.
func (u *FieldTypeUpsertBulk) SetNdir(v http.Dir) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNdir(v)
	})
}

// UpdateNdir sets the "ndir" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateNdir() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNdir()
	})
}

// ClearNdir clears the value of the "ndir" field.
func (u *FieldTypeUpsertBulk) ClearNdir() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNdir()
	})
}

// SetStr sets the "str" field.
func (u *FieldTypeUpsertBulk) SetStr(v sql.NullString) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetStr(v)
	})
}

// UpdateStr sets the "str" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateStr() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateStr()
	})
}

// ClearStr clears the value of the "str" field.
func (u *FieldTypeUpsertBulk) ClearStr() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearStr()
	})
}

// SetNullStr sets the "null_str" field.
func (u *FieldTypeUpsertBulk) SetNullStr(v *sql.NullString) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNullStr(v)
	})
}

// UpdateNullStr sets the "null_str" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateNullStr() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNullStr()
	})
}

// ClearNullStr clears the value of the "null_str" field.
func (u *FieldTypeUpsertBulk) ClearNullStr() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNullStr()
	})
}

// SetLink sets the "link" field.
func (u *FieldTypeUpsertBulk) SetLink(v schema.Link) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetLink(v)
	})
}

// UpdateLink sets the "link" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateLink() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateLink()
	})
}

// ClearLink clears the value of the "link" field.
func (u *FieldTypeUpsertBulk) ClearLink() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearLink()
	})
}

// SetNullLink sets the "null_link" field.
func (u *FieldTypeUpsertBulk) SetNullLink(v *schema.Link) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNullLink(v)
	})
}

// UpdateNullLink sets the "null_link" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateNullLink() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNullLink()
	})
}

// ClearNullLink clears the value of the "null_link" field.
func (u *FieldTypeUpsertBulk) ClearNullLink() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNullLink()
	})
}

// SetActive sets the "active" field.
func (u *FieldTypeUpsertBulk) SetActive(v schema.Status) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetActive(v)
	})
}

// UpdateActive sets the "active" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateActive() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateActive()
	})
}

// ClearActive clears the value of the "active" field.
func (u *FieldTypeUpsertBulk) ClearActive() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearActive()
	})
}

// SetNullActive sets the "null_active" field.
func (u *FieldTypeUpsertBulk) SetNullActive(v schema.Status) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNullActive(v)
	})
}

// UpdateNullActive sets the "null_active" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateNullActive() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNullActive()
	})
}

// ClearNullActive clears the value of the "null_active" field.
func (u *FieldTypeUpsertBulk) ClearNullActive() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNullActive()
	})
}

// SetDeleted sets the "deleted" field.
func (u *FieldTypeUpsertBulk) SetDeleted(v *sql.NullBool) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetDeleted(v)
	})
}

// UpdateDeleted sets the "deleted" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateDeleted() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateDeleted()
	})
}

// ClearDeleted clears the value of the "deleted" field.
func (u *FieldTypeUpsertBulk) ClearDeleted() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearDeleted()
	})
}

// SetDeletedAt sets the "deleted_at" field.
func (u *FieldTypeUpsertBulk) SetDeletedAt(v *sql.NullTime) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetDeletedAt(v)
	})
}

// UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateDeletedAt() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateDeletedAt()
	})
}

// ClearDeletedAt clears the value of the "deleted_at" field.
func (u *FieldTypeUpsertBulk) ClearDeletedAt() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearDeletedAt()
	})
}

// SetRawData sets the "raw_data" field.
func (u *FieldTypeUpsertBulk) SetRawData(v []byte) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetRawData(v)
	})
}

// UpdateRawData sets the "raw_data" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateRawData() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateRawData()
	})
}

// ClearRawData clears the value of the "raw_data" field.
func (u *FieldTypeUpsertBulk) ClearRawData() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearRawData()
	})
}

// SetSensitive sets the "sensitive" field.
func (u *FieldTypeUpsertBulk) SetSensitive(v []byte) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetSensitive(v)
	})
}

// UpdateSensitive sets the "sensitive" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateSensitive() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateSensitive()
	})
}

// ClearSensitive clears the value of the "sensitive" field.
func (u *FieldTypeUpsertBulk) ClearSensitive() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearSensitive()
	})
}

// SetIP sets the "ip" field.
func (u *FieldTypeUpsertBulk) SetIP(v net.IP) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetIP(v)
	})
}

// UpdateIP sets the "ip" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateIP() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateIP()
	})
}

// ClearIP clears the value of the "ip" field.
func (u *FieldTypeUpsertBulk) ClearIP() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearIP()
	})
}

// SetNullInt64 sets the "null_int64" field.
func (u *FieldTypeUpsertBulk) SetNullInt64(v *sql.NullInt64) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNullInt64(v)
	})
}

// UpdateNullInt64 sets the "null_int64" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateNullInt64() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNullInt64()
	})
}

// ClearNullInt64 clears the value of the "null_int64" field.
func (u *FieldTypeUpsertBulk) ClearNullInt64() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNullInt64()
	})
}

// SetSchemaInt sets the "schema_int" field.
func (u *FieldTypeUpsertBulk) SetSchemaInt(v schema.Int) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetSchemaInt(v)
	})
}

// AddSchemaInt adds v to the "schema_int" field.
func (u *FieldTypeUpsertBulk) AddSchemaInt(v schema.Int) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddSchemaInt(v)
	})
}

// UpdateSchemaInt sets the "schema_int" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateSchemaInt() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateSchemaInt()
	})
}

// ClearSchemaInt clears the value of the "schema_int" field.
func (u *FieldTypeUpsertBulk) ClearSchemaInt() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearSchemaInt()
	})
}

// SetSchemaInt8 sets the "schema_int8" field.
func (u *FieldTypeUpsertBulk) SetSchemaInt8(v schema.Int8) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetSchemaInt8(v)
	})
}

// AddSchemaInt8 adds v to the "schema_int8" field.
func (u *FieldTypeUpsertBulk) AddSchemaInt8(v schema.Int8) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddSchemaInt8(v)
	})
}

// UpdateSchemaInt8 sets the "schema_int8" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateSchemaInt8() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateSchemaInt8()
	})
}

// ClearSchemaInt8 clears the value of the "schema_int8" field.
func (u *FieldTypeUpsertBulk) ClearSchemaInt8() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearSchemaInt8()
	})
}

// SetSchemaInt64 sets the "schema_int64" field.
func (u *FieldTypeUpsertBulk) SetSchemaInt64(v schema.Int64) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetSchemaInt64(v)
	})
}

// AddSchemaInt64 adds v to the "schema_int64" field.
func (u *FieldTypeUpsertBulk) AddSchemaInt64(v schema.Int64) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddSchemaInt64(v)
	})
}

// UpdateSchemaInt64 sets the "schema_int64" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateSchemaInt64() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateSchemaInt64()
	})
}

// ClearSchemaInt64 clears the value of the "schema_int64" field.
func (u *FieldTypeUpsertBulk) ClearSchemaInt64() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearSchemaInt64()
	})
}

// SetSchemaFloat sets the "schema_float" field.
func (u *FieldTypeUpsertBulk) SetSchemaFloat(v schema.Float64) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetSchemaFloat(v)
	})
}

// AddSchemaFloat adds v to the "schema_float" field.
func (u *FieldTypeUpsertBulk) AddSchemaFloat(v schema.Float64) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddSchemaFloat(v)
	})
}

// UpdateSchemaFloat sets the "schema_float" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateSchemaFloat() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateSchemaFloat()
	})
}

// ClearSchemaFloat clears the value of the "schema_float" field.
func (u *FieldTypeUpsertBulk) ClearSchemaFloat() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearSchemaFloat()
	})
}

// SetSchemaFloat32 sets the "schema_float32" field.
func (u *FieldTypeUpsertBulk) SetSchemaFloat32(v schema.Float32) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetSchemaFloat32(v)
	})
}

// AddSchemaFloat32 adds v to the "schema_float32" field.
func (u *FieldTypeUpsertBulk) AddSchemaFloat32(v schema.Float32) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddSchemaFloat32(v)
	})
}

// UpdateSchemaFloat32 sets the "schema_float32" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateSchemaFloat32() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateSchemaFloat32()
	})
}

// ClearSchemaFloat32 clears the value of the "schema_float32" field.
func (u *FieldTypeUpsertBulk) ClearSchemaFloat32() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearSchemaFloat32()
	})
}

// SetNullFloat sets the "null_float" field.
func (u *FieldTypeUpsertBulk) SetNullFloat(v *sql.NullFloat64) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNullFloat(v)
	})
}

// UpdateNullFloat sets the "null_float" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateNullFloat() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNullFloat()
	})
}

// ClearNullFloat clears the value of the "null_float" field.
func (u *FieldTypeUpsertBulk) ClearNullFloat() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNullFloat()
	})
}

// SetRole sets the "role" field.
func (u *FieldTypeUpsertBulk) SetRole(v role.Role) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetRole(v)
	})
}

// UpdateRole sets the "role" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateRole() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateRole()
	})
}

// SetPriority sets the "priority" field.
func (u *FieldTypeUpsertBulk) SetPriority(v role.Priority) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetPriority(v)
	})
}

// UpdatePriority sets the "priority" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdatePriority() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdatePriority()
	})
}

// ClearPriority clears the value of the "priority" field.
func (u *FieldTypeUpsertBulk) ClearPriority() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearPriority()
	})
}

// SetUUID sets the "uuid" field.
func (u *FieldTypeUpsertBulk) SetUUID(v uuid.UUID) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetUUID(v)
	})
}

// UpdateUUID sets the "uuid" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateUUID() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateUUID()
	})
}

// ClearUUID clears the value of the "uuid" field.
func (u *FieldTypeUpsertBulk) ClearUUID() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearUUID()
	})
}

// SetNillableUUID sets the "nillable_uuid" field.
func (u *FieldTypeUpsertBulk) SetNillableUUID(v uuid.UUID) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNillableUUID(v)
	})
}

// UpdateNillableUUID sets the "nillable_uuid" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateNillableUUID() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNillableUUID()
	})
}

// ClearNillableUUID clears the value of the "nillable_uuid" field.
func (u *FieldTypeUpsertBulk) ClearNillableUUID() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNillableUUID()
	})
}

// SetStrings sets the "strings" field.
func (u *FieldTypeUpsertBulk) SetStrings(v []string) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetStrings(v)
	})
}

// UpdateStrings sets the "strings" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateStrings() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateStrings()
	})
}

// ClearStrings clears the value of the "strings" field.
func (u *FieldTypeUpsertBulk) ClearStrings() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearStrings()
	})
}

// SetPair sets the "pair" field.
func (u *FieldTypeUpsertBulk) SetPair(v schema.Pair) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetPair(v)
	})
}

// UpdatePair sets the "pair" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdatePair() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdatePair()
	})
}

// SetNilPair sets the "nil_pair" field.
func (u *FieldTypeUpsertBulk) SetNilPair(v *schema.Pair) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetNilPair(v)
	})
}

// UpdateNilPair sets the "nil_pair" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateNilPair() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateNilPair()
	})
}

// ClearNilPair clears the value of the "nil_pair" field.
func (u *FieldTypeUpsertBulk) ClearNilPair() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearNilPair()
	})
}

// SetVstring sets the "vstring" field.
func (u *FieldTypeUpsertBulk) SetVstring(v schema.VString) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetVstring(v)
	})
}

// UpdateVstring sets the "vstring" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateVstring() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateVstring()
	})
}

// SetTriple sets the "triple" field.
func (u *FieldTypeUpsertBulk) SetTriple(v schema.Triple) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetTriple(v)
	})
}

// UpdateTriple sets the "triple" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateTriple() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateTriple()
	})
}

// SetBigInt sets the "big_int" field.
func (u *FieldTypeUpsertBulk) SetBigInt(v schema.BigInt) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetBigInt(v)
	})
}

// AddBigInt adds v to the "big_int" field.
func (u *FieldTypeUpsertBulk) AddBigInt(v schema.BigInt) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.AddBigInt(v)
	})
}

// UpdateBigInt sets the "big_int" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdateBigInt() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdateBigInt()
	})
}

// ClearBigInt clears the value of the "big_int" field.
func (u *FieldTypeUpsertBulk) ClearBigInt() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearBigInt()
	})
}

// SetPasswordOther sets the "password_other" field.
func (u *FieldTypeUpsertBulk) SetPasswordOther(v schema.Password) *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.SetPasswordOther(v)
	})
}

// UpdatePasswordOther sets the "password_other" field to the value that was provided on create.
func (u *FieldTypeUpsertBulk) UpdatePasswordOther() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.UpdatePasswordOther()
	})
}

// ClearPasswordOther clears the value of the "password_other" field.
func (u *FieldTypeUpsertBulk) ClearPasswordOther() *FieldTypeUpsertBulk {
	return u.Update(func(s *FieldTypeUpsert) {
		s.ClearPasswordOther()
	})
}

// Exec executes the query.
func (u *FieldTypeUpsertBulk) Exec(ctx context.Context) error {
	for i, b := range u.create.builders {
		if len(b.conflict) != 0 {
			return fmt.Errorf("ent: OnConflict was set for builder %d. Set it on the FieldTypeCreateBulk instead", i)
		}
	}
	if len(u.create.conflict) == 0 {
		return errors.New("ent: missing options for FieldTypeCreateBulk.OnConflict")
	}
	return u.create.Exec(ctx)
}

// ExecX is like Exec, but panics if an error occurs.
func (u *FieldTypeUpsertBulk) ExecX(ctx context.Context) {
	if err := u.create.Exec(ctx); err != nil {
		panic(err)
	}
}
