where.go 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744
  1. // Code generated by ent, DO NOT EDIT.
  2. package soptask
  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.SopTask {
  11. return predicate.SopTask(sql.FieldEQ(FieldID, id))
  12. }
  13. // IDEQ applies the EQ predicate on the ID field.
  14. func IDEQ(id uint64) predicate.SopTask {
  15. return predicate.SopTask(sql.FieldEQ(FieldID, id))
  16. }
  17. // IDNEQ applies the NEQ predicate on the ID field.
  18. func IDNEQ(id uint64) predicate.SopTask {
  19. return predicate.SopTask(sql.FieldNEQ(FieldID, id))
  20. }
  21. // IDIn applies the In predicate on the ID field.
  22. func IDIn(ids ...uint64) predicate.SopTask {
  23. return predicate.SopTask(sql.FieldIn(FieldID, ids...))
  24. }
  25. // IDNotIn applies the NotIn predicate on the ID field.
  26. func IDNotIn(ids ...uint64) predicate.SopTask {
  27. return predicate.SopTask(sql.FieldNotIn(FieldID, ids...))
  28. }
  29. // IDGT applies the GT predicate on the ID field.
  30. func IDGT(id uint64) predicate.SopTask {
  31. return predicate.SopTask(sql.FieldGT(FieldID, id))
  32. }
  33. // IDGTE applies the GTE predicate on the ID field.
  34. func IDGTE(id uint64) predicate.SopTask {
  35. return predicate.SopTask(sql.FieldGTE(FieldID, id))
  36. }
  37. // IDLT applies the LT predicate on the ID field.
  38. func IDLT(id uint64) predicate.SopTask {
  39. return predicate.SopTask(sql.FieldLT(FieldID, id))
  40. }
  41. // IDLTE applies the LTE predicate on the ID field.
  42. func IDLTE(id uint64) predicate.SopTask {
  43. return predicate.SopTask(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.SopTask {
  47. return predicate.SopTask(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.SopTask {
  51. return predicate.SopTask(sql.FieldEQ(FieldUpdatedAt, v))
  52. }
  53. // Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
  54. func Status(v uint8) predicate.SopTask {
  55. return predicate.SopTask(sql.FieldEQ(FieldStatus, v))
  56. }
  57. // DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
  58. func DeletedAt(v time.Time) predicate.SopTask {
  59. return predicate.SopTask(sql.FieldEQ(FieldDeletedAt, v))
  60. }
  61. // Name applies equality check predicate on the "name" field. It's identical to NameEQ.
  62. func Name(v string) predicate.SopTask {
  63. return predicate.SopTask(sql.FieldEQ(FieldName, v))
  64. }
  65. // Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
  66. func Type(v int) predicate.SopTask {
  67. return predicate.SopTask(sql.FieldEQ(FieldType, v))
  68. }
  69. // PlanStartTime applies equality check predicate on the "plan_start_time" field. It's identical to PlanStartTimeEQ.
  70. func PlanStartTime(v time.Time) predicate.SopTask {
  71. return predicate.SopTask(sql.FieldEQ(FieldPlanStartTime, v))
  72. }
  73. // PlanEndTime applies equality check predicate on the "plan_end_time" field. It's identical to PlanEndTimeEQ.
  74. func PlanEndTime(v time.Time) predicate.SopTask {
  75. return predicate.SopTask(sql.FieldEQ(FieldPlanEndTime, v))
  76. }
  77. // CreatorID applies equality check predicate on the "creator_id" field. It's identical to CreatorIDEQ.
  78. func CreatorID(v string) predicate.SopTask {
  79. return predicate.SopTask(sql.FieldEQ(FieldCreatorID, v))
  80. }
  81. // OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
  82. func OrganizationID(v uint64) predicate.SopTask {
  83. return predicate.SopTask(sql.FieldEQ(FieldOrganizationID, v))
  84. }
  85. // Token applies equality check predicate on the "token" field. It's identical to TokenEQ.
  86. func Token(v string) predicate.SopTask {
  87. return predicate.SopTask(sql.FieldEQ(FieldToken, v))
  88. }
  89. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  90. func CreatedAtEQ(v time.Time) predicate.SopTask {
  91. return predicate.SopTask(sql.FieldEQ(FieldCreatedAt, v))
  92. }
  93. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  94. func CreatedAtNEQ(v time.Time) predicate.SopTask {
  95. return predicate.SopTask(sql.FieldNEQ(FieldCreatedAt, v))
  96. }
  97. // CreatedAtIn applies the In predicate on the "created_at" field.
  98. func CreatedAtIn(vs ...time.Time) predicate.SopTask {
  99. return predicate.SopTask(sql.FieldIn(FieldCreatedAt, vs...))
  100. }
  101. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  102. func CreatedAtNotIn(vs ...time.Time) predicate.SopTask {
  103. return predicate.SopTask(sql.FieldNotIn(FieldCreatedAt, vs...))
  104. }
  105. // CreatedAtGT applies the GT predicate on the "created_at" field.
  106. func CreatedAtGT(v time.Time) predicate.SopTask {
  107. return predicate.SopTask(sql.FieldGT(FieldCreatedAt, v))
  108. }
  109. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  110. func CreatedAtGTE(v time.Time) predicate.SopTask {
  111. return predicate.SopTask(sql.FieldGTE(FieldCreatedAt, v))
  112. }
  113. // CreatedAtLT applies the LT predicate on the "created_at" field.
  114. func CreatedAtLT(v time.Time) predicate.SopTask {
  115. return predicate.SopTask(sql.FieldLT(FieldCreatedAt, v))
  116. }
  117. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  118. func CreatedAtLTE(v time.Time) predicate.SopTask {
  119. return predicate.SopTask(sql.FieldLTE(FieldCreatedAt, v))
  120. }
  121. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  122. func UpdatedAtEQ(v time.Time) predicate.SopTask {
  123. return predicate.SopTask(sql.FieldEQ(FieldUpdatedAt, v))
  124. }
  125. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  126. func UpdatedAtNEQ(v time.Time) predicate.SopTask {
  127. return predicate.SopTask(sql.FieldNEQ(FieldUpdatedAt, v))
  128. }
  129. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  130. func UpdatedAtIn(vs ...time.Time) predicate.SopTask {
  131. return predicate.SopTask(sql.FieldIn(FieldUpdatedAt, vs...))
  132. }
  133. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  134. func UpdatedAtNotIn(vs ...time.Time) predicate.SopTask {
  135. return predicate.SopTask(sql.FieldNotIn(FieldUpdatedAt, vs...))
  136. }
  137. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  138. func UpdatedAtGT(v time.Time) predicate.SopTask {
  139. return predicate.SopTask(sql.FieldGT(FieldUpdatedAt, v))
  140. }
  141. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  142. func UpdatedAtGTE(v time.Time) predicate.SopTask {
  143. return predicate.SopTask(sql.FieldGTE(FieldUpdatedAt, v))
  144. }
  145. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  146. func UpdatedAtLT(v time.Time) predicate.SopTask {
  147. return predicate.SopTask(sql.FieldLT(FieldUpdatedAt, v))
  148. }
  149. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  150. func UpdatedAtLTE(v time.Time) predicate.SopTask {
  151. return predicate.SopTask(sql.FieldLTE(FieldUpdatedAt, v))
  152. }
  153. // StatusEQ applies the EQ predicate on the "status" field.
  154. func StatusEQ(v uint8) predicate.SopTask {
  155. return predicate.SopTask(sql.FieldEQ(FieldStatus, v))
  156. }
  157. // StatusNEQ applies the NEQ predicate on the "status" field.
  158. func StatusNEQ(v uint8) predicate.SopTask {
  159. return predicate.SopTask(sql.FieldNEQ(FieldStatus, v))
  160. }
  161. // StatusIn applies the In predicate on the "status" field.
  162. func StatusIn(vs ...uint8) predicate.SopTask {
  163. return predicate.SopTask(sql.FieldIn(FieldStatus, vs...))
  164. }
  165. // StatusNotIn applies the NotIn predicate on the "status" field.
  166. func StatusNotIn(vs ...uint8) predicate.SopTask {
  167. return predicate.SopTask(sql.FieldNotIn(FieldStatus, vs...))
  168. }
  169. // StatusGT applies the GT predicate on the "status" field.
  170. func StatusGT(v uint8) predicate.SopTask {
  171. return predicate.SopTask(sql.FieldGT(FieldStatus, v))
  172. }
  173. // StatusGTE applies the GTE predicate on the "status" field.
  174. func StatusGTE(v uint8) predicate.SopTask {
  175. return predicate.SopTask(sql.FieldGTE(FieldStatus, v))
  176. }
  177. // StatusLT applies the LT predicate on the "status" field.
  178. func StatusLT(v uint8) predicate.SopTask {
  179. return predicate.SopTask(sql.FieldLT(FieldStatus, v))
  180. }
  181. // StatusLTE applies the LTE predicate on the "status" field.
  182. func StatusLTE(v uint8) predicate.SopTask {
  183. return predicate.SopTask(sql.FieldLTE(FieldStatus, v))
  184. }
  185. // StatusIsNil applies the IsNil predicate on the "status" field.
  186. func StatusIsNil() predicate.SopTask {
  187. return predicate.SopTask(sql.FieldIsNull(FieldStatus))
  188. }
  189. // StatusNotNil applies the NotNil predicate on the "status" field.
  190. func StatusNotNil() predicate.SopTask {
  191. return predicate.SopTask(sql.FieldNotNull(FieldStatus))
  192. }
  193. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  194. func DeletedAtEQ(v time.Time) predicate.SopTask {
  195. return predicate.SopTask(sql.FieldEQ(FieldDeletedAt, v))
  196. }
  197. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  198. func DeletedAtNEQ(v time.Time) predicate.SopTask {
  199. return predicate.SopTask(sql.FieldNEQ(FieldDeletedAt, v))
  200. }
  201. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  202. func DeletedAtIn(vs ...time.Time) predicate.SopTask {
  203. return predicate.SopTask(sql.FieldIn(FieldDeletedAt, vs...))
  204. }
  205. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  206. func DeletedAtNotIn(vs ...time.Time) predicate.SopTask {
  207. return predicate.SopTask(sql.FieldNotIn(FieldDeletedAt, vs...))
  208. }
  209. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  210. func DeletedAtGT(v time.Time) predicate.SopTask {
  211. return predicate.SopTask(sql.FieldGT(FieldDeletedAt, v))
  212. }
  213. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  214. func DeletedAtGTE(v time.Time) predicate.SopTask {
  215. return predicate.SopTask(sql.FieldGTE(FieldDeletedAt, v))
  216. }
  217. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  218. func DeletedAtLT(v time.Time) predicate.SopTask {
  219. return predicate.SopTask(sql.FieldLT(FieldDeletedAt, v))
  220. }
  221. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  222. func DeletedAtLTE(v time.Time) predicate.SopTask {
  223. return predicate.SopTask(sql.FieldLTE(FieldDeletedAt, v))
  224. }
  225. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  226. func DeletedAtIsNil() predicate.SopTask {
  227. return predicate.SopTask(sql.FieldIsNull(FieldDeletedAt))
  228. }
  229. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  230. func DeletedAtNotNil() predicate.SopTask {
  231. return predicate.SopTask(sql.FieldNotNull(FieldDeletedAt))
  232. }
  233. // NameEQ applies the EQ predicate on the "name" field.
  234. func NameEQ(v string) predicate.SopTask {
  235. return predicate.SopTask(sql.FieldEQ(FieldName, v))
  236. }
  237. // NameNEQ applies the NEQ predicate on the "name" field.
  238. func NameNEQ(v string) predicate.SopTask {
  239. return predicate.SopTask(sql.FieldNEQ(FieldName, v))
  240. }
  241. // NameIn applies the In predicate on the "name" field.
  242. func NameIn(vs ...string) predicate.SopTask {
  243. return predicate.SopTask(sql.FieldIn(FieldName, vs...))
  244. }
  245. // NameNotIn applies the NotIn predicate on the "name" field.
  246. func NameNotIn(vs ...string) predicate.SopTask {
  247. return predicate.SopTask(sql.FieldNotIn(FieldName, vs...))
  248. }
  249. // NameGT applies the GT predicate on the "name" field.
  250. func NameGT(v string) predicate.SopTask {
  251. return predicate.SopTask(sql.FieldGT(FieldName, v))
  252. }
  253. // NameGTE applies the GTE predicate on the "name" field.
  254. func NameGTE(v string) predicate.SopTask {
  255. return predicate.SopTask(sql.FieldGTE(FieldName, v))
  256. }
  257. // NameLT applies the LT predicate on the "name" field.
  258. func NameLT(v string) predicate.SopTask {
  259. return predicate.SopTask(sql.FieldLT(FieldName, v))
  260. }
  261. // NameLTE applies the LTE predicate on the "name" field.
  262. func NameLTE(v string) predicate.SopTask {
  263. return predicate.SopTask(sql.FieldLTE(FieldName, v))
  264. }
  265. // NameContains applies the Contains predicate on the "name" field.
  266. func NameContains(v string) predicate.SopTask {
  267. return predicate.SopTask(sql.FieldContains(FieldName, v))
  268. }
  269. // NameHasPrefix applies the HasPrefix predicate on the "name" field.
  270. func NameHasPrefix(v string) predicate.SopTask {
  271. return predicate.SopTask(sql.FieldHasPrefix(FieldName, v))
  272. }
  273. // NameHasSuffix applies the HasSuffix predicate on the "name" field.
  274. func NameHasSuffix(v string) predicate.SopTask {
  275. return predicate.SopTask(sql.FieldHasSuffix(FieldName, v))
  276. }
  277. // NameEqualFold applies the EqualFold predicate on the "name" field.
  278. func NameEqualFold(v string) predicate.SopTask {
  279. return predicate.SopTask(sql.FieldEqualFold(FieldName, v))
  280. }
  281. // NameContainsFold applies the ContainsFold predicate on the "name" field.
  282. func NameContainsFold(v string) predicate.SopTask {
  283. return predicate.SopTask(sql.FieldContainsFold(FieldName, v))
  284. }
  285. // BotWxidListIsNil applies the IsNil predicate on the "bot_wxid_list" field.
  286. func BotWxidListIsNil() predicate.SopTask {
  287. return predicate.SopTask(sql.FieldIsNull(FieldBotWxidList))
  288. }
  289. // BotWxidListNotNil applies the NotNil predicate on the "bot_wxid_list" field.
  290. func BotWxidListNotNil() predicate.SopTask {
  291. return predicate.SopTask(sql.FieldNotNull(FieldBotWxidList))
  292. }
  293. // TypeEQ applies the EQ predicate on the "type" field.
  294. func TypeEQ(v int) predicate.SopTask {
  295. return predicate.SopTask(sql.FieldEQ(FieldType, v))
  296. }
  297. // TypeNEQ applies the NEQ predicate on the "type" field.
  298. func TypeNEQ(v int) predicate.SopTask {
  299. return predicate.SopTask(sql.FieldNEQ(FieldType, v))
  300. }
  301. // TypeIn applies the In predicate on the "type" field.
  302. func TypeIn(vs ...int) predicate.SopTask {
  303. return predicate.SopTask(sql.FieldIn(FieldType, vs...))
  304. }
  305. // TypeNotIn applies the NotIn predicate on the "type" field.
  306. func TypeNotIn(vs ...int) predicate.SopTask {
  307. return predicate.SopTask(sql.FieldNotIn(FieldType, vs...))
  308. }
  309. // TypeGT applies the GT predicate on the "type" field.
  310. func TypeGT(v int) predicate.SopTask {
  311. return predicate.SopTask(sql.FieldGT(FieldType, v))
  312. }
  313. // TypeGTE applies the GTE predicate on the "type" field.
  314. func TypeGTE(v int) predicate.SopTask {
  315. return predicate.SopTask(sql.FieldGTE(FieldType, v))
  316. }
  317. // TypeLT applies the LT predicate on the "type" field.
  318. func TypeLT(v int) predicate.SopTask {
  319. return predicate.SopTask(sql.FieldLT(FieldType, v))
  320. }
  321. // TypeLTE applies the LTE predicate on the "type" field.
  322. func TypeLTE(v int) predicate.SopTask {
  323. return predicate.SopTask(sql.FieldLTE(FieldType, v))
  324. }
  325. // PlanStartTimeEQ applies the EQ predicate on the "plan_start_time" field.
  326. func PlanStartTimeEQ(v time.Time) predicate.SopTask {
  327. return predicate.SopTask(sql.FieldEQ(FieldPlanStartTime, v))
  328. }
  329. // PlanStartTimeNEQ applies the NEQ predicate on the "plan_start_time" field.
  330. func PlanStartTimeNEQ(v time.Time) predicate.SopTask {
  331. return predicate.SopTask(sql.FieldNEQ(FieldPlanStartTime, v))
  332. }
  333. // PlanStartTimeIn applies the In predicate on the "plan_start_time" field.
  334. func PlanStartTimeIn(vs ...time.Time) predicate.SopTask {
  335. return predicate.SopTask(sql.FieldIn(FieldPlanStartTime, vs...))
  336. }
  337. // PlanStartTimeNotIn applies the NotIn predicate on the "plan_start_time" field.
  338. func PlanStartTimeNotIn(vs ...time.Time) predicate.SopTask {
  339. return predicate.SopTask(sql.FieldNotIn(FieldPlanStartTime, vs...))
  340. }
  341. // PlanStartTimeGT applies the GT predicate on the "plan_start_time" field.
  342. func PlanStartTimeGT(v time.Time) predicate.SopTask {
  343. return predicate.SopTask(sql.FieldGT(FieldPlanStartTime, v))
  344. }
  345. // PlanStartTimeGTE applies the GTE predicate on the "plan_start_time" field.
  346. func PlanStartTimeGTE(v time.Time) predicate.SopTask {
  347. return predicate.SopTask(sql.FieldGTE(FieldPlanStartTime, v))
  348. }
  349. // PlanStartTimeLT applies the LT predicate on the "plan_start_time" field.
  350. func PlanStartTimeLT(v time.Time) predicate.SopTask {
  351. return predicate.SopTask(sql.FieldLT(FieldPlanStartTime, v))
  352. }
  353. // PlanStartTimeLTE applies the LTE predicate on the "plan_start_time" field.
  354. func PlanStartTimeLTE(v time.Time) predicate.SopTask {
  355. return predicate.SopTask(sql.FieldLTE(FieldPlanStartTime, v))
  356. }
  357. // PlanStartTimeIsNil applies the IsNil predicate on the "plan_start_time" field.
  358. func PlanStartTimeIsNil() predicate.SopTask {
  359. return predicate.SopTask(sql.FieldIsNull(FieldPlanStartTime))
  360. }
  361. // PlanStartTimeNotNil applies the NotNil predicate on the "plan_start_time" field.
  362. func PlanStartTimeNotNil() predicate.SopTask {
  363. return predicate.SopTask(sql.FieldNotNull(FieldPlanStartTime))
  364. }
  365. // PlanEndTimeEQ applies the EQ predicate on the "plan_end_time" field.
  366. func PlanEndTimeEQ(v time.Time) predicate.SopTask {
  367. return predicate.SopTask(sql.FieldEQ(FieldPlanEndTime, v))
  368. }
  369. // PlanEndTimeNEQ applies the NEQ predicate on the "plan_end_time" field.
  370. func PlanEndTimeNEQ(v time.Time) predicate.SopTask {
  371. return predicate.SopTask(sql.FieldNEQ(FieldPlanEndTime, v))
  372. }
  373. // PlanEndTimeIn applies the In predicate on the "plan_end_time" field.
  374. func PlanEndTimeIn(vs ...time.Time) predicate.SopTask {
  375. return predicate.SopTask(sql.FieldIn(FieldPlanEndTime, vs...))
  376. }
  377. // PlanEndTimeNotIn applies the NotIn predicate on the "plan_end_time" field.
  378. func PlanEndTimeNotIn(vs ...time.Time) predicate.SopTask {
  379. return predicate.SopTask(sql.FieldNotIn(FieldPlanEndTime, vs...))
  380. }
  381. // PlanEndTimeGT applies the GT predicate on the "plan_end_time" field.
  382. func PlanEndTimeGT(v time.Time) predicate.SopTask {
  383. return predicate.SopTask(sql.FieldGT(FieldPlanEndTime, v))
  384. }
  385. // PlanEndTimeGTE applies the GTE predicate on the "plan_end_time" field.
  386. func PlanEndTimeGTE(v time.Time) predicate.SopTask {
  387. return predicate.SopTask(sql.FieldGTE(FieldPlanEndTime, v))
  388. }
  389. // PlanEndTimeLT applies the LT predicate on the "plan_end_time" field.
  390. func PlanEndTimeLT(v time.Time) predicate.SopTask {
  391. return predicate.SopTask(sql.FieldLT(FieldPlanEndTime, v))
  392. }
  393. // PlanEndTimeLTE applies the LTE predicate on the "plan_end_time" field.
  394. func PlanEndTimeLTE(v time.Time) predicate.SopTask {
  395. return predicate.SopTask(sql.FieldLTE(FieldPlanEndTime, v))
  396. }
  397. // PlanEndTimeIsNil applies the IsNil predicate on the "plan_end_time" field.
  398. func PlanEndTimeIsNil() predicate.SopTask {
  399. return predicate.SopTask(sql.FieldIsNull(FieldPlanEndTime))
  400. }
  401. // PlanEndTimeNotNil applies the NotNil predicate on the "plan_end_time" field.
  402. func PlanEndTimeNotNil() predicate.SopTask {
  403. return predicate.SopTask(sql.FieldNotNull(FieldPlanEndTime))
  404. }
  405. // CreatorIDEQ applies the EQ predicate on the "creator_id" field.
  406. func CreatorIDEQ(v string) predicate.SopTask {
  407. return predicate.SopTask(sql.FieldEQ(FieldCreatorID, v))
  408. }
  409. // CreatorIDNEQ applies the NEQ predicate on the "creator_id" field.
  410. func CreatorIDNEQ(v string) predicate.SopTask {
  411. return predicate.SopTask(sql.FieldNEQ(FieldCreatorID, v))
  412. }
  413. // CreatorIDIn applies the In predicate on the "creator_id" field.
  414. func CreatorIDIn(vs ...string) predicate.SopTask {
  415. return predicate.SopTask(sql.FieldIn(FieldCreatorID, vs...))
  416. }
  417. // CreatorIDNotIn applies the NotIn predicate on the "creator_id" field.
  418. func CreatorIDNotIn(vs ...string) predicate.SopTask {
  419. return predicate.SopTask(sql.FieldNotIn(FieldCreatorID, vs...))
  420. }
  421. // CreatorIDGT applies the GT predicate on the "creator_id" field.
  422. func CreatorIDGT(v string) predicate.SopTask {
  423. return predicate.SopTask(sql.FieldGT(FieldCreatorID, v))
  424. }
  425. // CreatorIDGTE applies the GTE predicate on the "creator_id" field.
  426. func CreatorIDGTE(v string) predicate.SopTask {
  427. return predicate.SopTask(sql.FieldGTE(FieldCreatorID, v))
  428. }
  429. // CreatorIDLT applies the LT predicate on the "creator_id" field.
  430. func CreatorIDLT(v string) predicate.SopTask {
  431. return predicate.SopTask(sql.FieldLT(FieldCreatorID, v))
  432. }
  433. // CreatorIDLTE applies the LTE predicate on the "creator_id" field.
  434. func CreatorIDLTE(v string) predicate.SopTask {
  435. return predicate.SopTask(sql.FieldLTE(FieldCreatorID, v))
  436. }
  437. // CreatorIDContains applies the Contains predicate on the "creator_id" field.
  438. func CreatorIDContains(v string) predicate.SopTask {
  439. return predicate.SopTask(sql.FieldContains(FieldCreatorID, v))
  440. }
  441. // CreatorIDHasPrefix applies the HasPrefix predicate on the "creator_id" field.
  442. func CreatorIDHasPrefix(v string) predicate.SopTask {
  443. return predicate.SopTask(sql.FieldHasPrefix(FieldCreatorID, v))
  444. }
  445. // CreatorIDHasSuffix applies the HasSuffix predicate on the "creator_id" field.
  446. func CreatorIDHasSuffix(v string) predicate.SopTask {
  447. return predicate.SopTask(sql.FieldHasSuffix(FieldCreatorID, v))
  448. }
  449. // CreatorIDIsNil applies the IsNil predicate on the "creator_id" field.
  450. func CreatorIDIsNil() predicate.SopTask {
  451. return predicate.SopTask(sql.FieldIsNull(FieldCreatorID))
  452. }
  453. // CreatorIDNotNil applies the NotNil predicate on the "creator_id" field.
  454. func CreatorIDNotNil() predicate.SopTask {
  455. return predicate.SopTask(sql.FieldNotNull(FieldCreatorID))
  456. }
  457. // CreatorIDEqualFold applies the EqualFold predicate on the "creator_id" field.
  458. func CreatorIDEqualFold(v string) predicate.SopTask {
  459. return predicate.SopTask(sql.FieldEqualFold(FieldCreatorID, v))
  460. }
  461. // CreatorIDContainsFold applies the ContainsFold predicate on the "creator_id" field.
  462. func CreatorIDContainsFold(v string) predicate.SopTask {
  463. return predicate.SopTask(sql.FieldContainsFold(FieldCreatorID, v))
  464. }
  465. // OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
  466. func OrganizationIDEQ(v uint64) predicate.SopTask {
  467. return predicate.SopTask(sql.FieldEQ(FieldOrganizationID, v))
  468. }
  469. // OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
  470. func OrganizationIDNEQ(v uint64) predicate.SopTask {
  471. return predicate.SopTask(sql.FieldNEQ(FieldOrganizationID, v))
  472. }
  473. // OrganizationIDIn applies the In predicate on the "organization_id" field.
  474. func OrganizationIDIn(vs ...uint64) predicate.SopTask {
  475. return predicate.SopTask(sql.FieldIn(FieldOrganizationID, vs...))
  476. }
  477. // OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
  478. func OrganizationIDNotIn(vs ...uint64) predicate.SopTask {
  479. return predicate.SopTask(sql.FieldNotIn(FieldOrganizationID, vs...))
  480. }
  481. // OrganizationIDGT applies the GT predicate on the "organization_id" field.
  482. func OrganizationIDGT(v uint64) predicate.SopTask {
  483. return predicate.SopTask(sql.FieldGT(FieldOrganizationID, v))
  484. }
  485. // OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
  486. func OrganizationIDGTE(v uint64) predicate.SopTask {
  487. return predicate.SopTask(sql.FieldGTE(FieldOrganizationID, v))
  488. }
  489. // OrganizationIDLT applies the LT predicate on the "organization_id" field.
  490. func OrganizationIDLT(v uint64) predicate.SopTask {
  491. return predicate.SopTask(sql.FieldLT(FieldOrganizationID, v))
  492. }
  493. // OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
  494. func OrganizationIDLTE(v uint64) predicate.SopTask {
  495. return predicate.SopTask(sql.FieldLTE(FieldOrganizationID, v))
  496. }
  497. // OrganizationIDIsNil applies the IsNil predicate on the "organization_id" field.
  498. func OrganizationIDIsNil() predicate.SopTask {
  499. return predicate.SopTask(sql.FieldIsNull(FieldOrganizationID))
  500. }
  501. // OrganizationIDNotNil applies the NotNil predicate on the "organization_id" field.
  502. func OrganizationIDNotNil() predicate.SopTask {
  503. return predicate.SopTask(sql.FieldNotNull(FieldOrganizationID))
  504. }
  505. // TokenEQ applies the EQ predicate on the "token" field.
  506. func TokenEQ(v string) predicate.SopTask {
  507. return predicate.SopTask(sql.FieldEQ(FieldToken, v))
  508. }
  509. // TokenNEQ applies the NEQ predicate on the "token" field.
  510. func TokenNEQ(v string) predicate.SopTask {
  511. return predicate.SopTask(sql.FieldNEQ(FieldToken, v))
  512. }
  513. // TokenIn applies the In predicate on the "token" field.
  514. func TokenIn(vs ...string) predicate.SopTask {
  515. return predicate.SopTask(sql.FieldIn(FieldToken, vs...))
  516. }
  517. // TokenNotIn applies the NotIn predicate on the "token" field.
  518. func TokenNotIn(vs ...string) predicate.SopTask {
  519. return predicate.SopTask(sql.FieldNotIn(FieldToken, vs...))
  520. }
  521. // TokenGT applies the GT predicate on the "token" field.
  522. func TokenGT(v string) predicate.SopTask {
  523. return predicate.SopTask(sql.FieldGT(FieldToken, v))
  524. }
  525. // TokenGTE applies the GTE predicate on the "token" field.
  526. func TokenGTE(v string) predicate.SopTask {
  527. return predicate.SopTask(sql.FieldGTE(FieldToken, v))
  528. }
  529. // TokenLT applies the LT predicate on the "token" field.
  530. func TokenLT(v string) predicate.SopTask {
  531. return predicate.SopTask(sql.FieldLT(FieldToken, v))
  532. }
  533. // TokenLTE applies the LTE predicate on the "token" field.
  534. func TokenLTE(v string) predicate.SopTask {
  535. return predicate.SopTask(sql.FieldLTE(FieldToken, v))
  536. }
  537. // TokenContains applies the Contains predicate on the "token" field.
  538. func TokenContains(v string) predicate.SopTask {
  539. return predicate.SopTask(sql.FieldContains(FieldToken, v))
  540. }
  541. // TokenHasPrefix applies the HasPrefix predicate on the "token" field.
  542. func TokenHasPrefix(v string) predicate.SopTask {
  543. return predicate.SopTask(sql.FieldHasPrefix(FieldToken, v))
  544. }
  545. // TokenHasSuffix applies the HasSuffix predicate on the "token" field.
  546. func TokenHasSuffix(v string) predicate.SopTask {
  547. return predicate.SopTask(sql.FieldHasSuffix(FieldToken, v))
  548. }
  549. // TokenIsNil applies the IsNil predicate on the "token" field.
  550. func TokenIsNil() predicate.SopTask {
  551. return predicate.SopTask(sql.FieldIsNull(FieldToken))
  552. }
  553. // TokenNotNil applies the NotNil predicate on the "token" field.
  554. func TokenNotNil() predicate.SopTask {
  555. return predicate.SopTask(sql.FieldNotNull(FieldToken))
  556. }
  557. // TokenEqualFold applies the EqualFold predicate on the "token" field.
  558. func TokenEqualFold(v string) predicate.SopTask {
  559. return predicate.SopTask(sql.FieldEqualFold(FieldToken, v))
  560. }
  561. // TokenContainsFold applies the ContainsFold predicate on the "token" field.
  562. func TokenContainsFold(v string) predicate.SopTask {
  563. return predicate.SopTask(sql.FieldContainsFold(FieldToken, v))
  564. }
  565. // HasTaskStages applies the HasEdge predicate on the "task_stages" edge.
  566. func HasTaskStages() predicate.SopTask {
  567. return predicate.SopTask(func(s *sql.Selector) {
  568. step := sqlgraph.NewStep(
  569. sqlgraph.From(Table, FieldID),
  570. sqlgraph.Edge(sqlgraph.O2M, false, TaskStagesTable, TaskStagesColumn),
  571. )
  572. sqlgraph.HasNeighbors(s, step)
  573. })
  574. }
  575. // HasTaskStagesWith applies the HasEdge predicate on the "task_stages" edge with a given conditions (other predicates).
  576. func HasTaskStagesWith(preds ...predicate.SopStage) predicate.SopTask {
  577. return predicate.SopTask(func(s *sql.Selector) {
  578. step := newTaskStagesStep()
  579. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  580. for _, p := range preds {
  581. p(s)
  582. }
  583. })
  584. })
  585. }
  586. // And groups predicates with the AND operator between them.
  587. func And(predicates ...predicate.SopTask) predicate.SopTask {
  588. return predicate.SopTask(sql.AndPredicates(predicates...))
  589. }
  590. // Or groups predicates with the OR operator between them.
  591. func Or(predicates ...predicate.SopTask) predicate.SopTask {
  592. return predicate.SopTask(sql.OrPredicates(predicates...))
  593. }
  594. // Not applies the not operator on the given predicate.
  595. func Not(p predicate.SopTask) predicate.SopTask {
  596. return predicate.SopTask(sql.NotPredicates(p))
  597. }