func (tu *TokenUpdate) Save(ctx context.Context) (int, error) {
	if tu.updated_at == nil {
		v := token.UpdateDefaultUpdatedAt()
		tu.updated_at = &v
	}
	if len(tu.user) > 1 {
		return 0, errors.New("ent: multiple assignments on a unique edge \"user\"")
	}
	if tu.clearedUser && tu.user == nil {
		return 0, errors.New("ent: clearing a unique edge \"user\"")
	}
	return tu.sqlSave(ctx)
}
// Save executes the query and returns the number of rows/vertices matched by this operation.
Save executes the query and returns the number of rows/vertices matched by this operation.
// Save executes the query and returns the number of rows / vertices matched by this operation .
func (tu *TokenUpdate) Save(ctx context.Context) (int, error) {
	if tu.updated_at == nil {
		v := token.UpdateDefaultUpdatedAt()
		tu.updated_at = &v
	}
	if len(tu.user) > 1 {
		return 0, errors.New("ent: multiple assignments on a unique edge \"user\"")
	}
	if tu.clearedUser && tu.user == nil {
		return 0, errors.New("ent: clearing a unique edge \"user\"")
	}
	return tu.sqlSave(ctx)
}
func ( tu * TokenUpdate ) Save ( ctx context . Context ) ( int , error ) { if tu . updated_at == nil { v := token . UpdateDefaultUpdatedAt ( ) tu . updated_at = & v } if len ( tu . user ) > 1 { return 0 , errors . New ( " \" \" " ) } if tu . clearedUser && tu . user == nil { return 0 , errors . New ( " \" \" " ) } return tu . sqlSave ( ctx ) }
Save executes the query and returns the number of rows/vertices matched by this operation.
Save executes the query and returns the number of rows / vertices matched by this operation .