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