// defaults sets the default values of the builder before save.
defaults sets the default values of the builder before save.
// defaults sets the default values of the builder before save .
func (sc *ScopeCreate) defaults() {
	if _, ok := sc.mutation.CreatedAt(); !ok {
		v := scope.DefaultCreatedAt()
		sc.mutation.SetCreatedAt(v)
	}
	if _, ok := sc.mutation.UpdatedAt(); !ok {
		v := scope.DefaultUpdatedAt()
		sc.mutation.SetUpdatedAt(v)
	}
	if _, ok := sc.mutation.Nonce(); !ok {
		v := scope.DefaultNonce()
		sc.mutation.SetNonce(v)
	}
	if _, ok := sc.mutation.ID(); !ok {
		v := scope.DefaultID()
		sc.mutation.SetID(v)
	}
}
func ( sc * ScopeCreate ) defaults ( ) { if _ , ok := sc . mutation . CreatedAt ( ) ; ! ok { v := scope . DefaultCreatedAt ( ) sc . mutation . SetCreatedAt ( v ) } if _ , ok := sc . mutation . UpdatedAt ( ) ; ! ok { v := scope . DefaultUpdatedAt ( ) sc . mutation . SetUpdatedAt ( v ) } if _ , ok := sc . mutation . Nonce ( ) ; ! ok { v := scope . DefaultNonce ( ) sc . mutation . SetNonce ( v ) } if _ , ok := sc . mutation . ID ( ) ; ! ok { v := scope . DefaultID ( ) sc . mutation . SetID ( v ) } }
defaults sets the default values of the builder before save.
defaults sets the default values of the builder before save .