where.go 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539
  1. // Code generated by ent, DO NOT EDIT.
  2. package workexperience
  3. import (
  4. "time"
  5. "wechat-api/ent/predicate"
  6. "entgo.io/ent/dialect/sql"
  7. "entgo.io/ent/dialect/sql/sqlgraph"
  8. )
  9. // ID filters vertices based on their ID field.
  10. func ID(id uint64) predicate.WorkExperience {
  11. return predicate.WorkExperience(sql.FieldEQ(FieldID, id))
  12. }
  13. // IDEQ applies the EQ predicate on the ID field.
  14. func IDEQ(id uint64) predicate.WorkExperience {
  15. return predicate.WorkExperience(sql.FieldEQ(FieldID, id))
  16. }
  17. // IDNEQ applies the NEQ predicate on the ID field.
  18. func IDNEQ(id uint64) predicate.WorkExperience {
  19. return predicate.WorkExperience(sql.FieldNEQ(FieldID, id))
  20. }
  21. // IDIn applies the In predicate on the ID field.
  22. func IDIn(ids ...uint64) predicate.WorkExperience {
  23. return predicate.WorkExperience(sql.FieldIn(FieldID, ids...))
  24. }
  25. // IDNotIn applies the NotIn predicate on the ID field.
  26. func IDNotIn(ids ...uint64) predicate.WorkExperience {
  27. return predicate.WorkExperience(sql.FieldNotIn(FieldID, ids...))
  28. }
  29. // IDGT applies the GT predicate on the ID field.
  30. func IDGT(id uint64) predicate.WorkExperience {
  31. return predicate.WorkExperience(sql.FieldGT(FieldID, id))
  32. }
  33. // IDGTE applies the GTE predicate on the ID field.
  34. func IDGTE(id uint64) predicate.WorkExperience {
  35. return predicate.WorkExperience(sql.FieldGTE(FieldID, id))
  36. }
  37. // IDLT applies the LT predicate on the ID field.
  38. func IDLT(id uint64) predicate.WorkExperience {
  39. return predicate.WorkExperience(sql.FieldLT(FieldID, id))
  40. }
  41. // IDLTE applies the LTE predicate on the ID field.
  42. func IDLTE(id uint64) predicate.WorkExperience {
  43. return predicate.WorkExperience(sql.FieldLTE(FieldID, id))
  44. }
  45. // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
  46. func CreatedAt(v time.Time) predicate.WorkExperience {
  47. return predicate.WorkExperience(sql.FieldEQ(FieldCreatedAt, v))
  48. }
  49. // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
  50. func UpdatedAt(v time.Time) predicate.WorkExperience {
  51. return predicate.WorkExperience(sql.FieldEQ(FieldUpdatedAt, v))
  52. }
  53. // DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
  54. func DeletedAt(v time.Time) predicate.WorkExperience {
  55. return predicate.WorkExperience(sql.FieldEQ(FieldDeletedAt, v))
  56. }
  57. // EmployeeID applies equality check predicate on the "employee_id" field. It's identical to EmployeeIDEQ.
  58. func EmployeeID(v uint64) predicate.WorkExperience {
  59. return predicate.WorkExperience(sql.FieldEQ(FieldEmployeeID, v))
  60. }
  61. // StartDate applies equality check predicate on the "start_date" field. It's identical to StartDateEQ.
  62. func StartDate(v time.Time) predicate.WorkExperience {
  63. return predicate.WorkExperience(sql.FieldEQ(FieldStartDate, v))
  64. }
  65. // EndDate applies equality check predicate on the "end_date" field. It's identical to EndDateEQ.
  66. func EndDate(v time.Time) predicate.WorkExperience {
  67. return predicate.WorkExperience(sql.FieldEQ(FieldEndDate, v))
  68. }
  69. // Company applies equality check predicate on the "company" field. It's identical to CompanyEQ.
  70. func Company(v string) predicate.WorkExperience {
  71. return predicate.WorkExperience(sql.FieldEQ(FieldCompany, v))
  72. }
  73. // Experience applies equality check predicate on the "experience" field. It's identical to ExperienceEQ.
  74. func Experience(v string) predicate.WorkExperience {
  75. return predicate.WorkExperience(sql.FieldEQ(FieldExperience, v))
  76. }
  77. // OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
  78. func OrganizationID(v uint64) predicate.WorkExperience {
  79. return predicate.WorkExperience(sql.FieldEQ(FieldOrganizationID, v))
  80. }
  81. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  82. func CreatedAtEQ(v time.Time) predicate.WorkExperience {
  83. return predicate.WorkExperience(sql.FieldEQ(FieldCreatedAt, v))
  84. }
  85. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  86. func CreatedAtNEQ(v time.Time) predicate.WorkExperience {
  87. return predicate.WorkExperience(sql.FieldNEQ(FieldCreatedAt, v))
  88. }
  89. // CreatedAtIn applies the In predicate on the "created_at" field.
  90. func CreatedAtIn(vs ...time.Time) predicate.WorkExperience {
  91. return predicate.WorkExperience(sql.FieldIn(FieldCreatedAt, vs...))
  92. }
  93. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  94. func CreatedAtNotIn(vs ...time.Time) predicate.WorkExperience {
  95. return predicate.WorkExperience(sql.FieldNotIn(FieldCreatedAt, vs...))
  96. }
  97. // CreatedAtGT applies the GT predicate on the "created_at" field.
  98. func CreatedAtGT(v time.Time) predicate.WorkExperience {
  99. return predicate.WorkExperience(sql.FieldGT(FieldCreatedAt, v))
  100. }
  101. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  102. func CreatedAtGTE(v time.Time) predicate.WorkExperience {
  103. return predicate.WorkExperience(sql.FieldGTE(FieldCreatedAt, v))
  104. }
  105. // CreatedAtLT applies the LT predicate on the "created_at" field.
  106. func CreatedAtLT(v time.Time) predicate.WorkExperience {
  107. return predicate.WorkExperience(sql.FieldLT(FieldCreatedAt, v))
  108. }
  109. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  110. func CreatedAtLTE(v time.Time) predicate.WorkExperience {
  111. return predicate.WorkExperience(sql.FieldLTE(FieldCreatedAt, v))
  112. }
  113. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  114. func UpdatedAtEQ(v time.Time) predicate.WorkExperience {
  115. return predicate.WorkExperience(sql.FieldEQ(FieldUpdatedAt, v))
  116. }
  117. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  118. func UpdatedAtNEQ(v time.Time) predicate.WorkExperience {
  119. return predicate.WorkExperience(sql.FieldNEQ(FieldUpdatedAt, v))
  120. }
  121. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  122. func UpdatedAtIn(vs ...time.Time) predicate.WorkExperience {
  123. return predicate.WorkExperience(sql.FieldIn(FieldUpdatedAt, vs...))
  124. }
  125. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  126. func UpdatedAtNotIn(vs ...time.Time) predicate.WorkExperience {
  127. return predicate.WorkExperience(sql.FieldNotIn(FieldUpdatedAt, vs...))
  128. }
  129. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  130. func UpdatedAtGT(v time.Time) predicate.WorkExperience {
  131. return predicate.WorkExperience(sql.FieldGT(FieldUpdatedAt, v))
  132. }
  133. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  134. func UpdatedAtGTE(v time.Time) predicate.WorkExperience {
  135. return predicate.WorkExperience(sql.FieldGTE(FieldUpdatedAt, v))
  136. }
  137. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  138. func UpdatedAtLT(v time.Time) predicate.WorkExperience {
  139. return predicate.WorkExperience(sql.FieldLT(FieldUpdatedAt, v))
  140. }
  141. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  142. func UpdatedAtLTE(v time.Time) predicate.WorkExperience {
  143. return predicate.WorkExperience(sql.FieldLTE(FieldUpdatedAt, v))
  144. }
  145. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  146. func DeletedAtEQ(v time.Time) predicate.WorkExperience {
  147. return predicate.WorkExperience(sql.FieldEQ(FieldDeletedAt, v))
  148. }
  149. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  150. func DeletedAtNEQ(v time.Time) predicate.WorkExperience {
  151. return predicate.WorkExperience(sql.FieldNEQ(FieldDeletedAt, v))
  152. }
  153. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  154. func DeletedAtIn(vs ...time.Time) predicate.WorkExperience {
  155. return predicate.WorkExperience(sql.FieldIn(FieldDeletedAt, vs...))
  156. }
  157. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  158. func DeletedAtNotIn(vs ...time.Time) predicate.WorkExperience {
  159. return predicate.WorkExperience(sql.FieldNotIn(FieldDeletedAt, vs...))
  160. }
  161. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  162. func DeletedAtGT(v time.Time) predicate.WorkExperience {
  163. return predicate.WorkExperience(sql.FieldGT(FieldDeletedAt, v))
  164. }
  165. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  166. func DeletedAtGTE(v time.Time) predicate.WorkExperience {
  167. return predicate.WorkExperience(sql.FieldGTE(FieldDeletedAt, v))
  168. }
  169. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  170. func DeletedAtLT(v time.Time) predicate.WorkExperience {
  171. return predicate.WorkExperience(sql.FieldLT(FieldDeletedAt, v))
  172. }
  173. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  174. func DeletedAtLTE(v time.Time) predicate.WorkExperience {
  175. return predicate.WorkExperience(sql.FieldLTE(FieldDeletedAt, v))
  176. }
  177. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  178. func DeletedAtIsNil() predicate.WorkExperience {
  179. return predicate.WorkExperience(sql.FieldIsNull(FieldDeletedAt))
  180. }
  181. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  182. func DeletedAtNotNil() predicate.WorkExperience {
  183. return predicate.WorkExperience(sql.FieldNotNull(FieldDeletedAt))
  184. }
  185. // EmployeeIDEQ applies the EQ predicate on the "employee_id" field.
  186. func EmployeeIDEQ(v uint64) predicate.WorkExperience {
  187. return predicate.WorkExperience(sql.FieldEQ(FieldEmployeeID, v))
  188. }
  189. // EmployeeIDNEQ applies the NEQ predicate on the "employee_id" field.
  190. func EmployeeIDNEQ(v uint64) predicate.WorkExperience {
  191. return predicate.WorkExperience(sql.FieldNEQ(FieldEmployeeID, v))
  192. }
  193. // EmployeeIDIn applies the In predicate on the "employee_id" field.
  194. func EmployeeIDIn(vs ...uint64) predicate.WorkExperience {
  195. return predicate.WorkExperience(sql.FieldIn(FieldEmployeeID, vs...))
  196. }
  197. // EmployeeIDNotIn applies the NotIn predicate on the "employee_id" field.
  198. func EmployeeIDNotIn(vs ...uint64) predicate.WorkExperience {
  199. return predicate.WorkExperience(sql.FieldNotIn(FieldEmployeeID, vs...))
  200. }
  201. // StartDateEQ applies the EQ predicate on the "start_date" field.
  202. func StartDateEQ(v time.Time) predicate.WorkExperience {
  203. return predicate.WorkExperience(sql.FieldEQ(FieldStartDate, v))
  204. }
  205. // StartDateNEQ applies the NEQ predicate on the "start_date" field.
  206. func StartDateNEQ(v time.Time) predicate.WorkExperience {
  207. return predicate.WorkExperience(sql.FieldNEQ(FieldStartDate, v))
  208. }
  209. // StartDateIn applies the In predicate on the "start_date" field.
  210. func StartDateIn(vs ...time.Time) predicate.WorkExperience {
  211. return predicate.WorkExperience(sql.FieldIn(FieldStartDate, vs...))
  212. }
  213. // StartDateNotIn applies the NotIn predicate on the "start_date" field.
  214. func StartDateNotIn(vs ...time.Time) predicate.WorkExperience {
  215. return predicate.WorkExperience(sql.FieldNotIn(FieldStartDate, vs...))
  216. }
  217. // StartDateGT applies the GT predicate on the "start_date" field.
  218. func StartDateGT(v time.Time) predicate.WorkExperience {
  219. return predicate.WorkExperience(sql.FieldGT(FieldStartDate, v))
  220. }
  221. // StartDateGTE applies the GTE predicate on the "start_date" field.
  222. func StartDateGTE(v time.Time) predicate.WorkExperience {
  223. return predicate.WorkExperience(sql.FieldGTE(FieldStartDate, v))
  224. }
  225. // StartDateLT applies the LT predicate on the "start_date" field.
  226. func StartDateLT(v time.Time) predicate.WorkExperience {
  227. return predicate.WorkExperience(sql.FieldLT(FieldStartDate, v))
  228. }
  229. // StartDateLTE applies the LTE predicate on the "start_date" field.
  230. func StartDateLTE(v time.Time) predicate.WorkExperience {
  231. return predicate.WorkExperience(sql.FieldLTE(FieldStartDate, v))
  232. }
  233. // EndDateEQ applies the EQ predicate on the "end_date" field.
  234. func EndDateEQ(v time.Time) predicate.WorkExperience {
  235. return predicate.WorkExperience(sql.FieldEQ(FieldEndDate, v))
  236. }
  237. // EndDateNEQ applies the NEQ predicate on the "end_date" field.
  238. func EndDateNEQ(v time.Time) predicate.WorkExperience {
  239. return predicate.WorkExperience(sql.FieldNEQ(FieldEndDate, v))
  240. }
  241. // EndDateIn applies the In predicate on the "end_date" field.
  242. func EndDateIn(vs ...time.Time) predicate.WorkExperience {
  243. return predicate.WorkExperience(sql.FieldIn(FieldEndDate, vs...))
  244. }
  245. // EndDateNotIn applies the NotIn predicate on the "end_date" field.
  246. func EndDateNotIn(vs ...time.Time) predicate.WorkExperience {
  247. return predicate.WorkExperience(sql.FieldNotIn(FieldEndDate, vs...))
  248. }
  249. // EndDateGT applies the GT predicate on the "end_date" field.
  250. func EndDateGT(v time.Time) predicate.WorkExperience {
  251. return predicate.WorkExperience(sql.FieldGT(FieldEndDate, v))
  252. }
  253. // EndDateGTE applies the GTE predicate on the "end_date" field.
  254. func EndDateGTE(v time.Time) predicate.WorkExperience {
  255. return predicate.WorkExperience(sql.FieldGTE(FieldEndDate, v))
  256. }
  257. // EndDateLT applies the LT predicate on the "end_date" field.
  258. func EndDateLT(v time.Time) predicate.WorkExperience {
  259. return predicate.WorkExperience(sql.FieldLT(FieldEndDate, v))
  260. }
  261. // EndDateLTE applies the LTE predicate on the "end_date" field.
  262. func EndDateLTE(v time.Time) predicate.WorkExperience {
  263. return predicate.WorkExperience(sql.FieldLTE(FieldEndDate, v))
  264. }
  265. // CompanyEQ applies the EQ predicate on the "company" field.
  266. func CompanyEQ(v string) predicate.WorkExperience {
  267. return predicate.WorkExperience(sql.FieldEQ(FieldCompany, v))
  268. }
  269. // CompanyNEQ applies the NEQ predicate on the "company" field.
  270. func CompanyNEQ(v string) predicate.WorkExperience {
  271. return predicate.WorkExperience(sql.FieldNEQ(FieldCompany, v))
  272. }
  273. // CompanyIn applies the In predicate on the "company" field.
  274. func CompanyIn(vs ...string) predicate.WorkExperience {
  275. return predicate.WorkExperience(sql.FieldIn(FieldCompany, vs...))
  276. }
  277. // CompanyNotIn applies the NotIn predicate on the "company" field.
  278. func CompanyNotIn(vs ...string) predicate.WorkExperience {
  279. return predicate.WorkExperience(sql.FieldNotIn(FieldCompany, vs...))
  280. }
  281. // CompanyGT applies the GT predicate on the "company" field.
  282. func CompanyGT(v string) predicate.WorkExperience {
  283. return predicate.WorkExperience(sql.FieldGT(FieldCompany, v))
  284. }
  285. // CompanyGTE applies the GTE predicate on the "company" field.
  286. func CompanyGTE(v string) predicate.WorkExperience {
  287. return predicate.WorkExperience(sql.FieldGTE(FieldCompany, v))
  288. }
  289. // CompanyLT applies the LT predicate on the "company" field.
  290. func CompanyLT(v string) predicate.WorkExperience {
  291. return predicate.WorkExperience(sql.FieldLT(FieldCompany, v))
  292. }
  293. // CompanyLTE applies the LTE predicate on the "company" field.
  294. func CompanyLTE(v string) predicate.WorkExperience {
  295. return predicate.WorkExperience(sql.FieldLTE(FieldCompany, v))
  296. }
  297. // CompanyContains applies the Contains predicate on the "company" field.
  298. func CompanyContains(v string) predicate.WorkExperience {
  299. return predicate.WorkExperience(sql.FieldContains(FieldCompany, v))
  300. }
  301. // CompanyHasPrefix applies the HasPrefix predicate on the "company" field.
  302. func CompanyHasPrefix(v string) predicate.WorkExperience {
  303. return predicate.WorkExperience(sql.FieldHasPrefix(FieldCompany, v))
  304. }
  305. // CompanyHasSuffix applies the HasSuffix predicate on the "company" field.
  306. func CompanyHasSuffix(v string) predicate.WorkExperience {
  307. return predicate.WorkExperience(sql.FieldHasSuffix(FieldCompany, v))
  308. }
  309. // CompanyEqualFold applies the EqualFold predicate on the "company" field.
  310. func CompanyEqualFold(v string) predicate.WorkExperience {
  311. return predicate.WorkExperience(sql.FieldEqualFold(FieldCompany, v))
  312. }
  313. // CompanyContainsFold applies the ContainsFold predicate on the "company" field.
  314. func CompanyContainsFold(v string) predicate.WorkExperience {
  315. return predicate.WorkExperience(sql.FieldContainsFold(FieldCompany, v))
  316. }
  317. // ExperienceEQ applies the EQ predicate on the "experience" field.
  318. func ExperienceEQ(v string) predicate.WorkExperience {
  319. return predicate.WorkExperience(sql.FieldEQ(FieldExperience, v))
  320. }
  321. // ExperienceNEQ applies the NEQ predicate on the "experience" field.
  322. func ExperienceNEQ(v string) predicate.WorkExperience {
  323. return predicate.WorkExperience(sql.FieldNEQ(FieldExperience, v))
  324. }
  325. // ExperienceIn applies the In predicate on the "experience" field.
  326. func ExperienceIn(vs ...string) predicate.WorkExperience {
  327. return predicate.WorkExperience(sql.FieldIn(FieldExperience, vs...))
  328. }
  329. // ExperienceNotIn applies the NotIn predicate on the "experience" field.
  330. func ExperienceNotIn(vs ...string) predicate.WorkExperience {
  331. return predicate.WorkExperience(sql.FieldNotIn(FieldExperience, vs...))
  332. }
  333. // ExperienceGT applies the GT predicate on the "experience" field.
  334. func ExperienceGT(v string) predicate.WorkExperience {
  335. return predicate.WorkExperience(sql.FieldGT(FieldExperience, v))
  336. }
  337. // ExperienceGTE applies the GTE predicate on the "experience" field.
  338. func ExperienceGTE(v string) predicate.WorkExperience {
  339. return predicate.WorkExperience(sql.FieldGTE(FieldExperience, v))
  340. }
  341. // ExperienceLT applies the LT predicate on the "experience" field.
  342. func ExperienceLT(v string) predicate.WorkExperience {
  343. return predicate.WorkExperience(sql.FieldLT(FieldExperience, v))
  344. }
  345. // ExperienceLTE applies the LTE predicate on the "experience" field.
  346. func ExperienceLTE(v string) predicate.WorkExperience {
  347. return predicate.WorkExperience(sql.FieldLTE(FieldExperience, v))
  348. }
  349. // ExperienceContains applies the Contains predicate on the "experience" field.
  350. func ExperienceContains(v string) predicate.WorkExperience {
  351. return predicate.WorkExperience(sql.FieldContains(FieldExperience, v))
  352. }
  353. // ExperienceHasPrefix applies the HasPrefix predicate on the "experience" field.
  354. func ExperienceHasPrefix(v string) predicate.WorkExperience {
  355. return predicate.WorkExperience(sql.FieldHasPrefix(FieldExperience, v))
  356. }
  357. // ExperienceHasSuffix applies the HasSuffix predicate on the "experience" field.
  358. func ExperienceHasSuffix(v string) predicate.WorkExperience {
  359. return predicate.WorkExperience(sql.FieldHasSuffix(FieldExperience, v))
  360. }
  361. // ExperienceEqualFold applies the EqualFold predicate on the "experience" field.
  362. func ExperienceEqualFold(v string) predicate.WorkExperience {
  363. return predicate.WorkExperience(sql.FieldEqualFold(FieldExperience, v))
  364. }
  365. // ExperienceContainsFold applies the ContainsFold predicate on the "experience" field.
  366. func ExperienceContainsFold(v string) predicate.WorkExperience {
  367. return predicate.WorkExperience(sql.FieldContainsFold(FieldExperience, v))
  368. }
  369. // OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
  370. func OrganizationIDEQ(v uint64) predicate.WorkExperience {
  371. return predicate.WorkExperience(sql.FieldEQ(FieldOrganizationID, v))
  372. }
  373. // OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
  374. func OrganizationIDNEQ(v uint64) predicate.WorkExperience {
  375. return predicate.WorkExperience(sql.FieldNEQ(FieldOrganizationID, v))
  376. }
  377. // OrganizationIDIn applies the In predicate on the "organization_id" field.
  378. func OrganizationIDIn(vs ...uint64) predicate.WorkExperience {
  379. return predicate.WorkExperience(sql.FieldIn(FieldOrganizationID, vs...))
  380. }
  381. // OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
  382. func OrganizationIDNotIn(vs ...uint64) predicate.WorkExperience {
  383. return predicate.WorkExperience(sql.FieldNotIn(FieldOrganizationID, vs...))
  384. }
  385. // OrganizationIDGT applies the GT predicate on the "organization_id" field.
  386. func OrganizationIDGT(v uint64) predicate.WorkExperience {
  387. return predicate.WorkExperience(sql.FieldGT(FieldOrganizationID, v))
  388. }
  389. // OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
  390. func OrganizationIDGTE(v uint64) predicate.WorkExperience {
  391. return predicate.WorkExperience(sql.FieldGTE(FieldOrganizationID, v))
  392. }
  393. // OrganizationIDLT applies the LT predicate on the "organization_id" field.
  394. func OrganizationIDLT(v uint64) predicate.WorkExperience {
  395. return predicate.WorkExperience(sql.FieldLT(FieldOrganizationID, v))
  396. }
  397. // OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
  398. func OrganizationIDLTE(v uint64) predicate.WorkExperience {
  399. return predicate.WorkExperience(sql.FieldLTE(FieldOrganizationID, v))
  400. }
  401. // HasEmployee applies the HasEdge predicate on the "employee" edge.
  402. func HasEmployee() predicate.WorkExperience {
  403. return predicate.WorkExperience(func(s *sql.Selector) {
  404. step := sqlgraph.NewStep(
  405. sqlgraph.From(Table, FieldID),
  406. sqlgraph.Edge(sqlgraph.M2O, true, EmployeeTable, EmployeeColumn),
  407. )
  408. sqlgraph.HasNeighbors(s, step)
  409. })
  410. }
  411. // HasEmployeeWith applies the HasEdge predicate on the "employee" edge with a given conditions (other predicates).
  412. func HasEmployeeWith(preds ...predicate.Employee) predicate.WorkExperience {
  413. return predicate.WorkExperience(func(s *sql.Selector) {
  414. step := newEmployeeStep()
  415. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  416. for _, p := range preds {
  417. p(s)
  418. }
  419. })
  420. })
  421. }
  422. // And groups predicates with the AND operator between them.
  423. func And(predicates ...predicate.WorkExperience) predicate.WorkExperience {
  424. return predicate.WorkExperience(sql.AndPredicates(predicates...))
  425. }
  426. // Or groups predicates with the OR operator between them.
  427. func Or(predicates ...predicate.WorkExperience) predicate.WorkExperience {
  428. return predicate.WorkExperience(sql.OrPredicates(predicates...))
  429. }
  430. // Not applies the not operator on the given predicate.
  431. func Not(p predicate.WorkExperience) predicate.WorkExperience {
  432. return predicate.WorkExperience(sql.NotPredicates(p))
  433. }