where.go 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674
  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. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  86. func CreatedAtEQ(v time.Time) predicate.SopTask {
  87. return predicate.SopTask(sql.FieldEQ(FieldCreatedAt, v))
  88. }
  89. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  90. func CreatedAtNEQ(v time.Time) predicate.SopTask {
  91. return predicate.SopTask(sql.FieldNEQ(FieldCreatedAt, v))
  92. }
  93. // CreatedAtIn applies the In predicate on the "created_at" field.
  94. func CreatedAtIn(vs ...time.Time) predicate.SopTask {
  95. return predicate.SopTask(sql.FieldIn(FieldCreatedAt, vs...))
  96. }
  97. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  98. func CreatedAtNotIn(vs ...time.Time) predicate.SopTask {
  99. return predicate.SopTask(sql.FieldNotIn(FieldCreatedAt, vs...))
  100. }
  101. // CreatedAtGT applies the GT predicate on the "created_at" field.
  102. func CreatedAtGT(v time.Time) predicate.SopTask {
  103. return predicate.SopTask(sql.FieldGT(FieldCreatedAt, v))
  104. }
  105. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  106. func CreatedAtGTE(v time.Time) predicate.SopTask {
  107. return predicate.SopTask(sql.FieldGTE(FieldCreatedAt, v))
  108. }
  109. // CreatedAtLT applies the LT predicate on the "created_at" field.
  110. func CreatedAtLT(v time.Time) predicate.SopTask {
  111. return predicate.SopTask(sql.FieldLT(FieldCreatedAt, v))
  112. }
  113. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  114. func CreatedAtLTE(v time.Time) predicate.SopTask {
  115. return predicate.SopTask(sql.FieldLTE(FieldCreatedAt, v))
  116. }
  117. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  118. func UpdatedAtEQ(v time.Time) predicate.SopTask {
  119. return predicate.SopTask(sql.FieldEQ(FieldUpdatedAt, v))
  120. }
  121. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  122. func UpdatedAtNEQ(v time.Time) predicate.SopTask {
  123. return predicate.SopTask(sql.FieldNEQ(FieldUpdatedAt, v))
  124. }
  125. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  126. func UpdatedAtIn(vs ...time.Time) predicate.SopTask {
  127. return predicate.SopTask(sql.FieldIn(FieldUpdatedAt, vs...))
  128. }
  129. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  130. func UpdatedAtNotIn(vs ...time.Time) predicate.SopTask {
  131. return predicate.SopTask(sql.FieldNotIn(FieldUpdatedAt, vs...))
  132. }
  133. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  134. func UpdatedAtGT(v time.Time) predicate.SopTask {
  135. return predicate.SopTask(sql.FieldGT(FieldUpdatedAt, v))
  136. }
  137. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  138. func UpdatedAtGTE(v time.Time) predicate.SopTask {
  139. return predicate.SopTask(sql.FieldGTE(FieldUpdatedAt, v))
  140. }
  141. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  142. func UpdatedAtLT(v time.Time) predicate.SopTask {
  143. return predicate.SopTask(sql.FieldLT(FieldUpdatedAt, v))
  144. }
  145. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  146. func UpdatedAtLTE(v time.Time) predicate.SopTask {
  147. return predicate.SopTask(sql.FieldLTE(FieldUpdatedAt, v))
  148. }
  149. // StatusEQ applies the EQ predicate on the "status" field.
  150. func StatusEQ(v uint8) predicate.SopTask {
  151. return predicate.SopTask(sql.FieldEQ(FieldStatus, v))
  152. }
  153. // StatusNEQ applies the NEQ predicate on the "status" field.
  154. func StatusNEQ(v uint8) predicate.SopTask {
  155. return predicate.SopTask(sql.FieldNEQ(FieldStatus, v))
  156. }
  157. // StatusIn applies the In predicate on the "status" field.
  158. func StatusIn(vs ...uint8) predicate.SopTask {
  159. return predicate.SopTask(sql.FieldIn(FieldStatus, vs...))
  160. }
  161. // StatusNotIn applies the NotIn predicate on the "status" field.
  162. func StatusNotIn(vs ...uint8) predicate.SopTask {
  163. return predicate.SopTask(sql.FieldNotIn(FieldStatus, vs...))
  164. }
  165. // StatusGT applies the GT predicate on the "status" field.
  166. func StatusGT(v uint8) predicate.SopTask {
  167. return predicate.SopTask(sql.FieldGT(FieldStatus, v))
  168. }
  169. // StatusGTE applies the GTE predicate on the "status" field.
  170. func StatusGTE(v uint8) predicate.SopTask {
  171. return predicate.SopTask(sql.FieldGTE(FieldStatus, v))
  172. }
  173. // StatusLT applies the LT predicate on the "status" field.
  174. func StatusLT(v uint8) predicate.SopTask {
  175. return predicate.SopTask(sql.FieldLT(FieldStatus, v))
  176. }
  177. // StatusLTE applies the LTE predicate on the "status" field.
  178. func StatusLTE(v uint8) predicate.SopTask {
  179. return predicate.SopTask(sql.FieldLTE(FieldStatus, v))
  180. }
  181. // StatusIsNil applies the IsNil predicate on the "status" field.
  182. func StatusIsNil() predicate.SopTask {
  183. return predicate.SopTask(sql.FieldIsNull(FieldStatus))
  184. }
  185. // StatusNotNil applies the NotNil predicate on the "status" field.
  186. func StatusNotNil() predicate.SopTask {
  187. return predicate.SopTask(sql.FieldNotNull(FieldStatus))
  188. }
  189. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  190. func DeletedAtEQ(v time.Time) predicate.SopTask {
  191. return predicate.SopTask(sql.FieldEQ(FieldDeletedAt, v))
  192. }
  193. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  194. func DeletedAtNEQ(v time.Time) predicate.SopTask {
  195. return predicate.SopTask(sql.FieldNEQ(FieldDeletedAt, v))
  196. }
  197. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  198. func DeletedAtIn(vs ...time.Time) predicate.SopTask {
  199. return predicate.SopTask(sql.FieldIn(FieldDeletedAt, vs...))
  200. }
  201. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  202. func DeletedAtNotIn(vs ...time.Time) predicate.SopTask {
  203. return predicate.SopTask(sql.FieldNotIn(FieldDeletedAt, vs...))
  204. }
  205. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  206. func DeletedAtGT(v time.Time) predicate.SopTask {
  207. return predicate.SopTask(sql.FieldGT(FieldDeletedAt, v))
  208. }
  209. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  210. func DeletedAtGTE(v time.Time) predicate.SopTask {
  211. return predicate.SopTask(sql.FieldGTE(FieldDeletedAt, v))
  212. }
  213. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  214. func DeletedAtLT(v time.Time) predicate.SopTask {
  215. return predicate.SopTask(sql.FieldLT(FieldDeletedAt, v))
  216. }
  217. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  218. func DeletedAtLTE(v time.Time) predicate.SopTask {
  219. return predicate.SopTask(sql.FieldLTE(FieldDeletedAt, v))
  220. }
  221. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  222. func DeletedAtIsNil() predicate.SopTask {
  223. return predicate.SopTask(sql.FieldIsNull(FieldDeletedAt))
  224. }
  225. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  226. func DeletedAtNotNil() predicate.SopTask {
  227. return predicate.SopTask(sql.FieldNotNull(FieldDeletedAt))
  228. }
  229. // NameEQ applies the EQ predicate on the "name" field.
  230. func NameEQ(v string) predicate.SopTask {
  231. return predicate.SopTask(sql.FieldEQ(FieldName, v))
  232. }
  233. // NameNEQ applies the NEQ predicate on the "name" field.
  234. func NameNEQ(v string) predicate.SopTask {
  235. return predicate.SopTask(sql.FieldNEQ(FieldName, v))
  236. }
  237. // NameIn applies the In predicate on the "name" field.
  238. func NameIn(vs ...string) predicate.SopTask {
  239. return predicate.SopTask(sql.FieldIn(FieldName, vs...))
  240. }
  241. // NameNotIn applies the NotIn predicate on the "name" field.
  242. func NameNotIn(vs ...string) predicate.SopTask {
  243. return predicate.SopTask(sql.FieldNotIn(FieldName, vs...))
  244. }
  245. // NameGT applies the GT predicate on the "name" field.
  246. func NameGT(v string) predicate.SopTask {
  247. return predicate.SopTask(sql.FieldGT(FieldName, v))
  248. }
  249. // NameGTE applies the GTE predicate on the "name" field.
  250. func NameGTE(v string) predicate.SopTask {
  251. return predicate.SopTask(sql.FieldGTE(FieldName, v))
  252. }
  253. // NameLT applies the LT predicate on the "name" field.
  254. func NameLT(v string) predicate.SopTask {
  255. return predicate.SopTask(sql.FieldLT(FieldName, v))
  256. }
  257. // NameLTE applies the LTE predicate on the "name" field.
  258. func NameLTE(v string) predicate.SopTask {
  259. return predicate.SopTask(sql.FieldLTE(FieldName, v))
  260. }
  261. // NameContains applies the Contains predicate on the "name" field.
  262. func NameContains(v string) predicate.SopTask {
  263. return predicate.SopTask(sql.FieldContains(FieldName, v))
  264. }
  265. // NameHasPrefix applies the HasPrefix predicate on the "name" field.
  266. func NameHasPrefix(v string) predicate.SopTask {
  267. return predicate.SopTask(sql.FieldHasPrefix(FieldName, v))
  268. }
  269. // NameHasSuffix applies the HasSuffix predicate on the "name" field.
  270. func NameHasSuffix(v string) predicate.SopTask {
  271. return predicate.SopTask(sql.FieldHasSuffix(FieldName, v))
  272. }
  273. // NameEqualFold applies the EqualFold predicate on the "name" field.
  274. func NameEqualFold(v string) predicate.SopTask {
  275. return predicate.SopTask(sql.FieldEqualFold(FieldName, v))
  276. }
  277. // NameContainsFold applies the ContainsFold predicate on the "name" field.
  278. func NameContainsFold(v string) predicate.SopTask {
  279. return predicate.SopTask(sql.FieldContainsFold(FieldName, v))
  280. }
  281. // BotWxidListIsNil applies the IsNil predicate on the "bot_wxid_list" field.
  282. func BotWxidListIsNil() predicate.SopTask {
  283. return predicate.SopTask(sql.FieldIsNull(FieldBotWxidList))
  284. }
  285. // BotWxidListNotNil applies the NotNil predicate on the "bot_wxid_list" field.
  286. func BotWxidListNotNil() predicate.SopTask {
  287. return predicate.SopTask(sql.FieldNotNull(FieldBotWxidList))
  288. }
  289. // TypeEQ applies the EQ predicate on the "type" field.
  290. func TypeEQ(v int) predicate.SopTask {
  291. return predicate.SopTask(sql.FieldEQ(FieldType, v))
  292. }
  293. // TypeNEQ applies the NEQ predicate on the "type" field.
  294. func TypeNEQ(v int) predicate.SopTask {
  295. return predicate.SopTask(sql.FieldNEQ(FieldType, v))
  296. }
  297. // TypeIn applies the In predicate on the "type" field.
  298. func TypeIn(vs ...int) predicate.SopTask {
  299. return predicate.SopTask(sql.FieldIn(FieldType, vs...))
  300. }
  301. // TypeNotIn applies the NotIn predicate on the "type" field.
  302. func TypeNotIn(vs ...int) predicate.SopTask {
  303. return predicate.SopTask(sql.FieldNotIn(FieldType, vs...))
  304. }
  305. // TypeGT applies the GT predicate on the "type" field.
  306. func TypeGT(v int) predicate.SopTask {
  307. return predicate.SopTask(sql.FieldGT(FieldType, v))
  308. }
  309. // TypeGTE applies the GTE predicate on the "type" field.
  310. func TypeGTE(v int) predicate.SopTask {
  311. return predicate.SopTask(sql.FieldGTE(FieldType, v))
  312. }
  313. // TypeLT applies the LT predicate on the "type" field.
  314. func TypeLT(v int) predicate.SopTask {
  315. return predicate.SopTask(sql.FieldLT(FieldType, v))
  316. }
  317. // TypeLTE applies the LTE predicate on the "type" field.
  318. func TypeLTE(v int) predicate.SopTask {
  319. return predicate.SopTask(sql.FieldLTE(FieldType, v))
  320. }
  321. // PlanStartTimeEQ applies the EQ predicate on the "plan_start_time" field.
  322. func PlanStartTimeEQ(v time.Time) predicate.SopTask {
  323. return predicate.SopTask(sql.FieldEQ(FieldPlanStartTime, v))
  324. }
  325. // PlanStartTimeNEQ applies the NEQ predicate on the "plan_start_time" field.
  326. func PlanStartTimeNEQ(v time.Time) predicate.SopTask {
  327. return predicate.SopTask(sql.FieldNEQ(FieldPlanStartTime, v))
  328. }
  329. // PlanStartTimeIn applies the In predicate on the "plan_start_time" field.
  330. func PlanStartTimeIn(vs ...time.Time) predicate.SopTask {
  331. return predicate.SopTask(sql.FieldIn(FieldPlanStartTime, vs...))
  332. }
  333. // PlanStartTimeNotIn applies the NotIn predicate on the "plan_start_time" field.
  334. func PlanStartTimeNotIn(vs ...time.Time) predicate.SopTask {
  335. return predicate.SopTask(sql.FieldNotIn(FieldPlanStartTime, vs...))
  336. }
  337. // PlanStartTimeGT applies the GT predicate on the "plan_start_time" field.
  338. func PlanStartTimeGT(v time.Time) predicate.SopTask {
  339. return predicate.SopTask(sql.FieldGT(FieldPlanStartTime, v))
  340. }
  341. // PlanStartTimeGTE applies the GTE predicate on the "plan_start_time" field.
  342. func PlanStartTimeGTE(v time.Time) predicate.SopTask {
  343. return predicate.SopTask(sql.FieldGTE(FieldPlanStartTime, v))
  344. }
  345. // PlanStartTimeLT applies the LT predicate on the "plan_start_time" field.
  346. func PlanStartTimeLT(v time.Time) predicate.SopTask {
  347. return predicate.SopTask(sql.FieldLT(FieldPlanStartTime, v))
  348. }
  349. // PlanStartTimeLTE applies the LTE predicate on the "plan_start_time" field.
  350. func PlanStartTimeLTE(v time.Time) predicate.SopTask {
  351. return predicate.SopTask(sql.FieldLTE(FieldPlanStartTime, v))
  352. }
  353. // PlanStartTimeIsNil applies the IsNil predicate on the "plan_start_time" field.
  354. func PlanStartTimeIsNil() predicate.SopTask {
  355. return predicate.SopTask(sql.FieldIsNull(FieldPlanStartTime))
  356. }
  357. // PlanStartTimeNotNil applies the NotNil predicate on the "plan_start_time" field.
  358. func PlanStartTimeNotNil() predicate.SopTask {
  359. return predicate.SopTask(sql.FieldNotNull(FieldPlanStartTime))
  360. }
  361. // PlanEndTimeEQ applies the EQ predicate on the "plan_end_time" field.
  362. func PlanEndTimeEQ(v time.Time) predicate.SopTask {
  363. return predicate.SopTask(sql.FieldEQ(FieldPlanEndTime, v))
  364. }
  365. // PlanEndTimeNEQ applies the NEQ predicate on the "plan_end_time" field.
  366. func PlanEndTimeNEQ(v time.Time) predicate.SopTask {
  367. return predicate.SopTask(sql.FieldNEQ(FieldPlanEndTime, v))
  368. }
  369. // PlanEndTimeIn applies the In predicate on the "plan_end_time" field.
  370. func PlanEndTimeIn(vs ...time.Time) predicate.SopTask {
  371. return predicate.SopTask(sql.FieldIn(FieldPlanEndTime, vs...))
  372. }
  373. // PlanEndTimeNotIn applies the NotIn predicate on the "plan_end_time" field.
  374. func PlanEndTimeNotIn(vs ...time.Time) predicate.SopTask {
  375. return predicate.SopTask(sql.FieldNotIn(FieldPlanEndTime, vs...))
  376. }
  377. // PlanEndTimeGT applies the GT predicate on the "plan_end_time" field.
  378. func PlanEndTimeGT(v time.Time) predicate.SopTask {
  379. return predicate.SopTask(sql.FieldGT(FieldPlanEndTime, v))
  380. }
  381. // PlanEndTimeGTE applies the GTE predicate on the "plan_end_time" field.
  382. func PlanEndTimeGTE(v time.Time) predicate.SopTask {
  383. return predicate.SopTask(sql.FieldGTE(FieldPlanEndTime, v))
  384. }
  385. // PlanEndTimeLT applies the LT predicate on the "plan_end_time" field.
  386. func PlanEndTimeLT(v time.Time) predicate.SopTask {
  387. return predicate.SopTask(sql.FieldLT(FieldPlanEndTime, v))
  388. }
  389. // PlanEndTimeLTE applies the LTE predicate on the "plan_end_time" field.
  390. func PlanEndTimeLTE(v time.Time) predicate.SopTask {
  391. return predicate.SopTask(sql.FieldLTE(FieldPlanEndTime, v))
  392. }
  393. // PlanEndTimeIsNil applies the IsNil predicate on the "plan_end_time" field.
  394. func PlanEndTimeIsNil() predicate.SopTask {
  395. return predicate.SopTask(sql.FieldIsNull(FieldPlanEndTime))
  396. }
  397. // PlanEndTimeNotNil applies the NotNil predicate on the "plan_end_time" field.
  398. func PlanEndTimeNotNil() predicate.SopTask {
  399. return predicate.SopTask(sql.FieldNotNull(FieldPlanEndTime))
  400. }
  401. // CreatorIDEQ applies the EQ predicate on the "creator_id" field.
  402. func CreatorIDEQ(v string) predicate.SopTask {
  403. return predicate.SopTask(sql.FieldEQ(FieldCreatorID, v))
  404. }
  405. // CreatorIDNEQ applies the NEQ predicate on the "creator_id" field.
  406. func CreatorIDNEQ(v string) predicate.SopTask {
  407. return predicate.SopTask(sql.FieldNEQ(FieldCreatorID, v))
  408. }
  409. // CreatorIDIn applies the In predicate on the "creator_id" field.
  410. func CreatorIDIn(vs ...string) predicate.SopTask {
  411. return predicate.SopTask(sql.FieldIn(FieldCreatorID, vs...))
  412. }
  413. // CreatorIDNotIn applies the NotIn predicate on the "creator_id" field.
  414. func CreatorIDNotIn(vs ...string) predicate.SopTask {
  415. return predicate.SopTask(sql.FieldNotIn(FieldCreatorID, vs...))
  416. }
  417. // CreatorIDGT applies the GT predicate on the "creator_id" field.
  418. func CreatorIDGT(v string) predicate.SopTask {
  419. return predicate.SopTask(sql.FieldGT(FieldCreatorID, v))
  420. }
  421. // CreatorIDGTE applies the GTE predicate on the "creator_id" field.
  422. func CreatorIDGTE(v string) predicate.SopTask {
  423. return predicate.SopTask(sql.FieldGTE(FieldCreatorID, v))
  424. }
  425. // CreatorIDLT applies the LT predicate on the "creator_id" field.
  426. func CreatorIDLT(v string) predicate.SopTask {
  427. return predicate.SopTask(sql.FieldLT(FieldCreatorID, v))
  428. }
  429. // CreatorIDLTE applies the LTE predicate on the "creator_id" field.
  430. func CreatorIDLTE(v string) predicate.SopTask {
  431. return predicate.SopTask(sql.FieldLTE(FieldCreatorID, v))
  432. }
  433. // CreatorIDContains applies the Contains predicate on the "creator_id" field.
  434. func CreatorIDContains(v string) predicate.SopTask {
  435. return predicate.SopTask(sql.FieldContains(FieldCreatorID, v))
  436. }
  437. // CreatorIDHasPrefix applies the HasPrefix predicate on the "creator_id" field.
  438. func CreatorIDHasPrefix(v string) predicate.SopTask {
  439. return predicate.SopTask(sql.FieldHasPrefix(FieldCreatorID, v))
  440. }
  441. // CreatorIDHasSuffix applies the HasSuffix predicate on the "creator_id" field.
  442. func CreatorIDHasSuffix(v string) predicate.SopTask {
  443. return predicate.SopTask(sql.FieldHasSuffix(FieldCreatorID, v))
  444. }
  445. // CreatorIDIsNil applies the IsNil predicate on the "creator_id" field.
  446. func CreatorIDIsNil() predicate.SopTask {
  447. return predicate.SopTask(sql.FieldIsNull(FieldCreatorID))
  448. }
  449. // CreatorIDNotNil applies the NotNil predicate on the "creator_id" field.
  450. func CreatorIDNotNil() predicate.SopTask {
  451. return predicate.SopTask(sql.FieldNotNull(FieldCreatorID))
  452. }
  453. // CreatorIDEqualFold applies the EqualFold predicate on the "creator_id" field.
  454. func CreatorIDEqualFold(v string) predicate.SopTask {
  455. return predicate.SopTask(sql.FieldEqualFold(FieldCreatorID, v))
  456. }
  457. // CreatorIDContainsFold applies the ContainsFold predicate on the "creator_id" field.
  458. func CreatorIDContainsFold(v string) predicate.SopTask {
  459. return predicate.SopTask(sql.FieldContainsFold(FieldCreatorID, v))
  460. }
  461. // OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
  462. func OrganizationIDEQ(v uint64) predicate.SopTask {
  463. return predicate.SopTask(sql.FieldEQ(FieldOrganizationID, v))
  464. }
  465. // OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
  466. func OrganizationIDNEQ(v uint64) predicate.SopTask {
  467. return predicate.SopTask(sql.FieldNEQ(FieldOrganizationID, v))
  468. }
  469. // OrganizationIDIn applies the In predicate on the "organization_id" field.
  470. func OrganizationIDIn(vs ...uint64) predicate.SopTask {
  471. return predicate.SopTask(sql.FieldIn(FieldOrganizationID, vs...))
  472. }
  473. // OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
  474. func OrganizationIDNotIn(vs ...uint64) predicate.SopTask {
  475. return predicate.SopTask(sql.FieldNotIn(FieldOrganizationID, vs...))
  476. }
  477. // OrganizationIDGT applies the GT predicate on the "organization_id" field.
  478. func OrganizationIDGT(v uint64) predicate.SopTask {
  479. return predicate.SopTask(sql.FieldGT(FieldOrganizationID, v))
  480. }
  481. // OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
  482. func OrganizationIDGTE(v uint64) predicate.SopTask {
  483. return predicate.SopTask(sql.FieldGTE(FieldOrganizationID, v))
  484. }
  485. // OrganizationIDLT applies the LT predicate on the "organization_id" field.
  486. func OrganizationIDLT(v uint64) predicate.SopTask {
  487. return predicate.SopTask(sql.FieldLT(FieldOrganizationID, v))
  488. }
  489. // OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
  490. func OrganizationIDLTE(v uint64) predicate.SopTask {
  491. return predicate.SopTask(sql.FieldLTE(FieldOrganizationID, v))
  492. }
  493. // OrganizationIDIsNil applies the IsNil predicate on the "organization_id" field.
  494. func OrganizationIDIsNil() predicate.SopTask {
  495. return predicate.SopTask(sql.FieldIsNull(FieldOrganizationID))
  496. }
  497. // OrganizationIDNotNil applies the NotNil predicate on the "organization_id" field.
  498. func OrganizationIDNotNil() predicate.SopTask {
  499. return predicate.SopTask(sql.FieldNotNull(FieldOrganizationID))
  500. }
  501. // TokenIsNil applies the IsNil predicate on the "token" field.
  502. func TokenIsNil() predicate.SopTask {
  503. return predicate.SopTask(sql.FieldIsNull(FieldToken))
  504. }
  505. // TokenNotNil applies the NotNil predicate on the "token" field.
  506. func TokenNotNil() predicate.SopTask {
  507. return predicate.SopTask(sql.FieldNotNull(FieldToken))
  508. }
  509. // HasTaskStages applies the HasEdge predicate on the "task_stages" edge.
  510. func HasTaskStages() predicate.SopTask {
  511. return predicate.SopTask(func(s *sql.Selector) {
  512. step := sqlgraph.NewStep(
  513. sqlgraph.From(Table, FieldID),
  514. sqlgraph.Edge(sqlgraph.O2M, false, TaskStagesTable, TaskStagesColumn),
  515. )
  516. sqlgraph.HasNeighbors(s, step)
  517. })
  518. }
  519. // HasTaskStagesWith applies the HasEdge predicate on the "task_stages" edge with a given conditions (other predicates).
  520. func HasTaskStagesWith(preds ...predicate.SopStage) predicate.SopTask {
  521. return predicate.SopTask(func(s *sql.Selector) {
  522. step := newTaskStagesStep()
  523. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  524. for _, p := range preds {
  525. p(s)
  526. }
  527. })
  528. })
  529. }
  530. // And groups predicates with the AND operator between them.
  531. func And(predicates ...predicate.SopTask) predicate.SopTask {
  532. return predicate.SopTask(sql.AndPredicates(predicates...))
  533. }
  534. // Or groups predicates with the OR operator between them.
  535. func Or(predicates ...predicate.SopTask) predicate.SopTask {
  536. return predicate.SopTask(sql.OrPredicates(predicates...))
  537. }
  538. // Not applies the not operator on the given predicate.
  539. func Not(p predicate.SopTask) predicate.SopTask {
  540. return predicate.SopTask(sql.NotPredicates(p))
  541. }