github.com/ngocphuongnb/tetua@v0.0.7-alpha/packages/entrepository/ent/user/where.go (about)

     1  // Code generated by entc, DO NOT EDIT.
     2  
     3  package user
     4  
     5  import (
     6  	"time"
     7  
     8  	"entgo.io/ent/dialect/sql"
     9  	"entgo.io/ent/dialect/sql/sqlgraph"
    10  	"github.com/ngocphuongnb/tetua/packages/entrepository/ent/predicate"
    11  )
    12  
    13  // ID filters vertices based on their ID field.
    14  func ID(id int) predicate.User {
    15  	return predicate.User(func(s *sql.Selector) {
    16  		s.Where(sql.EQ(s.C(FieldID), id))
    17  	})
    18  }
    19  
    20  // IDEQ applies the EQ predicate on the ID field.
    21  func IDEQ(id int) predicate.User {
    22  	return predicate.User(func(s *sql.Selector) {
    23  		s.Where(sql.EQ(s.C(FieldID), id))
    24  	})
    25  }
    26  
    27  // IDNEQ applies the NEQ predicate on the ID field.
    28  func IDNEQ(id int) predicate.User {
    29  	return predicate.User(func(s *sql.Selector) {
    30  		s.Where(sql.NEQ(s.C(FieldID), id))
    31  	})
    32  }
    33  
    34  // IDIn applies the In predicate on the ID field.
    35  func IDIn(ids ...int) predicate.User {
    36  	return predicate.User(func(s *sql.Selector) {
    37  		// if not arguments were provided, append the FALSE constants,
    38  		// since we can't apply "IN ()". This will make this predicate falsy.
    39  		if len(ids) == 0 {
    40  			s.Where(sql.False())
    41  			return
    42  		}
    43  		v := make([]interface{}, len(ids))
    44  		for i := range v {
    45  			v[i] = ids[i]
    46  		}
    47  		s.Where(sql.In(s.C(FieldID), v...))
    48  	})
    49  }
    50  
    51  // IDNotIn applies the NotIn predicate on the ID field.
    52  func IDNotIn(ids ...int) predicate.User {
    53  	return predicate.User(func(s *sql.Selector) {
    54  		// if not arguments were provided, append the FALSE constants,
    55  		// since we can't apply "IN ()". This will make this predicate falsy.
    56  		if len(ids) == 0 {
    57  			s.Where(sql.False())
    58  			return
    59  		}
    60  		v := make([]interface{}, len(ids))
    61  		for i := range v {
    62  			v[i] = ids[i]
    63  		}
    64  		s.Where(sql.NotIn(s.C(FieldID), v...))
    65  	})
    66  }
    67  
    68  // IDGT applies the GT predicate on the ID field.
    69  func IDGT(id int) predicate.User {
    70  	return predicate.User(func(s *sql.Selector) {
    71  		s.Where(sql.GT(s.C(FieldID), id))
    72  	})
    73  }
    74  
    75  // IDGTE applies the GTE predicate on the ID field.
    76  func IDGTE(id int) predicate.User {
    77  	return predicate.User(func(s *sql.Selector) {
    78  		s.Where(sql.GTE(s.C(FieldID), id))
    79  	})
    80  }
    81  
    82  // IDLT applies the LT predicate on the ID field.
    83  func IDLT(id int) predicate.User {
    84  	return predicate.User(func(s *sql.Selector) {
    85  		s.Where(sql.LT(s.C(FieldID), id))
    86  	})
    87  }
    88  
    89  // IDLTE applies the LTE predicate on the ID field.
    90  func IDLTE(id int) predicate.User {
    91  	return predicate.User(func(s *sql.Selector) {
    92  		s.Where(sql.LTE(s.C(FieldID), id))
    93  	})
    94  }
    95  
    96  // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
    97  func CreatedAt(v time.Time) predicate.User {
    98  	return predicate.User(func(s *sql.Selector) {
    99  		s.Where(sql.EQ(s.C(FieldCreatedAt), v))
   100  	})
   101  }
   102  
   103  // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
   104  func UpdatedAt(v time.Time) predicate.User {
   105  	return predicate.User(func(s *sql.Selector) {
   106  		s.Where(sql.EQ(s.C(FieldUpdatedAt), v))
   107  	})
   108  }
   109  
   110  // DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
   111  func DeletedAt(v time.Time) predicate.User {
   112  	return predicate.User(func(s *sql.Selector) {
   113  		s.Where(sql.EQ(s.C(FieldDeletedAt), v))
   114  	})
   115  }
   116  
   117  // Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
   118  func Username(v string) predicate.User {
   119  	return predicate.User(func(s *sql.Selector) {
   120  		s.Where(sql.EQ(s.C(FieldUsername), v))
   121  	})
   122  }
   123  
   124  // DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.
   125  func DisplayName(v string) predicate.User {
   126  	return predicate.User(func(s *sql.Selector) {
   127  		s.Where(sql.EQ(s.C(FieldDisplayName), v))
   128  	})
   129  }
   130  
   131  // URL applies equality check predicate on the "url" field. It's identical to URLEQ.
   132  func URL(v string) predicate.User {
   133  	return predicate.User(func(s *sql.Selector) {
   134  		s.Where(sql.EQ(s.C(FieldURL), v))
   135  	})
   136  }
   137  
   138  // Provider applies equality check predicate on the "provider" field. It's identical to ProviderEQ.
   139  func Provider(v string) predicate.User {
   140  	return predicate.User(func(s *sql.Selector) {
   141  		s.Where(sql.EQ(s.C(FieldProvider), v))
   142  	})
   143  }
   144  
   145  // ProviderID applies equality check predicate on the "provider_id" field. It's identical to ProviderIDEQ.
   146  func ProviderID(v string) predicate.User {
   147  	return predicate.User(func(s *sql.Selector) {
   148  		s.Where(sql.EQ(s.C(FieldProviderID), v))
   149  	})
   150  }
   151  
   152  // ProviderUsername applies equality check predicate on the "provider_username" field. It's identical to ProviderUsernameEQ.
   153  func ProviderUsername(v string) predicate.User {
   154  	return predicate.User(func(s *sql.Selector) {
   155  		s.Where(sql.EQ(s.C(FieldProviderUsername), v))
   156  	})
   157  }
   158  
   159  // ProviderAvatar applies equality check predicate on the "provider_avatar" field. It's identical to ProviderAvatarEQ.
   160  func ProviderAvatar(v string) predicate.User {
   161  	return predicate.User(func(s *sql.Selector) {
   162  		s.Where(sql.EQ(s.C(FieldProviderAvatar), v))
   163  	})
   164  }
   165  
   166  // Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
   167  func Email(v string) predicate.User {
   168  	return predicate.User(func(s *sql.Selector) {
   169  		s.Where(sql.EQ(s.C(FieldEmail), v))
   170  	})
   171  }
   172  
   173  // Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
   174  func Password(v string) predicate.User {
   175  	return predicate.User(func(s *sql.Selector) {
   176  		s.Where(sql.EQ(s.C(FieldPassword), v))
   177  	})
   178  }
   179  
   180  // Bio applies equality check predicate on the "bio" field. It's identical to BioEQ.
   181  func Bio(v string) predicate.User {
   182  	return predicate.User(func(s *sql.Selector) {
   183  		s.Where(sql.EQ(s.C(FieldBio), v))
   184  	})
   185  }
   186  
   187  // BioHTML applies equality check predicate on the "bio_html" field. It's identical to BioHTMLEQ.
   188  func BioHTML(v string) predicate.User {
   189  	return predicate.User(func(s *sql.Selector) {
   190  		s.Where(sql.EQ(s.C(FieldBioHTML), v))
   191  	})
   192  }
   193  
   194  // Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.
   195  func Active(v bool) predicate.User {
   196  	return predicate.User(func(s *sql.Selector) {
   197  		s.Where(sql.EQ(s.C(FieldActive), v))
   198  	})
   199  }
   200  
   201  // AvatarImageID applies equality check predicate on the "avatar_image_id" field. It's identical to AvatarImageIDEQ.
   202  func AvatarImageID(v int) predicate.User {
   203  	return predicate.User(func(s *sql.Selector) {
   204  		s.Where(sql.EQ(s.C(FieldAvatarImageID), v))
   205  	})
   206  }
   207  
   208  // CreatedAtEQ applies the EQ predicate on the "created_at" field.
   209  func CreatedAtEQ(v time.Time) predicate.User {
   210  	return predicate.User(func(s *sql.Selector) {
   211  		s.Where(sql.EQ(s.C(FieldCreatedAt), v))
   212  	})
   213  }
   214  
   215  // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
   216  func CreatedAtNEQ(v time.Time) predicate.User {
   217  	return predicate.User(func(s *sql.Selector) {
   218  		s.Where(sql.NEQ(s.C(FieldCreatedAt), v))
   219  	})
   220  }
   221  
   222  // CreatedAtIn applies the In predicate on the "created_at" field.
   223  func CreatedAtIn(vs ...time.Time) predicate.User {
   224  	v := make([]interface{}, len(vs))
   225  	for i := range v {
   226  		v[i] = vs[i]
   227  	}
   228  	return predicate.User(func(s *sql.Selector) {
   229  		// if not arguments were provided, append the FALSE constants,
   230  		// since we can't apply "IN ()". This will make this predicate falsy.
   231  		if len(v) == 0 {
   232  			s.Where(sql.False())
   233  			return
   234  		}
   235  		s.Where(sql.In(s.C(FieldCreatedAt), v...))
   236  	})
   237  }
   238  
   239  // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
   240  func CreatedAtNotIn(vs ...time.Time) predicate.User {
   241  	v := make([]interface{}, len(vs))
   242  	for i := range v {
   243  		v[i] = vs[i]
   244  	}
   245  	return predicate.User(func(s *sql.Selector) {
   246  		// if not arguments were provided, append the FALSE constants,
   247  		// since we can't apply "IN ()". This will make this predicate falsy.
   248  		if len(v) == 0 {
   249  			s.Where(sql.False())
   250  			return
   251  		}
   252  		s.Where(sql.NotIn(s.C(FieldCreatedAt), v...))
   253  	})
   254  }
   255  
   256  // CreatedAtGT applies the GT predicate on the "created_at" field.
   257  func CreatedAtGT(v time.Time) predicate.User {
   258  	return predicate.User(func(s *sql.Selector) {
   259  		s.Where(sql.GT(s.C(FieldCreatedAt), v))
   260  	})
   261  }
   262  
   263  // CreatedAtGTE applies the GTE predicate on the "created_at" field.
   264  func CreatedAtGTE(v time.Time) predicate.User {
   265  	return predicate.User(func(s *sql.Selector) {
   266  		s.Where(sql.GTE(s.C(FieldCreatedAt), v))
   267  	})
   268  }
   269  
   270  // CreatedAtLT applies the LT predicate on the "created_at" field.
   271  func CreatedAtLT(v time.Time) predicate.User {
   272  	return predicate.User(func(s *sql.Selector) {
   273  		s.Where(sql.LT(s.C(FieldCreatedAt), v))
   274  	})
   275  }
   276  
   277  // CreatedAtLTE applies the LTE predicate on the "created_at" field.
   278  func CreatedAtLTE(v time.Time) predicate.User {
   279  	return predicate.User(func(s *sql.Selector) {
   280  		s.Where(sql.LTE(s.C(FieldCreatedAt), v))
   281  	})
   282  }
   283  
   284  // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
   285  func UpdatedAtEQ(v time.Time) predicate.User {
   286  	return predicate.User(func(s *sql.Selector) {
   287  		s.Where(sql.EQ(s.C(FieldUpdatedAt), v))
   288  	})
   289  }
   290  
   291  // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
   292  func UpdatedAtNEQ(v time.Time) predicate.User {
   293  	return predicate.User(func(s *sql.Selector) {
   294  		s.Where(sql.NEQ(s.C(FieldUpdatedAt), v))
   295  	})
   296  }
   297  
   298  // UpdatedAtIn applies the In predicate on the "updated_at" field.
   299  func UpdatedAtIn(vs ...time.Time) predicate.User {
   300  	v := make([]interface{}, len(vs))
   301  	for i := range v {
   302  		v[i] = vs[i]
   303  	}
   304  	return predicate.User(func(s *sql.Selector) {
   305  		// if not arguments were provided, append the FALSE constants,
   306  		// since we can't apply "IN ()". This will make this predicate falsy.
   307  		if len(v) == 0 {
   308  			s.Where(sql.False())
   309  			return
   310  		}
   311  		s.Where(sql.In(s.C(FieldUpdatedAt), v...))
   312  	})
   313  }
   314  
   315  // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
   316  func UpdatedAtNotIn(vs ...time.Time) predicate.User {
   317  	v := make([]interface{}, len(vs))
   318  	for i := range v {
   319  		v[i] = vs[i]
   320  	}
   321  	return predicate.User(func(s *sql.Selector) {
   322  		// if not arguments were provided, append the FALSE constants,
   323  		// since we can't apply "IN ()". This will make this predicate falsy.
   324  		if len(v) == 0 {
   325  			s.Where(sql.False())
   326  			return
   327  		}
   328  		s.Where(sql.NotIn(s.C(FieldUpdatedAt), v...))
   329  	})
   330  }
   331  
   332  // UpdatedAtGT applies the GT predicate on the "updated_at" field.
   333  func UpdatedAtGT(v time.Time) predicate.User {
   334  	return predicate.User(func(s *sql.Selector) {
   335  		s.Where(sql.GT(s.C(FieldUpdatedAt), v))
   336  	})
   337  }
   338  
   339  // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
   340  func UpdatedAtGTE(v time.Time) predicate.User {
   341  	return predicate.User(func(s *sql.Selector) {
   342  		s.Where(sql.GTE(s.C(FieldUpdatedAt), v))
   343  	})
   344  }
   345  
   346  // UpdatedAtLT applies the LT predicate on the "updated_at" field.
   347  func UpdatedAtLT(v time.Time) predicate.User {
   348  	return predicate.User(func(s *sql.Selector) {
   349  		s.Where(sql.LT(s.C(FieldUpdatedAt), v))
   350  	})
   351  }
   352  
   353  // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
   354  func UpdatedAtLTE(v time.Time) predicate.User {
   355  	return predicate.User(func(s *sql.Selector) {
   356  		s.Where(sql.LTE(s.C(FieldUpdatedAt), v))
   357  	})
   358  }
   359  
   360  // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
   361  func DeletedAtEQ(v time.Time) predicate.User {
   362  	return predicate.User(func(s *sql.Selector) {
   363  		s.Where(sql.EQ(s.C(FieldDeletedAt), v))
   364  	})
   365  }
   366  
   367  // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
   368  func DeletedAtNEQ(v time.Time) predicate.User {
   369  	return predicate.User(func(s *sql.Selector) {
   370  		s.Where(sql.NEQ(s.C(FieldDeletedAt), v))
   371  	})
   372  }
   373  
   374  // DeletedAtIn applies the In predicate on the "deleted_at" field.
   375  func DeletedAtIn(vs ...time.Time) predicate.User {
   376  	v := make([]interface{}, len(vs))
   377  	for i := range v {
   378  		v[i] = vs[i]
   379  	}
   380  	return predicate.User(func(s *sql.Selector) {
   381  		// if not arguments were provided, append the FALSE constants,
   382  		// since we can't apply "IN ()". This will make this predicate falsy.
   383  		if len(v) == 0 {
   384  			s.Where(sql.False())
   385  			return
   386  		}
   387  		s.Where(sql.In(s.C(FieldDeletedAt), v...))
   388  	})
   389  }
   390  
   391  // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
   392  func DeletedAtNotIn(vs ...time.Time) predicate.User {
   393  	v := make([]interface{}, len(vs))
   394  	for i := range v {
   395  		v[i] = vs[i]
   396  	}
   397  	return predicate.User(func(s *sql.Selector) {
   398  		// if not arguments were provided, append the FALSE constants,
   399  		// since we can't apply "IN ()". This will make this predicate falsy.
   400  		if len(v) == 0 {
   401  			s.Where(sql.False())
   402  			return
   403  		}
   404  		s.Where(sql.NotIn(s.C(FieldDeletedAt), v...))
   405  	})
   406  }
   407  
   408  // DeletedAtGT applies the GT predicate on the "deleted_at" field.
   409  func DeletedAtGT(v time.Time) predicate.User {
   410  	return predicate.User(func(s *sql.Selector) {
   411  		s.Where(sql.GT(s.C(FieldDeletedAt), v))
   412  	})
   413  }
   414  
   415  // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
   416  func DeletedAtGTE(v time.Time) predicate.User {
   417  	return predicate.User(func(s *sql.Selector) {
   418  		s.Where(sql.GTE(s.C(FieldDeletedAt), v))
   419  	})
   420  }
   421  
   422  // DeletedAtLT applies the LT predicate on the "deleted_at" field.
   423  func DeletedAtLT(v time.Time) predicate.User {
   424  	return predicate.User(func(s *sql.Selector) {
   425  		s.Where(sql.LT(s.C(FieldDeletedAt), v))
   426  	})
   427  }
   428  
   429  // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
   430  func DeletedAtLTE(v time.Time) predicate.User {
   431  	return predicate.User(func(s *sql.Selector) {
   432  		s.Where(sql.LTE(s.C(FieldDeletedAt), v))
   433  	})
   434  }
   435  
   436  // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
   437  func DeletedAtIsNil() predicate.User {
   438  	return predicate.User(func(s *sql.Selector) {
   439  		s.Where(sql.IsNull(s.C(FieldDeletedAt)))
   440  	})
   441  }
   442  
   443  // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
   444  func DeletedAtNotNil() predicate.User {
   445  	return predicate.User(func(s *sql.Selector) {
   446  		s.Where(sql.NotNull(s.C(FieldDeletedAt)))
   447  	})
   448  }
   449  
   450  // UsernameEQ applies the EQ predicate on the "username" field.
   451  func UsernameEQ(v string) predicate.User {
   452  	return predicate.User(func(s *sql.Selector) {
   453  		s.Where(sql.EQ(s.C(FieldUsername), v))
   454  	})
   455  }
   456  
   457  // UsernameNEQ applies the NEQ predicate on the "username" field.
   458  func UsernameNEQ(v string) predicate.User {
   459  	return predicate.User(func(s *sql.Selector) {
   460  		s.Where(sql.NEQ(s.C(FieldUsername), v))
   461  	})
   462  }
   463  
   464  // UsernameIn applies the In predicate on the "username" field.
   465  func UsernameIn(vs ...string) predicate.User {
   466  	v := make([]interface{}, len(vs))
   467  	for i := range v {
   468  		v[i] = vs[i]
   469  	}
   470  	return predicate.User(func(s *sql.Selector) {
   471  		// if not arguments were provided, append the FALSE constants,
   472  		// since we can't apply "IN ()". This will make this predicate falsy.
   473  		if len(v) == 0 {
   474  			s.Where(sql.False())
   475  			return
   476  		}
   477  		s.Where(sql.In(s.C(FieldUsername), v...))
   478  	})
   479  }
   480  
   481  // UsernameNotIn applies the NotIn predicate on the "username" field.
   482  func UsernameNotIn(vs ...string) predicate.User {
   483  	v := make([]interface{}, len(vs))
   484  	for i := range v {
   485  		v[i] = vs[i]
   486  	}
   487  	return predicate.User(func(s *sql.Selector) {
   488  		// if not arguments were provided, append the FALSE constants,
   489  		// since we can't apply "IN ()". This will make this predicate falsy.
   490  		if len(v) == 0 {
   491  			s.Where(sql.False())
   492  			return
   493  		}
   494  		s.Where(sql.NotIn(s.C(FieldUsername), v...))
   495  	})
   496  }
   497  
   498  // UsernameGT applies the GT predicate on the "username" field.
   499  func UsernameGT(v string) predicate.User {
   500  	return predicate.User(func(s *sql.Selector) {
   501  		s.Where(sql.GT(s.C(FieldUsername), v))
   502  	})
   503  }
   504  
   505  // UsernameGTE applies the GTE predicate on the "username" field.
   506  func UsernameGTE(v string) predicate.User {
   507  	return predicate.User(func(s *sql.Selector) {
   508  		s.Where(sql.GTE(s.C(FieldUsername), v))
   509  	})
   510  }
   511  
   512  // UsernameLT applies the LT predicate on the "username" field.
   513  func UsernameLT(v string) predicate.User {
   514  	return predicate.User(func(s *sql.Selector) {
   515  		s.Where(sql.LT(s.C(FieldUsername), v))
   516  	})
   517  }
   518  
   519  // UsernameLTE applies the LTE predicate on the "username" field.
   520  func UsernameLTE(v string) predicate.User {
   521  	return predicate.User(func(s *sql.Selector) {
   522  		s.Where(sql.LTE(s.C(FieldUsername), v))
   523  	})
   524  }
   525  
   526  // UsernameContains applies the Contains predicate on the "username" field.
   527  func UsernameContains(v string) predicate.User {
   528  	return predicate.User(func(s *sql.Selector) {
   529  		s.Where(sql.Contains(s.C(FieldUsername), v))
   530  	})
   531  }
   532  
   533  // UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
   534  func UsernameHasPrefix(v string) predicate.User {
   535  	return predicate.User(func(s *sql.Selector) {
   536  		s.Where(sql.HasPrefix(s.C(FieldUsername), v))
   537  	})
   538  }
   539  
   540  // UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
   541  func UsernameHasSuffix(v string) predicate.User {
   542  	return predicate.User(func(s *sql.Selector) {
   543  		s.Where(sql.HasSuffix(s.C(FieldUsername), v))
   544  	})
   545  }
   546  
   547  // UsernameEqualFold applies the EqualFold predicate on the "username" field.
   548  func UsernameEqualFold(v string) predicate.User {
   549  	return predicate.User(func(s *sql.Selector) {
   550  		s.Where(sql.EqualFold(s.C(FieldUsername), v))
   551  	})
   552  }
   553  
   554  // UsernameContainsFold applies the ContainsFold predicate on the "username" field.
   555  func UsernameContainsFold(v string) predicate.User {
   556  	return predicate.User(func(s *sql.Selector) {
   557  		s.Where(sql.ContainsFold(s.C(FieldUsername), v))
   558  	})
   559  }
   560  
   561  // DisplayNameEQ applies the EQ predicate on the "display_name" field.
   562  func DisplayNameEQ(v string) predicate.User {
   563  	return predicate.User(func(s *sql.Selector) {
   564  		s.Where(sql.EQ(s.C(FieldDisplayName), v))
   565  	})
   566  }
   567  
   568  // DisplayNameNEQ applies the NEQ predicate on the "display_name" field.
   569  func DisplayNameNEQ(v string) predicate.User {
   570  	return predicate.User(func(s *sql.Selector) {
   571  		s.Where(sql.NEQ(s.C(FieldDisplayName), v))
   572  	})
   573  }
   574  
   575  // DisplayNameIn applies the In predicate on the "display_name" field.
   576  func DisplayNameIn(vs ...string) predicate.User {
   577  	v := make([]interface{}, len(vs))
   578  	for i := range v {
   579  		v[i] = vs[i]
   580  	}
   581  	return predicate.User(func(s *sql.Selector) {
   582  		// if not arguments were provided, append the FALSE constants,
   583  		// since we can't apply "IN ()". This will make this predicate falsy.
   584  		if len(v) == 0 {
   585  			s.Where(sql.False())
   586  			return
   587  		}
   588  		s.Where(sql.In(s.C(FieldDisplayName), v...))
   589  	})
   590  }
   591  
   592  // DisplayNameNotIn applies the NotIn predicate on the "display_name" field.
   593  func DisplayNameNotIn(vs ...string) predicate.User {
   594  	v := make([]interface{}, len(vs))
   595  	for i := range v {
   596  		v[i] = vs[i]
   597  	}
   598  	return predicate.User(func(s *sql.Selector) {
   599  		// if not arguments were provided, append the FALSE constants,
   600  		// since we can't apply "IN ()". This will make this predicate falsy.
   601  		if len(v) == 0 {
   602  			s.Where(sql.False())
   603  			return
   604  		}
   605  		s.Where(sql.NotIn(s.C(FieldDisplayName), v...))
   606  	})
   607  }
   608  
   609  // DisplayNameGT applies the GT predicate on the "display_name" field.
   610  func DisplayNameGT(v string) predicate.User {
   611  	return predicate.User(func(s *sql.Selector) {
   612  		s.Where(sql.GT(s.C(FieldDisplayName), v))
   613  	})
   614  }
   615  
   616  // DisplayNameGTE applies the GTE predicate on the "display_name" field.
   617  func DisplayNameGTE(v string) predicate.User {
   618  	return predicate.User(func(s *sql.Selector) {
   619  		s.Where(sql.GTE(s.C(FieldDisplayName), v))
   620  	})
   621  }
   622  
   623  // DisplayNameLT applies the LT predicate on the "display_name" field.
   624  func DisplayNameLT(v string) predicate.User {
   625  	return predicate.User(func(s *sql.Selector) {
   626  		s.Where(sql.LT(s.C(FieldDisplayName), v))
   627  	})
   628  }
   629  
   630  // DisplayNameLTE applies the LTE predicate on the "display_name" field.
   631  func DisplayNameLTE(v string) predicate.User {
   632  	return predicate.User(func(s *sql.Selector) {
   633  		s.Where(sql.LTE(s.C(FieldDisplayName), v))
   634  	})
   635  }
   636  
   637  // DisplayNameContains applies the Contains predicate on the "display_name" field.
   638  func DisplayNameContains(v string) predicate.User {
   639  	return predicate.User(func(s *sql.Selector) {
   640  		s.Where(sql.Contains(s.C(FieldDisplayName), v))
   641  	})
   642  }
   643  
   644  // DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.
   645  func DisplayNameHasPrefix(v string) predicate.User {
   646  	return predicate.User(func(s *sql.Selector) {
   647  		s.Where(sql.HasPrefix(s.C(FieldDisplayName), v))
   648  	})
   649  }
   650  
   651  // DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.
   652  func DisplayNameHasSuffix(v string) predicate.User {
   653  	return predicate.User(func(s *sql.Selector) {
   654  		s.Where(sql.HasSuffix(s.C(FieldDisplayName), v))
   655  	})
   656  }
   657  
   658  // DisplayNameIsNil applies the IsNil predicate on the "display_name" field.
   659  func DisplayNameIsNil() predicate.User {
   660  	return predicate.User(func(s *sql.Selector) {
   661  		s.Where(sql.IsNull(s.C(FieldDisplayName)))
   662  	})
   663  }
   664  
   665  // DisplayNameNotNil applies the NotNil predicate on the "display_name" field.
   666  func DisplayNameNotNil() predicate.User {
   667  	return predicate.User(func(s *sql.Selector) {
   668  		s.Where(sql.NotNull(s.C(FieldDisplayName)))
   669  	})
   670  }
   671  
   672  // DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.
   673  func DisplayNameEqualFold(v string) predicate.User {
   674  	return predicate.User(func(s *sql.Selector) {
   675  		s.Where(sql.EqualFold(s.C(FieldDisplayName), v))
   676  	})
   677  }
   678  
   679  // DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.
   680  func DisplayNameContainsFold(v string) predicate.User {
   681  	return predicate.User(func(s *sql.Selector) {
   682  		s.Where(sql.ContainsFold(s.C(FieldDisplayName), v))
   683  	})
   684  }
   685  
   686  // URLEQ applies the EQ predicate on the "url" field.
   687  func URLEQ(v string) predicate.User {
   688  	return predicate.User(func(s *sql.Selector) {
   689  		s.Where(sql.EQ(s.C(FieldURL), v))
   690  	})
   691  }
   692  
   693  // URLNEQ applies the NEQ predicate on the "url" field.
   694  func URLNEQ(v string) predicate.User {
   695  	return predicate.User(func(s *sql.Selector) {
   696  		s.Where(sql.NEQ(s.C(FieldURL), v))
   697  	})
   698  }
   699  
   700  // URLIn applies the In predicate on the "url" field.
   701  func URLIn(vs ...string) predicate.User {
   702  	v := make([]interface{}, len(vs))
   703  	for i := range v {
   704  		v[i] = vs[i]
   705  	}
   706  	return predicate.User(func(s *sql.Selector) {
   707  		// if not arguments were provided, append the FALSE constants,
   708  		// since we can't apply "IN ()". This will make this predicate falsy.
   709  		if len(v) == 0 {
   710  			s.Where(sql.False())
   711  			return
   712  		}
   713  		s.Where(sql.In(s.C(FieldURL), v...))
   714  	})
   715  }
   716  
   717  // URLNotIn applies the NotIn predicate on the "url" field.
   718  func URLNotIn(vs ...string) predicate.User {
   719  	v := make([]interface{}, len(vs))
   720  	for i := range v {
   721  		v[i] = vs[i]
   722  	}
   723  	return predicate.User(func(s *sql.Selector) {
   724  		// if not arguments were provided, append the FALSE constants,
   725  		// since we can't apply "IN ()". This will make this predicate falsy.
   726  		if len(v) == 0 {
   727  			s.Where(sql.False())
   728  			return
   729  		}
   730  		s.Where(sql.NotIn(s.C(FieldURL), v...))
   731  	})
   732  }
   733  
   734  // URLGT applies the GT predicate on the "url" field.
   735  func URLGT(v string) predicate.User {
   736  	return predicate.User(func(s *sql.Selector) {
   737  		s.Where(sql.GT(s.C(FieldURL), v))
   738  	})
   739  }
   740  
   741  // URLGTE applies the GTE predicate on the "url" field.
   742  func URLGTE(v string) predicate.User {
   743  	return predicate.User(func(s *sql.Selector) {
   744  		s.Where(sql.GTE(s.C(FieldURL), v))
   745  	})
   746  }
   747  
   748  // URLLT applies the LT predicate on the "url" field.
   749  func URLLT(v string) predicate.User {
   750  	return predicate.User(func(s *sql.Selector) {
   751  		s.Where(sql.LT(s.C(FieldURL), v))
   752  	})
   753  }
   754  
   755  // URLLTE applies the LTE predicate on the "url" field.
   756  func URLLTE(v string) predicate.User {
   757  	return predicate.User(func(s *sql.Selector) {
   758  		s.Where(sql.LTE(s.C(FieldURL), v))
   759  	})
   760  }
   761  
   762  // URLContains applies the Contains predicate on the "url" field.
   763  func URLContains(v string) predicate.User {
   764  	return predicate.User(func(s *sql.Selector) {
   765  		s.Where(sql.Contains(s.C(FieldURL), v))
   766  	})
   767  }
   768  
   769  // URLHasPrefix applies the HasPrefix predicate on the "url" field.
   770  func URLHasPrefix(v string) predicate.User {
   771  	return predicate.User(func(s *sql.Selector) {
   772  		s.Where(sql.HasPrefix(s.C(FieldURL), v))
   773  	})
   774  }
   775  
   776  // URLHasSuffix applies the HasSuffix predicate on the "url" field.
   777  func URLHasSuffix(v string) predicate.User {
   778  	return predicate.User(func(s *sql.Selector) {
   779  		s.Where(sql.HasSuffix(s.C(FieldURL), v))
   780  	})
   781  }
   782  
   783  // URLIsNil applies the IsNil predicate on the "url" field.
   784  func URLIsNil() predicate.User {
   785  	return predicate.User(func(s *sql.Selector) {
   786  		s.Where(sql.IsNull(s.C(FieldURL)))
   787  	})
   788  }
   789  
   790  // URLNotNil applies the NotNil predicate on the "url" field.
   791  func URLNotNil() predicate.User {
   792  	return predicate.User(func(s *sql.Selector) {
   793  		s.Where(sql.NotNull(s.C(FieldURL)))
   794  	})
   795  }
   796  
   797  // URLEqualFold applies the EqualFold predicate on the "url" field.
   798  func URLEqualFold(v string) predicate.User {
   799  	return predicate.User(func(s *sql.Selector) {
   800  		s.Where(sql.EqualFold(s.C(FieldURL), v))
   801  	})
   802  }
   803  
   804  // URLContainsFold applies the ContainsFold predicate on the "url" field.
   805  func URLContainsFold(v string) predicate.User {
   806  	return predicate.User(func(s *sql.Selector) {
   807  		s.Where(sql.ContainsFold(s.C(FieldURL), v))
   808  	})
   809  }
   810  
   811  // ProviderEQ applies the EQ predicate on the "provider" field.
   812  func ProviderEQ(v string) predicate.User {
   813  	return predicate.User(func(s *sql.Selector) {
   814  		s.Where(sql.EQ(s.C(FieldProvider), v))
   815  	})
   816  }
   817  
   818  // ProviderNEQ applies the NEQ predicate on the "provider" field.
   819  func ProviderNEQ(v string) predicate.User {
   820  	return predicate.User(func(s *sql.Selector) {
   821  		s.Where(sql.NEQ(s.C(FieldProvider), v))
   822  	})
   823  }
   824  
   825  // ProviderIn applies the In predicate on the "provider" field.
   826  func ProviderIn(vs ...string) predicate.User {
   827  	v := make([]interface{}, len(vs))
   828  	for i := range v {
   829  		v[i] = vs[i]
   830  	}
   831  	return predicate.User(func(s *sql.Selector) {
   832  		// if not arguments were provided, append the FALSE constants,
   833  		// since we can't apply "IN ()". This will make this predicate falsy.
   834  		if len(v) == 0 {
   835  			s.Where(sql.False())
   836  			return
   837  		}
   838  		s.Where(sql.In(s.C(FieldProvider), v...))
   839  	})
   840  }
   841  
   842  // ProviderNotIn applies the NotIn predicate on the "provider" field.
   843  func ProviderNotIn(vs ...string) predicate.User {
   844  	v := make([]interface{}, len(vs))
   845  	for i := range v {
   846  		v[i] = vs[i]
   847  	}
   848  	return predicate.User(func(s *sql.Selector) {
   849  		// if not arguments were provided, append the FALSE constants,
   850  		// since we can't apply "IN ()". This will make this predicate falsy.
   851  		if len(v) == 0 {
   852  			s.Where(sql.False())
   853  			return
   854  		}
   855  		s.Where(sql.NotIn(s.C(FieldProvider), v...))
   856  	})
   857  }
   858  
   859  // ProviderGT applies the GT predicate on the "provider" field.
   860  func ProviderGT(v string) predicate.User {
   861  	return predicate.User(func(s *sql.Selector) {
   862  		s.Where(sql.GT(s.C(FieldProvider), v))
   863  	})
   864  }
   865  
   866  // ProviderGTE applies the GTE predicate on the "provider" field.
   867  func ProviderGTE(v string) predicate.User {
   868  	return predicate.User(func(s *sql.Selector) {
   869  		s.Where(sql.GTE(s.C(FieldProvider), v))
   870  	})
   871  }
   872  
   873  // ProviderLT applies the LT predicate on the "provider" field.
   874  func ProviderLT(v string) predicate.User {
   875  	return predicate.User(func(s *sql.Selector) {
   876  		s.Where(sql.LT(s.C(FieldProvider), v))
   877  	})
   878  }
   879  
   880  // ProviderLTE applies the LTE predicate on the "provider" field.
   881  func ProviderLTE(v string) predicate.User {
   882  	return predicate.User(func(s *sql.Selector) {
   883  		s.Where(sql.LTE(s.C(FieldProvider), v))
   884  	})
   885  }
   886  
   887  // ProviderContains applies the Contains predicate on the "provider" field.
   888  func ProviderContains(v string) predicate.User {
   889  	return predicate.User(func(s *sql.Selector) {
   890  		s.Where(sql.Contains(s.C(FieldProvider), v))
   891  	})
   892  }
   893  
   894  // ProviderHasPrefix applies the HasPrefix predicate on the "provider" field.
   895  func ProviderHasPrefix(v string) predicate.User {
   896  	return predicate.User(func(s *sql.Selector) {
   897  		s.Where(sql.HasPrefix(s.C(FieldProvider), v))
   898  	})
   899  }
   900  
   901  // ProviderHasSuffix applies the HasSuffix predicate on the "provider" field.
   902  func ProviderHasSuffix(v string) predicate.User {
   903  	return predicate.User(func(s *sql.Selector) {
   904  		s.Where(sql.HasSuffix(s.C(FieldProvider), v))
   905  	})
   906  }
   907  
   908  // ProviderIsNil applies the IsNil predicate on the "provider" field.
   909  func ProviderIsNil() predicate.User {
   910  	return predicate.User(func(s *sql.Selector) {
   911  		s.Where(sql.IsNull(s.C(FieldProvider)))
   912  	})
   913  }
   914  
   915  // ProviderNotNil applies the NotNil predicate on the "provider" field.
   916  func ProviderNotNil() predicate.User {
   917  	return predicate.User(func(s *sql.Selector) {
   918  		s.Where(sql.NotNull(s.C(FieldProvider)))
   919  	})
   920  }
   921  
   922  // ProviderEqualFold applies the EqualFold predicate on the "provider" field.
   923  func ProviderEqualFold(v string) predicate.User {
   924  	return predicate.User(func(s *sql.Selector) {
   925  		s.Where(sql.EqualFold(s.C(FieldProvider), v))
   926  	})
   927  }
   928  
   929  // ProviderContainsFold applies the ContainsFold predicate on the "provider" field.
   930  func ProviderContainsFold(v string) predicate.User {
   931  	return predicate.User(func(s *sql.Selector) {
   932  		s.Where(sql.ContainsFold(s.C(FieldProvider), v))
   933  	})
   934  }
   935  
   936  // ProviderIDEQ applies the EQ predicate on the "provider_id" field.
   937  func ProviderIDEQ(v string) predicate.User {
   938  	return predicate.User(func(s *sql.Selector) {
   939  		s.Where(sql.EQ(s.C(FieldProviderID), v))
   940  	})
   941  }
   942  
   943  // ProviderIDNEQ applies the NEQ predicate on the "provider_id" field.
   944  func ProviderIDNEQ(v string) predicate.User {
   945  	return predicate.User(func(s *sql.Selector) {
   946  		s.Where(sql.NEQ(s.C(FieldProviderID), v))
   947  	})
   948  }
   949  
   950  // ProviderIDIn applies the In predicate on the "provider_id" field.
   951  func ProviderIDIn(vs ...string) predicate.User {
   952  	v := make([]interface{}, len(vs))
   953  	for i := range v {
   954  		v[i] = vs[i]
   955  	}
   956  	return predicate.User(func(s *sql.Selector) {
   957  		// if not arguments were provided, append the FALSE constants,
   958  		// since we can't apply "IN ()". This will make this predicate falsy.
   959  		if len(v) == 0 {
   960  			s.Where(sql.False())
   961  			return
   962  		}
   963  		s.Where(sql.In(s.C(FieldProviderID), v...))
   964  	})
   965  }
   966  
   967  // ProviderIDNotIn applies the NotIn predicate on the "provider_id" field.
   968  func ProviderIDNotIn(vs ...string) predicate.User {
   969  	v := make([]interface{}, len(vs))
   970  	for i := range v {
   971  		v[i] = vs[i]
   972  	}
   973  	return predicate.User(func(s *sql.Selector) {
   974  		// if not arguments were provided, append the FALSE constants,
   975  		// since we can't apply "IN ()". This will make this predicate falsy.
   976  		if len(v) == 0 {
   977  			s.Where(sql.False())
   978  			return
   979  		}
   980  		s.Where(sql.NotIn(s.C(FieldProviderID), v...))
   981  	})
   982  }
   983  
   984  // ProviderIDGT applies the GT predicate on the "provider_id" field.
   985  func ProviderIDGT(v string) predicate.User {
   986  	return predicate.User(func(s *sql.Selector) {
   987  		s.Where(sql.GT(s.C(FieldProviderID), v))
   988  	})
   989  }
   990  
   991  // ProviderIDGTE applies the GTE predicate on the "provider_id" field.
   992  func ProviderIDGTE(v string) predicate.User {
   993  	return predicate.User(func(s *sql.Selector) {
   994  		s.Where(sql.GTE(s.C(FieldProviderID), v))
   995  	})
   996  }
   997  
   998  // ProviderIDLT applies the LT predicate on the "provider_id" field.
   999  func ProviderIDLT(v string) predicate.User {
  1000  	return predicate.User(func(s *sql.Selector) {
  1001  		s.Where(sql.LT(s.C(FieldProviderID), v))
  1002  	})
  1003  }
  1004  
  1005  // ProviderIDLTE applies the LTE predicate on the "provider_id" field.
  1006  func ProviderIDLTE(v string) predicate.User {
  1007  	return predicate.User(func(s *sql.Selector) {
  1008  		s.Where(sql.LTE(s.C(FieldProviderID), v))
  1009  	})
  1010  }
  1011  
  1012  // ProviderIDContains applies the Contains predicate on the "provider_id" field.
  1013  func ProviderIDContains(v string) predicate.User {
  1014  	return predicate.User(func(s *sql.Selector) {
  1015  		s.Where(sql.Contains(s.C(FieldProviderID), v))
  1016  	})
  1017  }
  1018  
  1019  // ProviderIDHasPrefix applies the HasPrefix predicate on the "provider_id" field.
  1020  func ProviderIDHasPrefix(v string) predicate.User {
  1021  	return predicate.User(func(s *sql.Selector) {
  1022  		s.Where(sql.HasPrefix(s.C(FieldProviderID), v))
  1023  	})
  1024  }
  1025  
  1026  // ProviderIDHasSuffix applies the HasSuffix predicate on the "provider_id" field.
  1027  func ProviderIDHasSuffix(v string) predicate.User {
  1028  	return predicate.User(func(s *sql.Selector) {
  1029  		s.Where(sql.HasSuffix(s.C(FieldProviderID), v))
  1030  	})
  1031  }
  1032  
  1033  // ProviderIDIsNil applies the IsNil predicate on the "provider_id" field.
  1034  func ProviderIDIsNil() predicate.User {
  1035  	return predicate.User(func(s *sql.Selector) {
  1036  		s.Where(sql.IsNull(s.C(FieldProviderID)))
  1037  	})
  1038  }
  1039  
  1040  // ProviderIDNotNil applies the NotNil predicate on the "provider_id" field.
  1041  func ProviderIDNotNil() predicate.User {
  1042  	return predicate.User(func(s *sql.Selector) {
  1043  		s.Where(sql.NotNull(s.C(FieldProviderID)))
  1044  	})
  1045  }
  1046  
  1047  // ProviderIDEqualFold applies the EqualFold predicate on the "provider_id" field.
  1048  func ProviderIDEqualFold(v string) predicate.User {
  1049  	return predicate.User(func(s *sql.Selector) {
  1050  		s.Where(sql.EqualFold(s.C(FieldProviderID), v))
  1051  	})
  1052  }
  1053  
  1054  // ProviderIDContainsFold applies the ContainsFold predicate on the "provider_id" field.
  1055  func ProviderIDContainsFold(v string) predicate.User {
  1056  	return predicate.User(func(s *sql.Selector) {
  1057  		s.Where(sql.ContainsFold(s.C(FieldProviderID), v))
  1058  	})
  1059  }
  1060  
  1061  // ProviderUsernameEQ applies the EQ predicate on the "provider_username" field.
  1062  func ProviderUsernameEQ(v string) predicate.User {
  1063  	return predicate.User(func(s *sql.Selector) {
  1064  		s.Where(sql.EQ(s.C(FieldProviderUsername), v))
  1065  	})
  1066  }
  1067  
  1068  // ProviderUsernameNEQ applies the NEQ predicate on the "provider_username" field.
  1069  func ProviderUsernameNEQ(v string) predicate.User {
  1070  	return predicate.User(func(s *sql.Selector) {
  1071  		s.Where(sql.NEQ(s.C(FieldProviderUsername), v))
  1072  	})
  1073  }
  1074  
  1075  // ProviderUsernameIn applies the In predicate on the "provider_username" field.
  1076  func ProviderUsernameIn(vs ...string) predicate.User {
  1077  	v := make([]interface{}, len(vs))
  1078  	for i := range v {
  1079  		v[i] = vs[i]
  1080  	}
  1081  	return predicate.User(func(s *sql.Selector) {
  1082  		// if not arguments were provided, append the FALSE constants,
  1083  		// since we can't apply "IN ()". This will make this predicate falsy.
  1084  		if len(v) == 0 {
  1085  			s.Where(sql.False())
  1086  			return
  1087  		}
  1088  		s.Where(sql.In(s.C(FieldProviderUsername), v...))
  1089  	})
  1090  }
  1091  
  1092  // ProviderUsernameNotIn applies the NotIn predicate on the "provider_username" field.
  1093  func ProviderUsernameNotIn(vs ...string) predicate.User {
  1094  	v := make([]interface{}, len(vs))
  1095  	for i := range v {
  1096  		v[i] = vs[i]
  1097  	}
  1098  	return predicate.User(func(s *sql.Selector) {
  1099  		// if not arguments were provided, append the FALSE constants,
  1100  		// since we can't apply "IN ()". This will make this predicate falsy.
  1101  		if len(v) == 0 {
  1102  			s.Where(sql.False())
  1103  			return
  1104  		}
  1105  		s.Where(sql.NotIn(s.C(FieldProviderUsername), v...))
  1106  	})
  1107  }
  1108  
  1109  // ProviderUsernameGT applies the GT predicate on the "provider_username" field.
  1110  func ProviderUsernameGT(v string) predicate.User {
  1111  	return predicate.User(func(s *sql.Selector) {
  1112  		s.Where(sql.GT(s.C(FieldProviderUsername), v))
  1113  	})
  1114  }
  1115  
  1116  // ProviderUsernameGTE applies the GTE predicate on the "provider_username" field.
  1117  func ProviderUsernameGTE(v string) predicate.User {
  1118  	return predicate.User(func(s *sql.Selector) {
  1119  		s.Where(sql.GTE(s.C(FieldProviderUsername), v))
  1120  	})
  1121  }
  1122  
  1123  // ProviderUsernameLT applies the LT predicate on the "provider_username" field.
  1124  func ProviderUsernameLT(v string) predicate.User {
  1125  	return predicate.User(func(s *sql.Selector) {
  1126  		s.Where(sql.LT(s.C(FieldProviderUsername), v))
  1127  	})
  1128  }
  1129  
  1130  // ProviderUsernameLTE applies the LTE predicate on the "provider_username" field.
  1131  func ProviderUsernameLTE(v string) predicate.User {
  1132  	return predicate.User(func(s *sql.Selector) {
  1133  		s.Where(sql.LTE(s.C(FieldProviderUsername), v))
  1134  	})
  1135  }
  1136  
  1137  // ProviderUsernameContains applies the Contains predicate on the "provider_username" field.
  1138  func ProviderUsernameContains(v string) predicate.User {
  1139  	return predicate.User(func(s *sql.Selector) {
  1140  		s.Where(sql.Contains(s.C(FieldProviderUsername), v))
  1141  	})
  1142  }
  1143  
  1144  // ProviderUsernameHasPrefix applies the HasPrefix predicate on the "provider_username" field.
  1145  func ProviderUsernameHasPrefix(v string) predicate.User {
  1146  	return predicate.User(func(s *sql.Selector) {
  1147  		s.Where(sql.HasPrefix(s.C(FieldProviderUsername), v))
  1148  	})
  1149  }
  1150  
  1151  // ProviderUsernameHasSuffix applies the HasSuffix predicate on the "provider_username" field.
  1152  func ProviderUsernameHasSuffix(v string) predicate.User {
  1153  	return predicate.User(func(s *sql.Selector) {
  1154  		s.Where(sql.HasSuffix(s.C(FieldProviderUsername), v))
  1155  	})
  1156  }
  1157  
  1158  // ProviderUsernameIsNil applies the IsNil predicate on the "provider_username" field.
  1159  func ProviderUsernameIsNil() predicate.User {
  1160  	return predicate.User(func(s *sql.Selector) {
  1161  		s.Where(sql.IsNull(s.C(FieldProviderUsername)))
  1162  	})
  1163  }
  1164  
  1165  // ProviderUsernameNotNil applies the NotNil predicate on the "provider_username" field.
  1166  func ProviderUsernameNotNil() predicate.User {
  1167  	return predicate.User(func(s *sql.Selector) {
  1168  		s.Where(sql.NotNull(s.C(FieldProviderUsername)))
  1169  	})
  1170  }
  1171  
  1172  // ProviderUsernameEqualFold applies the EqualFold predicate on the "provider_username" field.
  1173  func ProviderUsernameEqualFold(v string) predicate.User {
  1174  	return predicate.User(func(s *sql.Selector) {
  1175  		s.Where(sql.EqualFold(s.C(FieldProviderUsername), v))
  1176  	})
  1177  }
  1178  
  1179  // ProviderUsernameContainsFold applies the ContainsFold predicate on the "provider_username" field.
  1180  func ProviderUsernameContainsFold(v string) predicate.User {
  1181  	return predicate.User(func(s *sql.Selector) {
  1182  		s.Where(sql.ContainsFold(s.C(FieldProviderUsername), v))
  1183  	})
  1184  }
  1185  
  1186  // ProviderAvatarEQ applies the EQ predicate on the "provider_avatar" field.
  1187  func ProviderAvatarEQ(v string) predicate.User {
  1188  	return predicate.User(func(s *sql.Selector) {
  1189  		s.Where(sql.EQ(s.C(FieldProviderAvatar), v))
  1190  	})
  1191  }
  1192  
  1193  // ProviderAvatarNEQ applies the NEQ predicate on the "provider_avatar" field.
  1194  func ProviderAvatarNEQ(v string) predicate.User {
  1195  	return predicate.User(func(s *sql.Selector) {
  1196  		s.Where(sql.NEQ(s.C(FieldProviderAvatar), v))
  1197  	})
  1198  }
  1199  
  1200  // ProviderAvatarIn applies the In predicate on the "provider_avatar" field.
  1201  func ProviderAvatarIn(vs ...string) predicate.User {
  1202  	v := make([]interface{}, len(vs))
  1203  	for i := range v {
  1204  		v[i] = vs[i]
  1205  	}
  1206  	return predicate.User(func(s *sql.Selector) {
  1207  		// if not arguments were provided, append the FALSE constants,
  1208  		// since we can't apply "IN ()". This will make this predicate falsy.
  1209  		if len(v) == 0 {
  1210  			s.Where(sql.False())
  1211  			return
  1212  		}
  1213  		s.Where(sql.In(s.C(FieldProviderAvatar), v...))
  1214  	})
  1215  }
  1216  
  1217  // ProviderAvatarNotIn applies the NotIn predicate on the "provider_avatar" field.
  1218  func ProviderAvatarNotIn(vs ...string) predicate.User {
  1219  	v := make([]interface{}, len(vs))
  1220  	for i := range v {
  1221  		v[i] = vs[i]
  1222  	}
  1223  	return predicate.User(func(s *sql.Selector) {
  1224  		// if not arguments were provided, append the FALSE constants,
  1225  		// since we can't apply "IN ()". This will make this predicate falsy.
  1226  		if len(v) == 0 {
  1227  			s.Where(sql.False())
  1228  			return
  1229  		}
  1230  		s.Where(sql.NotIn(s.C(FieldProviderAvatar), v...))
  1231  	})
  1232  }
  1233  
  1234  // ProviderAvatarGT applies the GT predicate on the "provider_avatar" field.
  1235  func ProviderAvatarGT(v string) predicate.User {
  1236  	return predicate.User(func(s *sql.Selector) {
  1237  		s.Where(sql.GT(s.C(FieldProviderAvatar), v))
  1238  	})
  1239  }
  1240  
  1241  // ProviderAvatarGTE applies the GTE predicate on the "provider_avatar" field.
  1242  func ProviderAvatarGTE(v string) predicate.User {
  1243  	return predicate.User(func(s *sql.Selector) {
  1244  		s.Where(sql.GTE(s.C(FieldProviderAvatar), v))
  1245  	})
  1246  }
  1247  
  1248  // ProviderAvatarLT applies the LT predicate on the "provider_avatar" field.
  1249  func ProviderAvatarLT(v string) predicate.User {
  1250  	return predicate.User(func(s *sql.Selector) {
  1251  		s.Where(sql.LT(s.C(FieldProviderAvatar), v))
  1252  	})
  1253  }
  1254  
  1255  // ProviderAvatarLTE applies the LTE predicate on the "provider_avatar" field.
  1256  func ProviderAvatarLTE(v string) predicate.User {
  1257  	return predicate.User(func(s *sql.Selector) {
  1258  		s.Where(sql.LTE(s.C(FieldProviderAvatar), v))
  1259  	})
  1260  }
  1261  
  1262  // ProviderAvatarContains applies the Contains predicate on the "provider_avatar" field.
  1263  func ProviderAvatarContains(v string) predicate.User {
  1264  	return predicate.User(func(s *sql.Selector) {
  1265  		s.Where(sql.Contains(s.C(FieldProviderAvatar), v))
  1266  	})
  1267  }
  1268  
  1269  // ProviderAvatarHasPrefix applies the HasPrefix predicate on the "provider_avatar" field.
  1270  func ProviderAvatarHasPrefix(v string) predicate.User {
  1271  	return predicate.User(func(s *sql.Selector) {
  1272  		s.Where(sql.HasPrefix(s.C(FieldProviderAvatar), v))
  1273  	})
  1274  }
  1275  
  1276  // ProviderAvatarHasSuffix applies the HasSuffix predicate on the "provider_avatar" field.
  1277  func ProviderAvatarHasSuffix(v string) predicate.User {
  1278  	return predicate.User(func(s *sql.Selector) {
  1279  		s.Where(sql.HasSuffix(s.C(FieldProviderAvatar), v))
  1280  	})
  1281  }
  1282  
  1283  // ProviderAvatarIsNil applies the IsNil predicate on the "provider_avatar" field.
  1284  func ProviderAvatarIsNil() predicate.User {
  1285  	return predicate.User(func(s *sql.Selector) {
  1286  		s.Where(sql.IsNull(s.C(FieldProviderAvatar)))
  1287  	})
  1288  }
  1289  
  1290  // ProviderAvatarNotNil applies the NotNil predicate on the "provider_avatar" field.
  1291  func ProviderAvatarNotNil() predicate.User {
  1292  	return predicate.User(func(s *sql.Selector) {
  1293  		s.Where(sql.NotNull(s.C(FieldProviderAvatar)))
  1294  	})
  1295  }
  1296  
  1297  // ProviderAvatarEqualFold applies the EqualFold predicate on the "provider_avatar" field.
  1298  func ProviderAvatarEqualFold(v string) predicate.User {
  1299  	return predicate.User(func(s *sql.Selector) {
  1300  		s.Where(sql.EqualFold(s.C(FieldProviderAvatar), v))
  1301  	})
  1302  }
  1303  
  1304  // ProviderAvatarContainsFold applies the ContainsFold predicate on the "provider_avatar" field.
  1305  func ProviderAvatarContainsFold(v string) predicate.User {
  1306  	return predicate.User(func(s *sql.Selector) {
  1307  		s.Where(sql.ContainsFold(s.C(FieldProviderAvatar), v))
  1308  	})
  1309  }
  1310  
  1311  // EmailEQ applies the EQ predicate on the "email" field.
  1312  func EmailEQ(v string) predicate.User {
  1313  	return predicate.User(func(s *sql.Selector) {
  1314  		s.Where(sql.EQ(s.C(FieldEmail), v))
  1315  	})
  1316  }
  1317  
  1318  // EmailNEQ applies the NEQ predicate on the "email" field.
  1319  func EmailNEQ(v string) predicate.User {
  1320  	return predicate.User(func(s *sql.Selector) {
  1321  		s.Where(sql.NEQ(s.C(FieldEmail), v))
  1322  	})
  1323  }
  1324  
  1325  // EmailIn applies the In predicate on the "email" field.
  1326  func EmailIn(vs ...string) predicate.User {
  1327  	v := make([]interface{}, len(vs))
  1328  	for i := range v {
  1329  		v[i] = vs[i]
  1330  	}
  1331  	return predicate.User(func(s *sql.Selector) {
  1332  		// if not arguments were provided, append the FALSE constants,
  1333  		// since we can't apply "IN ()". This will make this predicate falsy.
  1334  		if len(v) == 0 {
  1335  			s.Where(sql.False())
  1336  			return
  1337  		}
  1338  		s.Where(sql.In(s.C(FieldEmail), v...))
  1339  	})
  1340  }
  1341  
  1342  // EmailNotIn applies the NotIn predicate on the "email" field.
  1343  func EmailNotIn(vs ...string) predicate.User {
  1344  	v := make([]interface{}, len(vs))
  1345  	for i := range v {
  1346  		v[i] = vs[i]
  1347  	}
  1348  	return predicate.User(func(s *sql.Selector) {
  1349  		// if not arguments were provided, append the FALSE constants,
  1350  		// since we can't apply "IN ()". This will make this predicate falsy.
  1351  		if len(v) == 0 {
  1352  			s.Where(sql.False())
  1353  			return
  1354  		}
  1355  		s.Where(sql.NotIn(s.C(FieldEmail), v...))
  1356  	})
  1357  }
  1358  
  1359  // EmailGT applies the GT predicate on the "email" field.
  1360  func EmailGT(v string) predicate.User {
  1361  	return predicate.User(func(s *sql.Selector) {
  1362  		s.Where(sql.GT(s.C(FieldEmail), v))
  1363  	})
  1364  }
  1365  
  1366  // EmailGTE applies the GTE predicate on the "email" field.
  1367  func EmailGTE(v string) predicate.User {
  1368  	return predicate.User(func(s *sql.Selector) {
  1369  		s.Where(sql.GTE(s.C(FieldEmail), v))
  1370  	})
  1371  }
  1372  
  1373  // EmailLT applies the LT predicate on the "email" field.
  1374  func EmailLT(v string) predicate.User {
  1375  	return predicate.User(func(s *sql.Selector) {
  1376  		s.Where(sql.LT(s.C(FieldEmail), v))
  1377  	})
  1378  }
  1379  
  1380  // EmailLTE applies the LTE predicate on the "email" field.
  1381  func EmailLTE(v string) predicate.User {
  1382  	return predicate.User(func(s *sql.Selector) {
  1383  		s.Where(sql.LTE(s.C(FieldEmail), v))
  1384  	})
  1385  }
  1386  
  1387  // EmailContains applies the Contains predicate on the "email" field.
  1388  func EmailContains(v string) predicate.User {
  1389  	return predicate.User(func(s *sql.Selector) {
  1390  		s.Where(sql.Contains(s.C(FieldEmail), v))
  1391  	})
  1392  }
  1393  
  1394  // EmailHasPrefix applies the HasPrefix predicate on the "email" field.
  1395  func EmailHasPrefix(v string) predicate.User {
  1396  	return predicate.User(func(s *sql.Selector) {
  1397  		s.Where(sql.HasPrefix(s.C(FieldEmail), v))
  1398  	})
  1399  }
  1400  
  1401  // EmailHasSuffix applies the HasSuffix predicate on the "email" field.
  1402  func EmailHasSuffix(v string) predicate.User {
  1403  	return predicate.User(func(s *sql.Selector) {
  1404  		s.Where(sql.HasSuffix(s.C(FieldEmail), v))
  1405  	})
  1406  }
  1407  
  1408  // EmailIsNil applies the IsNil predicate on the "email" field.
  1409  func EmailIsNil() predicate.User {
  1410  	return predicate.User(func(s *sql.Selector) {
  1411  		s.Where(sql.IsNull(s.C(FieldEmail)))
  1412  	})
  1413  }
  1414  
  1415  // EmailNotNil applies the NotNil predicate on the "email" field.
  1416  func EmailNotNil() predicate.User {
  1417  	return predicate.User(func(s *sql.Selector) {
  1418  		s.Where(sql.NotNull(s.C(FieldEmail)))
  1419  	})
  1420  }
  1421  
  1422  // EmailEqualFold applies the EqualFold predicate on the "email" field.
  1423  func EmailEqualFold(v string) predicate.User {
  1424  	return predicate.User(func(s *sql.Selector) {
  1425  		s.Where(sql.EqualFold(s.C(FieldEmail), v))
  1426  	})
  1427  }
  1428  
  1429  // EmailContainsFold applies the ContainsFold predicate on the "email" field.
  1430  func EmailContainsFold(v string) predicate.User {
  1431  	return predicate.User(func(s *sql.Selector) {
  1432  		s.Where(sql.ContainsFold(s.C(FieldEmail), v))
  1433  	})
  1434  }
  1435  
  1436  // PasswordEQ applies the EQ predicate on the "password" field.
  1437  func PasswordEQ(v string) predicate.User {
  1438  	return predicate.User(func(s *sql.Selector) {
  1439  		s.Where(sql.EQ(s.C(FieldPassword), v))
  1440  	})
  1441  }
  1442  
  1443  // PasswordNEQ applies the NEQ predicate on the "password" field.
  1444  func PasswordNEQ(v string) predicate.User {
  1445  	return predicate.User(func(s *sql.Selector) {
  1446  		s.Where(sql.NEQ(s.C(FieldPassword), v))
  1447  	})
  1448  }
  1449  
  1450  // PasswordIn applies the In predicate on the "password" field.
  1451  func PasswordIn(vs ...string) predicate.User {
  1452  	v := make([]interface{}, len(vs))
  1453  	for i := range v {
  1454  		v[i] = vs[i]
  1455  	}
  1456  	return predicate.User(func(s *sql.Selector) {
  1457  		// if not arguments were provided, append the FALSE constants,
  1458  		// since we can't apply "IN ()". This will make this predicate falsy.
  1459  		if len(v) == 0 {
  1460  			s.Where(sql.False())
  1461  			return
  1462  		}
  1463  		s.Where(sql.In(s.C(FieldPassword), v...))
  1464  	})
  1465  }
  1466  
  1467  // PasswordNotIn applies the NotIn predicate on the "password" field.
  1468  func PasswordNotIn(vs ...string) predicate.User {
  1469  	v := make([]interface{}, len(vs))
  1470  	for i := range v {
  1471  		v[i] = vs[i]
  1472  	}
  1473  	return predicate.User(func(s *sql.Selector) {
  1474  		// if not arguments were provided, append the FALSE constants,
  1475  		// since we can't apply "IN ()". This will make this predicate falsy.
  1476  		if len(v) == 0 {
  1477  			s.Where(sql.False())
  1478  			return
  1479  		}
  1480  		s.Where(sql.NotIn(s.C(FieldPassword), v...))
  1481  	})
  1482  }
  1483  
  1484  // PasswordGT applies the GT predicate on the "password" field.
  1485  func PasswordGT(v string) predicate.User {
  1486  	return predicate.User(func(s *sql.Selector) {
  1487  		s.Where(sql.GT(s.C(FieldPassword), v))
  1488  	})
  1489  }
  1490  
  1491  // PasswordGTE applies the GTE predicate on the "password" field.
  1492  func PasswordGTE(v string) predicate.User {
  1493  	return predicate.User(func(s *sql.Selector) {
  1494  		s.Where(sql.GTE(s.C(FieldPassword), v))
  1495  	})
  1496  }
  1497  
  1498  // PasswordLT applies the LT predicate on the "password" field.
  1499  func PasswordLT(v string) predicate.User {
  1500  	return predicate.User(func(s *sql.Selector) {
  1501  		s.Where(sql.LT(s.C(FieldPassword), v))
  1502  	})
  1503  }
  1504  
  1505  // PasswordLTE applies the LTE predicate on the "password" field.
  1506  func PasswordLTE(v string) predicate.User {
  1507  	return predicate.User(func(s *sql.Selector) {
  1508  		s.Where(sql.LTE(s.C(FieldPassword), v))
  1509  	})
  1510  }
  1511  
  1512  // PasswordContains applies the Contains predicate on the "password" field.
  1513  func PasswordContains(v string) predicate.User {
  1514  	return predicate.User(func(s *sql.Selector) {
  1515  		s.Where(sql.Contains(s.C(FieldPassword), v))
  1516  	})
  1517  }
  1518  
  1519  // PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
  1520  func PasswordHasPrefix(v string) predicate.User {
  1521  	return predicate.User(func(s *sql.Selector) {
  1522  		s.Where(sql.HasPrefix(s.C(FieldPassword), v))
  1523  	})
  1524  }
  1525  
  1526  // PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
  1527  func PasswordHasSuffix(v string) predicate.User {
  1528  	return predicate.User(func(s *sql.Selector) {
  1529  		s.Where(sql.HasSuffix(s.C(FieldPassword), v))
  1530  	})
  1531  }
  1532  
  1533  // PasswordIsNil applies the IsNil predicate on the "password" field.
  1534  func PasswordIsNil() predicate.User {
  1535  	return predicate.User(func(s *sql.Selector) {
  1536  		s.Where(sql.IsNull(s.C(FieldPassword)))
  1537  	})
  1538  }
  1539  
  1540  // PasswordNotNil applies the NotNil predicate on the "password" field.
  1541  func PasswordNotNil() predicate.User {
  1542  	return predicate.User(func(s *sql.Selector) {
  1543  		s.Where(sql.NotNull(s.C(FieldPassword)))
  1544  	})
  1545  }
  1546  
  1547  // PasswordEqualFold applies the EqualFold predicate on the "password" field.
  1548  func PasswordEqualFold(v string) predicate.User {
  1549  	return predicate.User(func(s *sql.Selector) {
  1550  		s.Where(sql.EqualFold(s.C(FieldPassword), v))
  1551  	})
  1552  }
  1553  
  1554  // PasswordContainsFold applies the ContainsFold predicate on the "password" field.
  1555  func PasswordContainsFold(v string) predicate.User {
  1556  	return predicate.User(func(s *sql.Selector) {
  1557  		s.Where(sql.ContainsFold(s.C(FieldPassword), v))
  1558  	})
  1559  }
  1560  
  1561  // BioEQ applies the EQ predicate on the "bio" field.
  1562  func BioEQ(v string) predicate.User {
  1563  	return predicate.User(func(s *sql.Selector) {
  1564  		s.Where(sql.EQ(s.C(FieldBio), v))
  1565  	})
  1566  }
  1567  
  1568  // BioNEQ applies the NEQ predicate on the "bio" field.
  1569  func BioNEQ(v string) predicate.User {
  1570  	return predicate.User(func(s *sql.Selector) {
  1571  		s.Where(sql.NEQ(s.C(FieldBio), v))
  1572  	})
  1573  }
  1574  
  1575  // BioIn applies the In predicate on the "bio" field.
  1576  func BioIn(vs ...string) predicate.User {
  1577  	v := make([]interface{}, len(vs))
  1578  	for i := range v {
  1579  		v[i] = vs[i]
  1580  	}
  1581  	return predicate.User(func(s *sql.Selector) {
  1582  		// if not arguments were provided, append the FALSE constants,
  1583  		// since we can't apply "IN ()". This will make this predicate falsy.
  1584  		if len(v) == 0 {
  1585  			s.Where(sql.False())
  1586  			return
  1587  		}
  1588  		s.Where(sql.In(s.C(FieldBio), v...))
  1589  	})
  1590  }
  1591  
  1592  // BioNotIn applies the NotIn predicate on the "bio" field.
  1593  func BioNotIn(vs ...string) predicate.User {
  1594  	v := make([]interface{}, len(vs))
  1595  	for i := range v {
  1596  		v[i] = vs[i]
  1597  	}
  1598  	return predicate.User(func(s *sql.Selector) {
  1599  		// if not arguments were provided, append the FALSE constants,
  1600  		// since we can't apply "IN ()". This will make this predicate falsy.
  1601  		if len(v) == 0 {
  1602  			s.Where(sql.False())
  1603  			return
  1604  		}
  1605  		s.Where(sql.NotIn(s.C(FieldBio), v...))
  1606  	})
  1607  }
  1608  
  1609  // BioGT applies the GT predicate on the "bio" field.
  1610  func BioGT(v string) predicate.User {
  1611  	return predicate.User(func(s *sql.Selector) {
  1612  		s.Where(sql.GT(s.C(FieldBio), v))
  1613  	})
  1614  }
  1615  
  1616  // BioGTE applies the GTE predicate on the "bio" field.
  1617  func BioGTE(v string) predicate.User {
  1618  	return predicate.User(func(s *sql.Selector) {
  1619  		s.Where(sql.GTE(s.C(FieldBio), v))
  1620  	})
  1621  }
  1622  
  1623  // BioLT applies the LT predicate on the "bio" field.
  1624  func BioLT(v string) predicate.User {
  1625  	return predicate.User(func(s *sql.Selector) {
  1626  		s.Where(sql.LT(s.C(FieldBio), v))
  1627  	})
  1628  }
  1629  
  1630  // BioLTE applies the LTE predicate on the "bio" field.
  1631  func BioLTE(v string) predicate.User {
  1632  	return predicate.User(func(s *sql.Selector) {
  1633  		s.Where(sql.LTE(s.C(FieldBio), v))
  1634  	})
  1635  }
  1636  
  1637  // BioContains applies the Contains predicate on the "bio" field.
  1638  func BioContains(v string) predicate.User {
  1639  	return predicate.User(func(s *sql.Selector) {
  1640  		s.Where(sql.Contains(s.C(FieldBio), v))
  1641  	})
  1642  }
  1643  
  1644  // BioHasPrefix applies the HasPrefix predicate on the "bio" field.
  1645  func BioHasPrefix(v string) predicate.User {
  1646  	return predicate.User(func(s *sql.Selector) {
  1647  		s.Where(sql.HasPrefix(s.C(FieldBio), v))
  1648  	})
  1649  }
  1650  
  1651  // BioHasSuffix applies the HasSuffix predicate on the "bio" field.
  1652  func BioHasSuffix(v string) predicate.User {
  1653  	return predicate.User(func(s *sql.Selector) {
  1654  		s.Where(sql.HasSuffix(s.C(FieldBio), v))
  1655  	})
  1656  }
  1657  
  1658  // BioIsNil applies the IsNil predicate on the "bio" field.
  1659  func BioIsNil() predicate.User {
  1660  	return predicate.User(func(s *sql.Selector) {
  1661  		s.Where(sql.IsNull(s.C(FieldBio)))
  1662  	})
  1663  }
  1664  
  1665  // BioNotNil applies the NotNil predicate on the "bio" field.
  1666  func BioNotNil() predicate.User {
  1667  	return predicate.User(func(s *sql.Selector) {
  1668  		s.Where(sql.NotNull(s.C(FieldBio)))
  1669  	})
  1670  }
  1671  
  1672  // BioEqualFold applies the EqualFold predicate on the "bio" field.
  1673  func BioEqualFold(v string) predicate.User {
  1674  	return predicate.User(func(s *sql.Selector) {
  1675  		s.Where(sql.EqualFold(s.C(FieldBio), v))
  1676  	})
  1677  }
  1678  
  1679  // BioContainsFold applies the ContainsFold predicate on the "bio" field.
  1680  func BioContainsFold(v string) predicate.User {
  1681  	return predicate.User(func(s *sql.Selector) {
  1682  		s.Where(sql.ContainsFold(s.C(FieldBio), v))
  1683  	})
  1684  }
  1685  
  1686  // BioHTMLEQ applies the EQ predicate on the "bio_html" field.
  1687  func BioHTMLEQ(v string) predicate.User {
  1688  	return predicate.User(func(s *sql.Selector) {
  1689  		s.Where(sql.EQ(s.C(FieldBioHTML), v))
  1690  	})
  1691  }
  1692  
  1693  // BioHTMLNEQ applies the NEQ predicate on the "bio_html" field.
  1694  func BioHTMLNEQ(v string) predicate.User {
  1695  	return predicate.User(func(s *sql.Selector) {
  1696  		s.Where(sql.NEQ(s.C(FieldBioHTML), v))
  1697  	})
  1698  }
  1699  
  1700  // BioHTMLIn applies the In predicate on the "bio_html" field.
  1701  func BioHTMLIn(vs ...string) predicate.User {
  1702  	v := make([]interface{}, len(vs))
  1703  	for i := range v {
  1704  		v[i] = vs[i]
  1705  	}
  1706  	return predicate.User(func(s *sql.Selector) {
  1707  		// if not arguments were provided, append the FALSE constants,
  1708  		// since we can't apply "IN ()". This will make this predicate falsy.
  1709  		if len(v) == 0 {
  1710  			s.Where(sql.False())
  1711  			return
  1712  		}
  1713  		s.Where(sql.In(s.C(FieldBioHTML), v...))
  1714  	})
  1715  }
  1716  
  1717  // BioHTMLNotIn applies the NotIn predicate on the "bio_html" field.
  1718  func BioHTMLNotIn(vs ...string) predicate.User {
  1719  	v := make([]interface{}, len(vs))
  1720  	for i := range v {
  1721  		v[i] = vs[i]
  1722  	}
  1723  	return predicate.User(func(s *sql.Selector) {
  1724  		// if not arguments were provided, append the FALSE constants,
  1725  		// since we can't apply "IN ()". This will make this predicate falsy.
  1726  		if len(v) == 0 {
  1727  			s.Where(sql.False())
  1728  			return
  1729  		}
  1730  		s.Where(sql.NotIn(s.C(FieldBioHTML), v...))
  1731  	})
  1732  }
  1733  
  1734  // BioHTMLGT applies the GT predicate on the "bio_html" field.
  1735  func BioHTMLGT(v string) predicate.User {
  1736  	return predicate.User(func(s *sql.Selector) {
  1737  		s.Where(sql.GT(s.C(FieldBioHTML), v))
  1738  	})
  1739  }
  1740  
  1741  // BioHTMLGTE applies the GTE predicate on the "bio_html" field.
  1742  func BioHTMLGTE(v string) predicate.User {
  1743  	return predicate.User(func(s *sql.Selector) {
  1744  		s.Where(sql.GTE(s.C(FieldBioHTML), v))
  1745  	})
  1746  }
  1747  
  1748  // BioHTMLLT applies the LT predicate on the "bio_html" field.
  1749  func BioHTMLLT(v string) predicate.User {
  1750  	return predicate.User(func(s *sql.Selector) {
  1751  		s.Where(sql.LT(s.C(FieldBioHTML), v))
  1752  	})
  1753  }
  1754  
  1755  // BioHTMLLTE applies the LTE predicate on the "bio_html" field.
  1756  func BioHTMLLTE(v string) predicate.User {
  1757  	return predicate.User(func(s *sql.Selector) {
  1758  		s.Where(sql.LTE(s.C(FieldBioHTML), v))
  1759  	})
  1760  }
  1761  
  1762  // BioHTMLContains applies the Contains predicate on the "bio_html" field.
  1763  func BioHTMLContains(v string) predicate.User {
  1764  	return predicate.User(func(s *sql.Selector) {
  1765  		s.Where(sql.Contains(s.C(FieldBioHTML), v))
  1766  	})
  1767  }
  1768  
  1769  // BioHTMLHasPrefix applies the HasPrefix predicate on the "bio_html" field.
  1770  func BioHTMLHasPrefix(v string) predicate.User {
  1771  	return predicate.User(func(s *sql.Selector) {
  1772  		s.Where(sql.HasPrefix(s.C(FieldBioHTML), v))
  1773  	})
  1774  }
  1775  
  1776  // BioHTMLHasSuffix applies the HasSuffix predicate on the "bio_html" field.
  1777  func BioHTMLHasSuffix(v string) predicate.User {
  1778  	return predicate.User(func(s *sql.Selector) {
  1779  		s.Where(sql.HasSuffix(s.C(FieldBioHTML), v))
  1780  	})
  1781  }
  1782  
  1783  // BioHTMLIsNil applies the IsNil predicate on the "bio_html" field.
  1784  func BioHTMLIsNil() predicate.User {
  1785  	return predicate.User(func(s *sql.Selector) {
  1786  		s.Where(sql.IsNull(s.C(FieldBioHTML)))
  1787  	})
  1788  }
  1789  
  1790  // BioHTMLNotNil applies the NotNil predicate on the "bio_html" field.
  1791  func BioHTMLNotNil() predicate.User {
  1792  	return predicate.User(func(s *sql.Selector) {
  1793  		s.Where(sql.NotNull(s.C(FieldBioHTML)))
  1794  	})
  1795  }
  1796  
  1797  // BioHTMLEqualFold applies the EqualFold predicate on the "bio_html" field.
  1798  func BioHTMLEqualFold(v string) predicate.User {
  1799  	return predicate.User(func(s *sql.Selector) {
  1800  		s.Where(sql.EqualFold(s.C(FieldBioHTML), v))
  1801  	})
  1802  }
  1803  
  1804  // BioHTMLContainsFold applies the ContainsFold predicate on the "bio_html" field.
  1805  func BioHTMLContainsFold(v string) predicate.User {
  1806  	return predicate.User(func(s *sql.Selector) {
  1807  		s.Where(sql.ContainsFold(s.C(FieldBioHTML), v))
  1808  	})
  1809  }
  1810  
  1811  // ActiveEQ applies the EQ predicate on the "active" field.
  1812  func ActiveEQ(v bool) predicate.User {
  1813  	return predicate.User(func(s *sql.Selector) {
  1814  		s.Where(sql.EQ(s.C(FieldActive), v))
  1815  	})
  1816  }
  1817  
  1818  // ActiveNEQ applies the NEQ predicate on the "active" field.
  1819  func ActiveNEQ(v bool) predicate.User {
  1820  	return predicate.User(func(s *sql.Selector) {
  1821  		s.Where(sql.NEQ(s.C(FieldActive), v))
  1822  	})
  1823  }
  1824  
  1825  // AvatarImageIDEQ applies the EQ predicate on the "avatar_image_id" field.
  1826  func AvatarImageIDEQ(v int) predicate.User {
  1827  	return predicate.User(func(s *sql.Selector) {
  1828  		s.Where(sql.EQ(s.C(FieldAvatarImageID), v))
  1829  	})
  1830  }
  1831  
  1832  // AvatarImageIDNEQ applies the NEQ predicate on the "avatar_image_id" field.
  1833  func AvatarImageIDNEQ(v int) predicate.User {
  1834  	return predicate.User(func(s *sql.Selector) {
  1835  		s.Where(sql.NEQ(s.C(FieldAvatarImageID), v))
  1836  	})
  1837  }
  1838  
  1839  // AvatarImageIDIn applies the In predicate on the "avatar_image_id" field.
  1840  func AvatarImageIDIn(vs ...int) predicate.User {
  1841  	v := make([]interface{}, len(vs))
  1842  	for i := range v {
  1843  		v[i] = vs[i]
  1844  	}
  1845  	return predicate.User(func(s *sql.Selector) {
  1846  		// if not arguments were provided, append the FALSE constants,
  1847  		// since we can't apply "IN ()". This will make this predicate falsy.
  1848  		if len(v) == 0 {
  1849  			s.Where(sql.False())
  1850  			return
  1851  		}
  1852  		s.Where(sql.In(s.C(FieldAvatarImageID), v...))
  1853  	})
  1854  }
  1855  
  1856  // AvatarImageIDNotIn applies the NotIn predicate on the "avatar_image_id" field.
  1857  func AvatarImageIDNotIn(vs ...int) predicate.User {
  1858  	v := make([]interface{}, len(vs))
  1859  	for i := range v {
  1860  		v[i] = vs[i]
  1861  	}
  1862  	return predicate.User(func(s *sql.Selector) {
  1863  		// if not arguments were provided, append the FALSE constants,
  1864  		// since we can't apply "IN ()". This will make this predicate falsy.
  1865  		if len(v) == 0 {
  1866  			s.Where(sql.False())
  1867  			return
  1868  		}
  1869  		s.Where(sql.NotIn(s.C(FieldAvatarImageID), v...))
  1870  	})
  1871  }
  1872  
  1873  // AvatarImageIDIsNil applies the IsNil predicate on the "avatar_image_id" field.
  1874  func AvatarImageIDIsNil() predicate.User {
  1875  	return predicate.User(func(s *sql.Selector) {
  1876  		s.Where(sql.IsNull(s.C(FieldAvatarImageID)))
  1877  	})
  1878  }
  1879  
  1880  // AvatarImageIDNotNil applies the NotNil predicate on the "avatar_image_id" field.
  1881  func AvatarImageIDNotNil() predicate.User {
  1882  	return predicate.User(func(s *sql.Selector) {
  1883  		s.Where(sql.NotNull(s.C(FieldAvatarImageID)))
  1884  	})
  1885  }
  1886  
  1887  // HasPosts applies the HasEdge predicate on the "posts" edge.
  1888  func HasPosts() predicate.User {
  1889  	return predicate.User(func(s *sql.Selector) {
  1890  		step := sqlgraph.NewStep(
  1891  			sqlgraph.From(Table, FieldID),
  1892  			sqlgraph.To(PostsTable, FieldID),
  1893  			sqlgraph.Edge(sqlgraph.O2M, false, PostsTable, PostsColumn),
  1894  		)
  1895  		sqlgraph.HasNeighbors(s, step)
  1896  	})
  1897  }
  1898  
  1899  // HasPostsWith applies the HasEdge predicate on the "posts" edge with a given conditions (other predicates).
  1900  func HasPostsWith(preds ...predicate.Post) predicate.User {
  1901  	return predicate.User(func(s *sql.Selector) {
  1902  		step := sqlgraph.NewStep(
  1903  			sqlgraph.From(Table, FieldID),
  1904  			sqlgraph.To(PostsInverseTable, FieldID),
  1905  			sqlgraph.Edge(sqlgraph.O2M, false, PostsTable, PostsColumn),
  1906  		)
  1907  		sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1908  			for _, p := range preds {
  1909  				p(s)
  1910  			}
  1911  		})
  1912  	})
  1913  }
  1914  
  1915  // HasFiles applies the HasEdge predicate on the "files" edge.
  1916  func HasFiles() predicate.User {
  1917  	return predicate.User(func(s *sql.Selector) {
  1918  		step := sqlgraph.NewStep(
  1919  			sqlgraph.From(Table, FieldID),
  1920  			sqlgraph.To(FilesTable, FieldID),
  1921  			sqlgraph.Edge(sqlgraph.O2M, false, FilesTable, FilesColumn),
  1922  		)
  1923  		sqlgraph.HasNeighbors(s, step)
  1924  	})
  1925  }
  1926  
  1927  // HasFilesWith applies the HasEdge predicate on the "files" edge with a given conditions (other predicates).
  1928  func HasFilesWith(preds ...predicate.File) predicate.User {
  1929  	return predicate.User(func(s *sql.Selector) {
  1930  		step := sqlgraph.NewStep(
  1931  			sqlgraph.From(Table, FieldID),
  1932  			sqlgraph.To(FilesInverseTable, FieldID),
  1933  			sqlgraph.Edge(sqlgraph.O2M, false, FilesTable, FilesColumn),
  1934  		)
  1935  		sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1936  			for _, p := range preds {
  1937  				p(s)
  1938  			}
  1939  		})
  1940  	})
  1941  }
  1942  
  1943  // HasComments applies the HasEdge predicate on the "comments" edge.
  1944  func HasComments() predicate.User {
  1945  	return predicate.User(func(s *sql.Selector) {
  1946  		step := sqlgraph.NewStep(
  1947  			sqlgraph.From(Table, FieldID),
  1948  			sqlgraph.To(CommentsTable, FieldID),
  1949  			sqlgraph.Edge(sqlgraph.O2M, false, CommentsTable, CommentsColumn),
  1950  		)
  1951  		sqlgraph.HasNeighbors(s, step)
  1952  	})
  1953  }
  1954  
  1955  // HasCommentsWith applies the HasEdge predicate on the "comments" edge with a given conditions (other predicates).
  1956  func HasCommentsWith(preds ...predicate.Comment) predicate.User {
  1957  	return predicate.User(func(s *sql.Selector) {
  1958  		step := sqlgraph.NewStep(
  1959  			sqlgraph.From(Table, FieldID),
  1960  			sqlgraph.To(CommentsInverseTable, FieldID),
  1961  			sqlgraph.Edge(sqlgraph.O2M, false, CommentsTable, CommentsColumn),
  1962  		)
  1963  		sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1964  			for _, p := range preds {
  1965  				p(s)
  1966  			}
  1967  		})
  1968  	})
  1969  }
  1970  
  1971  // HasRoles applies the HasEdge predicate on the "roles" edge.
  1972  func HasRoles() predicate.User {
  1973  	return predicate.User(func(s *sql.Selector) {
  1974  		step := sqlgraph.NewStep(
  1975  			sqlgraph.From(Table, FieldID),
  1976  			sqlgraph.To(RolesTable, FieldID),
  1977  			sqlgraph.Edge(sqlgraph.M2M, true, RolesTable, RolesPrimaryKey...),
  1978  		)
  1979  		sqlgraph.HasNeighbors(s, step)
  1980  	})
  1981  }
  1982  
  1983  // HasRolesWith applies the HasEdge predicate on the "roles" edge with a given conditions (other predicates).
  1984  func HasRolesWith(preds ...predicate.Role) predicate.User {
  1985  	return predicate.User(func(s *sql.Selector) {
  1986  		step := sqlgraph.NewStep(
  1987  			sqlgraph.From(Table, FieldID),
  1988  			sqlgraph.To(RolesInverseTable, FieldID),
  1989  			sqlgraph.Edge(sqlgraph.M2M, true, RolesTable, RolesPrimaryKey...),
  1990  		)
  1991  		sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1992  			for _, p := range preds {
  1993  				p(s)
  1994  			}
  1995  		})
  1996  	})
  1997  }
  1998  
  1999  // HasAvatarImage applies the HasEdge predicate on the "avatar_image" edge.
  2000  func HasAvatarImage() predicate.User {
  2001  	return predicate.User(func(s *sql.Selector) {
  2002  		step := sqlgraph.NewStep(
  2003  			sqlgraph.From(Table, FieldID),
  2004  			sqlgraph.To(AvatarImageTable, FieldID),
  2005  			sqlgraph.Edge(sqlgraph.M2O, true, AvatarImageTable, AvatarImageColumn),
  2006  		)
  2007  		sqlgraph.HasNeighbors(s, step)
  2008  	})
  2009  }
  2010  
  2011  // HasAvatarImageWith applies the HasEdge predicate on the "avatar_image" edge with a given conditions (other predicates).
  2012  func HasAvatarImageWith(preds ...predicate.File) predicate.User {
  2013  	return predicate.User(func(s *sql.Selector) {
  2014  		step := sqlgraph.NewStep(
  2015  			sqlgraph.From(Table, FieldID),
  2016  			sqlgraph.To(AvatarImageInverseTable, FieldID),
  2017  			sqlgraph.Edge(sqlgraph.M2O, true, AvatarImageTable, AvatarImageColumn),
  2018  		)
  2019  		sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  2020  			for _, p := range preds {
  2021  				p(s)
  2022  			}
  2023  		})
  2024  	})
  2025  }
  2026  
  2027  // And groups predicates with the AND operator between them.
  2028  func And(predicates ...predicate.User) predicate.User {
  2029  	return predicate.User(func(s *sql.Selector) {
  2030  		s1 := s.Clone().SetP(nil)
  2031  		for _, p := range predicates {
  2032  			p(s1)
  2033  		}
  2034  		s.Where(s1.P())
  2035  	})
  2036  }
  2037  
  2038  // Or groups predicates with the OR operator between them.
  2039  func Or(predicates ...predicate.User) predicate.User {
  2040  	return predicate.User(func(s *sql.Selector) {
  2041  		s1 := s.Clone().SetP(nil)
  2042  		for i, p := range predicates {
  2043  			if i > 0 {
  2044  				s1.Or()
  2045  			}
  2046  			p(s1)
  2047  		}
  2048  		s.Where(s1.P())
  2049  	})
  2050  }
  2051  
  2052  // Not applies the not operator on the given predicate.
  2053  func Not(p predicate.User) predicate.User {
  2054  	return predicate.User(func(s *sql.Selector) {
  2055  		p(s.Not())
  2056  	})
  2057  }