// 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 (ftc *FactTypeCreate) defaults() {
	if _, ok := ftc.mutation.CreatedAt(); !ok {
		v := facttype.DefaultCreatedAt()
		ftc.mutation.SetCreatedAt(v)
	}
	if _, ok := ftc.mutation.UpdatedAt(); !ok {
		v := facttype.DefaultUpdatedAt()
		ftc.mutation.SetUpdatedAt(v)
	}
	if _, ok := ftc.mutation.BuiltIn(); !ok {
		v := facttype.DefaultBuiltIn
		ftc.mutation.SetBuiltIn(v)
	}
	if _, ok := ftc.mutation.ID(); !ok {
		v := facttype.DefaultID()
		ftc.mutation.SetID(v)
	}
}
func ( ftc * FactTypeCreate ) defaults ( ) { if _ , ok := ftc . mutation . CreatedAt ( ) ; ! ok { v := facttype . DefaultCreatedAt ( ) ftc . mutation . SetCreatedAt ( v ) } if _ , ok := ftc . mutation . UpdatedAt ( ) ; ! ok { v := facttype . DefaultUpdatedAt ( ) ftc . mutation . SetUpdatedAt ( v ) } if _ , ok := ftc . mutation . BuiltIn ( ) ; ! ok { v := facttype . DefaultBuiltIn ftc . mutation . SetBuiltIn ( v ) } if _ , ok := ftc . mutation . ID ( ) ; ! ok { v := facttype . DefaultID ( ) ftc . mutation . SetID ( v ) } }
defaults sets the default values of the builder before save.
defaults sets the default values of the builder before save .