where.go 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  1. // Code generated by ent, DO NOT EDIT.
  2. package label
  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.Label {
  11. return predicate.Label(sql.FieldEQ(FieldID, id))
  12. }
  13. // IDEQ applies the EQ predicate on the ID field.
  14. func IDEQ(id uint64) predicate.Label {
  15. return predicate.Label(sql.FieldEQ(FieldID, id))
  16. }
  17. // IDNEQ applies the NEQ predicate on the ID field.
  18. func IDNEQ(id uint64) predicate.Label {
  19. return predicate.Label(sql.FieldNEQ(FieldID, id))
  20. }
  21. // IDIn applies the In predicate on the ID field.
  22. func IDIn(ids ...uint64) predicate.Label {
  23. return predicate.Label(sql.FieldIn(FieldID, ids...))
  24. }
  25. // IDNotIn applies the NotIn predicate on the ID field.
  26. func IDNotIn(ids ...uint64) predicate.Label {
  27. return predicate.Label(sql.FieldNotIn(FieldID, ids...))
  28. }
  29. // IDGT applies the GT predicate on the ID field.
  30. func IDGT(id uint64) predicate.Label {
  31. return predicate.Label(sql.FieldGT(FieldID, id))
  32. }
  33. // IDGTE applies the GTE predicate on the ID field.
  34. func IDGTE(id uint64) predicate.Label {
  35. return predicate.Label(sql.FieldGTE(FieldID, id))
  36. }
  37. // IDLT applies the LT predicate on the ID field.
  38. func IDLT(id uint64) predicate.Label {
  39. return predicate.Label(sql.FieldLT(FieldID, id))
  40. }
  41. // IDLTE applies the LTE predicate on the ID field.
  42. func IDLTE(id uint64) predicate.Label {
  43. return predicate.Label(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.Label {
  47. return predicate.Label(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.Label {
  51. return predicate.Label(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.Label {
  55. return predicate.Label(sql.FieldEQ(FieldStatus, v))
  56. }
  57. // Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
  58. func Type(v int) predicate.Label {
  59. return predicate.Label(sql.FieldEQ(FieldType, v))
  60. }
  61. // Name applies equality check predicate on the "name" field. It's identical to NameEQ.
  62. func Name(v string) predicate.Label {
  63. return predicate.Label(sql.FieldEQ(FieldName, v))
  64. }
  65. // From applies equality check predicate on the "from" field. It's identical to FromEQ.
  66. func From(v int) predicate.Label {
  67. return predicate.Label(sql.FieldEQ(FieldFrom, v))
  68. }
  69. // Mode applies equality check predicate on the "mode" field. It's identical to ModeEQ.
  70. func Mode(v int) predicate.Label {
  71. return predicate.Label(sql.FieldEQ(FieldMode, v))
  72. }
  73. // Conditions applies equality check predicate on the "conditions" field. It's identical to ConditionsEQ.
  74. func Conditions(v string) predicate.Label {
  75. return predicate.Label(sql.FieldEQ(FieldConditions, v))
  76. }
  77. // OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
  78. func OrganizationID(v uint64) predicate.Label {
  79. return predicate.Label(sql.FieldEQ(FieldOrganizationID, v))
  80. }
  81. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  82. func CreatedAtEQ(v time.Time) predicate.Label {
  83. return predicate.Label(sql.FieldEQ(FieldCreatedAt, v))
  84. }
  85. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  86. func CreatedAtNEQ(v time.Time) predicate.Label {
  87. return predicate.Label(sql.FieldNEQ(FieldCreatedAt, v))
  88. }
  89. // CreatedAtIn applies the In predicate on the "created_at" field.
  90. func CreatedAtIn(vs ...time.Time) predicate.Label {
  91. return predicate.Label(sql.FieldIn(FieldCreatedAt, vs...))
  92. }
  93. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  94. func CreatedAtNotIn(vs ...time.Time) predicate.Label {
  95. return predicate.Label(sql.FieldNotIn(FieldCreatedAt, vs...))
  96. }
  97. // CreatedAtGT applies the GT predicate on the "created_at" field.
  98. func CreatedAtGT(v time.Time) predicate.Label {
  99. return predicate.Label(sql.FieldGT(FieldCreatedAt, v))
  100. }
  101. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  102. func CreatedAtGTE(v time.Time) predicate.Label {
  103. return predicate.Label(sql.FieldGTE(FieldCreatedAt, v))
  104. }
  105. // CreatedAtLT applies the LT predicate on the "created_at" field.
  106. func CreatedAtLT(v time.Time) predicate.Label {
  107. return predicate.Label(sql.FieldLT(FieldCreatedAt, v))
  108. }
  109. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  110. func CreatedAtLTE(v time.Time) predicate.Label {
  111. return predicate.Label(sql.FieldLTE(FieldCreatedAt, v))
  112. }
  113. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  114. func UpdatedAtEQ(v time.Time) predicate.Label {
  115. return predicate.Label(sql.FieldEQ(FieldUpdatedAt, v))
  116. }
  117. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  118. func UpdatedAtNEQ(v time.Time) predicate.Label {
  119. return predicate.Label(sql.FieldNEQ(FieldUpdatedAt, v))
  120. }
  121. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  122. func UpdatedAtIn(vs ...time.Time) predicate.Label {
  123. return predicate.Label(sql.FieldIn(FieldUpdatedAt, vs...))
  124. }
  125. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  126. func UpdatedAtNotIn(vs ...time.Time) predicate.Label {
  127. return predicate.Label(sql.FieldNotIn(FieldUpdatedAt, vs...))
  128. }
  129. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  130. func UpdatedAtGT(v time.Time) predicate.Label {
  131. return predicate.Label(sql.FieldGT(FieldUpdatedAt, v))
  132. }
  133. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  134. func UpdatedAtGTE(v time.Time) predicate.Label {
  135. return predicate.Label(sql.FieldGTE(FieldUpdatedAt, v))
  136. }
  137. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  138. func UpdatedAtLT(v time.Time) predicate.Label {
  139. return predicate.Label(sql.FieldLT(FieldUpdatedAt, v))
  140. }
  141. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  142. func UpdatedAtLTE(v time.Time) predicate.Label {
  143. return predicate.Label(sql.FieldLTE(FieldUpdatedAt, v))
  144. }
  145. // StatusEQ applies the EQ predicate on the "status" field.
  146. func StatusEQ(v uint8) predicate.Label {
  147. return predicate.Label(sql.FieldEQ(FieldStatus, v))
  148. }
  149. // StatusNEQ applies the NEQ predicate on the "status" field.
  150. func StatusNEQ(v uint8) predicate.Label {
  151. return predicate.Label(sql.FieldNEQ(FieldStatus, v))
  152. }
  153. // StatusIn applies the In predicate on the "status" field.
  154. func StatusIn(vs ...uint8) predicate.Label {
  155. return predicate.Label(sql.FieldIn(FieldStatus, vs...))
  156. }
  157. // StatusNotIn applies the NotIn predicate on the "status" field.
  158. func StatusNotIn(vs ...uint8) predicate.Label {
  159. return predicate.Label(sql.FieldNotIn(FieldStatus, vs...))
  160. }
  161. // StatusGT applies the GT predicate on the "status" field.
  162. func StatusGT(v uint8) predicate.Label {
  163. return predicate.Label(sql.FieldGT(FieldStatus, v))
  164. }
  165. // StatusGTE applies the GTE predicate on the "status" field.
  166. func StatusGTE(v uint8) predicate.Label {
  167. return predicate.Label(sql.FieldGTE(FieldStatus, v))
  168. }
  169. // StatusLT applies the LT predicate on the "status" field.
  170. func StatusLT(v uint8) predicate.Label {
  171. return predicate.Label(sql.FieldLT(FieldStatus, v))
  172. }
  173. // StatusLTE applies the LTE predicate on the "status" field.
  174. func StatusLTE(v uint8) predicate.Label {
  175. return predicate.Label(sql.FieldLTE(FieldStatus, v))
  176. }
  177. // StatusIsNil applies the IsNil predicate on the "status" field.
  178. func StatusIsNil() predicate.Label {
  179. return predicate.Label(sql.FieldIsNull(FieldStatus))
  180. }
  181. // StatusNotNil applies the NotNil predicate on the "status" field.
  182. func StatusNotNil() predicate.Label {
  183. return predicate.Label(sql.FieldNotNull(FieldStatus))
  184. }
  185. // TypeEQ applies the EQ predicate on the "type" field.
  186. func TypeEQ(v int) predicate.Label {
  187. return predicate.Label(sql.FieldEQ(FieldType, v))
  188. }
  189. // TypeNEQ applies the NEQ predicate on the "type" field.
  190. func TypeNEQ(v int) predicate.Label {
  191. return predicate.Label(sql.FieldNEQ(FieldType, v))
  192. }
  193. // TypeIn applies the In predicate on the "type" field.
  194. func TypeIn(vs ...int) predicate.Label {
  195. return predicate.Label(sql.FieldIn(FieldType, vs...))
  196. }
  197. // TypeNotIn applies the NotIn predicate on the "type" field.
  198. func TypeNotIn(vs ...int) predicate.Label {
  199. return predicate.Label(sql.FieldNotIn(FieldType, vs...))
  200. }
  201. // TypeGT applies the GT predicate on the "type" field.
  202. func TypeGT(v int) predicate.Label {
  203. return predicate.Label(sql.FieldGT(FieldType, v))
  204. }
  205. // TypeGTE applies the GTE predicate on the "type" field.
  206. func TypeGTE(v int) predicate.Label {
  207. return predicate.Label(sql.FieldGTE(FieldType, v))
  208. }
  209. // TypeLT applies the LT predicate on the "type" field.
  210. func TypeLT(v int) predicate.Label {
  211. return predicate.Label(sql.FieldLT(FieldType, v))
  212. }
  213. // TypeLTE applies the LTE predicate on the "type" field.
  214. func TypeLTE(v int) predicate.Label {
  215. return predicate.Label(sql.FieldLTE(FieldType, v))
  216. }
  217. // NameEQ applies the EQ predicate on the "name" field.
  218. func NameEQ(v string) predicate.Label {
  219. return predicate.Label(sql.FieldEQ(FieldName, v))
  220. }
  221. // NameNEQ applies the NEQ predicate on the "name" field.
  222. func NameNEQ(v string) predicate.Label {
  223. return predicate.Label(sql.FieldNEQ(FieldName, v))
  224. }
  225. // NameIn applies the In predicate on the "name" field.
  226. func NameIn(vs ...string) predicate.Label {
  227. return predicate.Label(sql.FieldIn(FieldName, vs...))
  228. }
  229. // NameNotIn applies the NotIn predicate on the "name" field.
  230. func NameNotIn(vs ...string) predicate.Label {
  231. return predicate.Label(sql.FieldNotIn(FieldName, vs...))
  232. }
  233. // NameGT applies the GT predicate on the "name" field.
  234. func NameGT(v string) predicate.Label {
  235. return predicate.Label(sql.FieldGT(FieldName, v))
  236. }
  237. // NameGTE applies the GTE predicate on the "name" field.
  238. func NameGTE(v string) predicate.Label {
  239. return predicate.Label(sql.FieldGTE(FieldName, v))
  240. }
  241. // NameLT applies the LT predicate on the "name" field.
  242. func NameLT(v string) predicate.Label {
  243. return predicate.Label(sql.FieldLT(FieldName, v))
  244. }
  245. // NameLTE applies the LTE predicate on the "name" field.
  246. func NameLTE(v string) predicate.Label {
  247. return predicate.Label(sql.FieldLTE(FieldName, v))
  248. }
  249. // NameContains applies the Contains predicate on the "name" field.
  250. func NameContains(v string) predicate.Label {
  251. return predicate.Label(sql.FieldContains(FieldName, v))
  252. }
  253. // NameHasPrefix applies the HasPrefix predicate on the "name" field.
  254. func NameHasPrefix(v string) predicate.Label {
  255. return predicate.Label(sql.FieldHasPrefix(FieldName, v))
  256. }
  257. // NameHasSuffix applies the HasSuffix predicate on the "name" field.
  258. func NameHasSuffix(v string) predicate.Label {
  259. return predicate.Label(sql.FieldHasSuffix(FieldName, v))
  260. }
  261. // NameEqualFold applies the EqualFold predicate on the "name" field.
  262. func NameEqualFold(v string) predicate.Label {
  263. return predicate.Label(sql.FieldEqualFold(FieldName, v))
  264. }
  265. // NameContainsFold applies the ContainsFold predicate on the "name" field.
  266. func NameContainsFold(v string) predicate.Label {
  267. return predicate.Label(sql.FieldContainsFold(FieldName, v))
  268. }
  269. // FromEQ applies the EQ predicate on the "from" field.
  270. func FromEQ(v int) predicate.Label {
  271. return predicate.Label(sql.FieldEQ(FieldFrom, v))
  272. }
  273. // FromNEQ applies the NEQ predicate on the "from" field.
  274. func FromNEQ(v int) predicate.Label {
  275. return predicate.Label(sql.FieldNEQ(FieldFrom, v))
  276. }
  277. // FromIn applies the In predicate on the "from" field.
  278. func FromIn(vs ...int) predicate.Label {
  279. return predicate.Label(sql.FieldIn(FieldFrom, vs...))
  280. }
  281. // FromNotIn applies the NotIn predicate on the "from" field.
  282. func FromNotIn(vs ...int) predicate.Label {
  283. return predicate.Label(sql.FieldNotIn(FieldFrom, vs...))
  284. }
  285. // FromGT applies the GT predicate on the "from" field.
  286. func FromGT(v int) predicate.Label {
  287. return predicate.Label(sql.FieldGT(FieldFrom, v))
  288. }
  289. // FromGTE applies the GTE predicate on the "from" field.
  290. func FromGTE(v int) predicate.Label {
  291. return predicate.Label(sql.FieldGTE(FieldFrom, v))
  292. }
  293. // FromLT applies the LT predicate on the "from" field.
  294. func FromLT(v int) predicate.Label {
  295. return predicate.Label(sql.FieldLT(FieldFrom, v))
  296. }
  297. // FromLTE applies the LTE predicate on the "from" field.
  298. func FromLTE(v int) predicate.Label {
  299. return predicate.Label(sql.FieldLTE(FieldFrom, v))
  300. }
  301. // ModeEQ applies the EQ predicate on the "mode" field.
  302. func ModeEQ(v int) predicate.Label {
  303. return predicate.Label(sql.FieldEQ(FieldMode, v))
  304. }
  305. // ModeNEQ applies the NEQ predicate on the "mode" field.
  306. func ModeNEQ(v int) predicate.Label {
  307. return predicate.Label(sql.FieldNEQ(FieldMode, v))
  308. }
  309. // ModeIn applies the In predicate on the "mode" field.
  310. func ModeIn(vs ...int) predicate.Label {
  311. return predicate.Label(sql.FieldIn(FieldMode, vs...))
  312. }
  313. // ModeNotIn applies the NotIn predicate on the "mode" field.
  314. func ModeNotIn(vs ...int) predicate.Label {
  315. return predicate.Label(sql.FieldNotIn(FieldMode, vs...))
  316. }
  317. // ModeGT applies the GT predicate on the "mode" field.
  318. func ModeGT(v int) predicate.Label {
  319. return predicate.Label(sql.FieldGT(FieldMode, v))
  320. }
  321. // ModeGTE applies the GTE predicate on the "mode" field.
  322. func ModeGTE(v int) predicate.Label {
  323. return predicate.Label(sql.FieldGTE(FieldMode, v))
  324. }
  325. // ModeLT applies the LT predicate on the "mode" field.
  326. func ModeLT(v int) predicate.Label {
  327. return predicate.Label(sql.FieldLT(FieldMode, v))
  328. }
  329. // ModeLTE applies the LTE predicate on the "mode" field.
  330. func ModeLTE(v int) predicate.Label {
  331. return predicate.Label(sql.FieldLTE(FieldMode, v))
  332. }
  333. // ConditionsEQ applies the EQ predicate on the "conditions" field.
  334. func ConditionsEQ(v string) predicate.Label {
  335. return predicate.Label(sql.FieldEQ(FieldConditions, v))
  336. }
  337. // ConditionsNEQ applies the NEQ predicate on the "conditions" field.
  338. func ConditionsNEQ(v string) predicate.Label {
  339. return predicate.Label(sql.FieldNEQ(FieldConditions, v))
  340. }
  341. // ConditionsIn applies the In predicate on the "conditions" field.
  342. func ConditionsIn(vs ...string) predicate.Label {
  343. return predicate.Label(sql.FieldIn(FieldConditions, vs...))
  344. }
  345. // ConditionsNotIn applies the NotIn predicate on the "conditions" field.
  346. func ConditionsNotIn(vs ...string) predicate.Label {
  347. return predicate.Label(sql.FieldNotIn(FieldConditions, vs...))
  348. }
  349. // ConditionsGT applies the GT predicate on the "conditions" field.
  350. func ConditionsGT(v string) predicate.Label {
  351. return predicate.Label(sql.FieldGT(FieldConditions, v))
  352. }
  353. // ConditionsGTE applies the GTE predicate on the "conditions" field.
  354. func ConditionsGTE(v string) predicate.Label {
  355. return predicate.Label(sql.FieldGTE(FieldConditions, v))
  356. }
  357. // ConditionsLT applies the LT predicate on the "conditions" field.
  358. func ConditionsLT(v string) predicate.Label {
  359. return predicate.Label(sql.FieldLT(FieldConditions, v))
  360. }
  361. // ConditionsLTE applies the LTE predicate on the "conditions" field.
  362. func ConditionsLTE(v string) predicate.Label {
  363. return predicate.Label(sql.FieldLTE(FieldConditions, v))
  364. }
  365. // ConditionsContains applies the Contains predicate on the "conditions" field.
  366. func ConditionsContains(v string) predicate.Label {
  367. return predicate.Label(sql.FieldContains(FieldConditions, v))
  368. }
  369. // ConditionsHasPrefix applies the HasPrefix predicate on the "conditions" field.
  370. func ConditionsHasPrefix(v string) predicate.Label {
  371. return predicate.Label(sql.FieldHasPrefix(FieldConditions, v))
  372. }
  373. // ConditionsHasSuffix applies the HasSuffix predicate on the "conditions" field.
  374. func ConditionsHasSuffix(v string) predicate.Label {
  375. return predicate.Label(sql.FieldHasSuffix(FieldConditions, v))
  376. }
  377. // ConditionsIsNil applies the IsNil predicate on the "conditions" field.
  378. func ConditionsIsNil() predicate.Label {
  379. return predicate.Label(sql.FieldIsNull(FieldConditions))
  380. }
  381. // ConditionsNotNil applies the NotNil predicate on the "conditions" field.
  382. func ConditionsNotNil() predicate.Label {
  383. return predicate.Label(sql.FieldNotNull(FieldConditions))
  384. }
  385. // ConditionsEqualFold applies the EqualFold predicate on the "conditions" field.
  386. func ConditionsEqualFold(v string) predicate.Label {
  387. return predicate.Label(sql.FieldEqualFold(FieldConditions, v))
  388. }
  389. // ConditionsContainsFold applies the ContainsFold predicate on the "conditions" field.
  390. func ConditionsContainsFold(v string) predicate.Label {
  391. return predicate.Label(sql.FieldContainsFold(FieldConditions, v))
  392. }
  393. // OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
  394. func OrganizationIDEQ(v uint64) predicate.Label {
  395. return predicate.Label(sql.FieldEQ(FieldOrganizationID, v))
  396. }
  397. // OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
  398. func OrganizationIDNEQ(v uint64) predicate.Label {
  399. return predicate.Label(sql.FieldNEQ(FieldOrganizationID, v))
  400. }
  401. // OrganizationIDIn applies the In predicate on the "organization_id" field.
  402. func OrganizationIDIn(vs ...uint64) predicate.Label {
  403. return predicate.Label(sql.FieldIn(FieldOrganizationID, vs...))
  404. }
  405. // OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
  406. func OrganizationIDNotIn(vs ...uint64) predicate.Label {
  407. return predicate.Label(sql.FieldNotIn(FieldOrganizationID, vs...))
  408. }
  409. // OrganizationIDGT applies the GT predicate on the "organization_id" field.
  410. func OrganizationIDGT(v uint64) predicate.Label {
  411. return predicate.Label(sql.FieldGT(FieldOrganizationID, v))
  412. }
  413. // OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
  414. func OrganizationIDGTE(v uint64) predicate.Label {
  415. return predicate.Label(sql.FieldGTE(FieldOrganizationID, v))
  416. }
  417. // OrganizationIDLT applies the LT predicate on the "organization_id" field.
  418. func OrganizationIDLT(v uint64) predicate.Label {
  419. return predicate.Label(sql.FieldLT(FieldOrganizationID, v))
  420. }
  421. // OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
  422. func OrganizationIDLTE(v uint64) predicate.Label {
  423. return predicate.Label(sql.FieldLTE(FieldOrganizationID, v))
  424. }
  425. // OrganizationIDIsNil applies the IsNil predicate on the "organization_id" field.
  426. func OrganizationIDIsNil() predicate.Label {
  427. return predicate.Label(sql.FieldIsNull(FieldOrganizationID))
  428. }
  429. // OrganizationIDNotNil applies the NotNil predicate on the "organization_id" field.
  430. func OrganizationIDNotNil() predicate.Label {
  431. return predicate.Label(sql.FieldNotNull(FieldOrganizationID))
  432. }
  433. // HasLabelRelationships applies the HasEdge predicate on the "label_relationships" edge.
  434. func HasLabelRelationships() predicate.Label {
  435. return predicate.Label(func(s *sql.Selector) {
  436. step := sqlgraph.NewStep(
  437. sqlgraph.From(Table, FieldID),
  438. sqlgraph.Edge(sqlgraph.O2M, false, LabelRelationshipsTable, LabelRelationshipsColumn),
  439. )
  440. sqlgraph.HasNeighbors(s, step)
  441. })
  442. }
  443. // HasLabelRelationshipsWith applies the HasEdge predicate on the "label_relationships" edge with a given conditions (other predicates).
  444. func HasLabelRelationshipsWith(preds ...predicate.LabelRelationship) predicate.Label {
  445. return predicate.Label(func(s *sql.Selector) {
  446. step := newLabelRelationshipsStep()
  447. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  448. for _, p := range preds {
  449. p(s)
  450. }
  451. })
  452. })
  453. }
  454. // And groups predicates with the AND operator between them.
  455. func And(predicates ...predicate.Label) predicate.Label {
  456. return predicate.Label(sql.AndPredicates(predicates...))
  457. }
  458. // Or groups predicates with the OR operator between them.
  459. func Or(predicates ...predicate.Label) predicate.Label {
  460. return predicate.Label(sql.OrPredicates(predicates...))
  461. }
  462. // Not applies the not operator on the given predicate.
  463. func Not(p predicate.Label) predicate.Label {
  464. return predicate.Label(sql.NotPredicates(p))
  465. }