where.go 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646
  1. // Code generated by ent, DO NOT EDIT.
  2. package pushregistration
  3. import (
  4. "time"
  5. "w303a/server/app/gate/internal/data/ent/predicate"
  6. "entgo.io/ent/dialect/sql"
  7. "github.com/google/uuid"
  8. )
  9. // ID filters vertices based on their ID field.
  10. func ID(id uuid.UUID) predicate.PushRegistration {
  11. return predicate.PushRegistration(sql.FieldEQ(FieldID, id))
  12. }
  13. // IDEQ applies the EQ predicate on the ID field.
  14. func IDEQ(id uuid.UUID) predicate.PushRegistration {
  15. return predicate.PushRegistration(sql.FieldEQ(FieldID, id))
  16. }
  17. // IDNEQ applies the NEQ predicate on the ID field.
  18. func IDNEQ(id uuid.UUID) predicate.PushRegistration {
  19. return predicate.PushRegistration(sql.FieldNEQ(FieldID, id))
  20. }
  21. // IDIn applies the In predicate on the ID field.
  22. func IDIn(ids ...uuid.UUID) predicate.PushRegistration {
  23. return predicate.PushRegistration(sql.FieldIn(FieldID, ids...))
  24. }
  25. // IDNotIn applies the NotIn predicate on the ID field.
  26. func IDNotIn(ids ...uuid.UUID) predicate.PushRegistration {
  27. return predicate.PushRegistration(sql.FieldNotIn(FieldID, ids...))
  28. }
  29. // IDGT applies the GT predicate on the ID field.
  30. func IDGT(id uuid.UUID) predicate.PushRegistration {
  31. return predicate.PushRegistration(sql.FieldGT(FieldID, id))
  32. }
  33. // IDGTE applies the GTE predicate on the ID field.
  34. func IDGTE(id uuid.UUID) predicate.PushRegistration {
  35. return predicate.PushRegistration(sql.FieldGTE(FieldID, id))
  36. }
  37. // IDLT applies the LT predicate on the ID field.
  38. func IDLT(id uuid.UUID) predicate.PushRegistration {
  39. return predicate.PushRegistration(sql.FieldLT(FieldID, id))
  40. }
  41. // IDLTE applies the LTE predicate on the ID field.
  42. func IDLTE(id uuid.UUID) predicate.PushRegistration {
  43. return predicate.PushRegistration(sql.FieldLTE(FieldID, id))
  44. }
  45. // RegID applies equality check predicate on the "reg_id" field. It's identical to RegIDEQ.
  46. func RegID(v string) predicate.PushRegistration {
  47. return predicate.PushRegistration(sql.FieldEQ(FieldRegID, v))
  48. }
  49. // RegistrantPlatformType applies equality check predicate on the "registrant_platform_type" field. It's identical to RegistrantPlatformTypeEQ.
  50. func RegistrantPlatformType(v int8) predicate.PushRegistration {
  51. return predicate.PushRegistration(sql.FieldEQ(FieldRegistrantPlatformType, v))
  52. }
  53. // Language applies equality check predicate on the "language" field. It's identical to LanguageEQ.
  54. func Language(v string) predicate.PushRegistration {
  55. return predicate.PushRegistration(sql.FieldEQ(FieldLanguage, v))
  56. }
  57. // DeviceModel applies equality check predicate on the "device_model" field. It's identical to DeviceModelEQ.
  58. func DeviceModel(v string) predicate.PushRegistration {
  59. return predicate.PushRegistration(sql.FieldEQ(FieldDeviceModel, v))
  60. }
  61. // DeviceManufacturer applies equality check predicate on the "device_manufacturer" field. It's identical to DeviceManufacturerEQ.
  62. func DeviceManufacturer(v string) predicate.PushRegistration {
  63. return predicate.PushRegistration(sql.FieldEQ(FieldDeviceManufacturer, v))
  64. }
  65. // DeviceSystemVersion applies equality check predicate on the "device_system_version" field. It's identical to DeviceSystemVersionEQ.
  66. func DeviceSystemVersion(v string) predicate.PushRegistration {
  67. return predicate.PushRegistration(sql.FieldEQ(FieldDeviceSystemVersion, v))
  68. }
  69. // DeviceSystem applies equality check predicate on the "device_system" field. It's identical to DeviceSystemEQ.
  70. func DeviceSystem(v string) predicate.PushRegistration {
  71. return predicate.PushRegistration(sql.FieldEQ(FieldDeviceSystem, v))
  72. }
  73. // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
  74. func CreatedAt(v time.Time) predicate.PushRegistration {
  75. return predicate.PushRegistration(sql.FieldEQ(FieldCreatedAt, v))
  76. }
  77. // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
  78. func UpdatedAt(v time.Time) predicate.PushRegistration {
  79. return predicate.PushRegistration(sql.FieldEQ(FieldUpdatedAt, v))
  80. }
  81. // RegIDEQ applies the EQ predicate on the "reg_id" field.
  82. func RegIDEQ(v string) predicate.PushRegistration {
  83. return predicate.PushRegistration(sql.FieldEQ(FieldRegID, v))
  84. }
  85. // RegIDNEQ applies the NEQ predicate on the "reg_id" field.
  86. func RegIDNEQ(v string) predicate.PushRegistration {
  87. return predicate.PushRegistration(sql.FieldNEQ(FieldRegID, v))
  88. }
  89. // RegIDIn applies the In predicate on the "reg_id" field.
  90. func RegIDIn(vs ...string) predicate.PushRegistration {
  91. return predicate.PushRegistration(sql.FieldIn(FieldRegID, vs...))
  92. }
  93. // RegIDNotIn applies the NotIn predicate on the "reg_id" field.
  94. func RegIDNotIn(vs ...string) predicate.PushRegistration {
  95. return predicate.PushRegistration(sql.FieldNotIn(FieldRegID, vs...))
  96. }
  97. // RegIDGT applies the GT predicate on the "reg_id" field.
  98. func RegIDGT(v string) predicate.PushRegistration {
  99. return predicate.PushRegistration(sql.FieldGT(FieldRegID, v))
  100. }
  101. // RegIDGTE applies the GTE predicate on the "reg_id" field.
  102. func RegIDGTE(v string) predicate.PushRegistration {
  103. return predicate.PushRegistration(sql.FieldGTE(FieldRegID, v))
  104. }
  105. // RegIDLT applies the LT predicate on the "reg_id" field.
  106. func RegIDLT(v string) predicate.PushRegistration {
  107. return predicate.PushRegistration(sql.FieldLT(FieldRegID, v))
  108. }
  109. // RegIDLTE applies the LTE predicate on the "reg_id" field.
  110. func RegIDLTE(v string) predicate.PushRegistration {
  111. return predicate.PushRegistration(sql.FieldLTE(FieldRegID, v))
  112. }
  113. // RegIDContains applies the Contains predicate on the "reg_id" field.
  114. func RegIDContains(v string) predicate.PushRegistration {
  115. return predicate.PushRegistration(sql.FieldContains(FieldRegID, v))
  116. }
  117. // RegIDHasPrefix applies the HasPrefix predicate on the "reg_id" field.
  118. func RegIDHasPrefix(v string) predicate.PushRegistration {
  119. return predicate.PushRegistration(sql.FieldHasPrefix(FieldRegID, v))
  120. }
  121. // RegIDHasSuffix applies the HasSuffix predicate on the "reg_id" field.
  122. func RegIDHasSuffix(v string) predicate.PushRegistration {
  123. return predicate.PushRegistration(sql.FieldHasSuffix(FieldRegID, v))
  124. }
  125. // RegIDEqualFold applies the EqualFold predicate on the "reg_id" field.
  126. func RegIDEqualFold(v string) predicate.PushRegistration {
  127. return predicate.PushRegistration(sql.FieldEqualFold(FieldRegID, v))
  128. }
  129. // RegIDContainsFold applies the ContainsFold predicate on the "reg_id" field.
  130. func RegIDContainsFold(v string) predicate.PushRegistration {
  131. return predicate.PushRegistration(sql.FieldContainsFold(FieldRegID, v))
  132. }
  133. // RegistrantPlatformTypeEQ applies the EQ predicate on the "registrant_platform_type" field.
  134. func RegistrantPlatformTypeEQ(v int8) predicate.PushRegistration {
  135. return predicate.PushRegistration(sql.FieldEQ(FieldRegistrantPlatformType, v))
  136. }
  137. // RegistrantPlatformTypeNEQ applies the NEQ predicate on the "registrant_platform_type" field.
  138. func RegistrantPlatformTypeNEQ(v int8) predicate.PushRegistration {
  139. return predicate.PushRegistration(sql.FieldNEQ(FieldRegistrantPlatformType, v))
  140. }
  141. // RegistrantPlatformTypeIn applies the In predicate on the "registrant_platform_type" field.
  142. func RegistrantPlatformTypeIn(vs ...int8) predicate.PushRegistration {
  143. return predicate.PushRegistration(sql.FieldIn(FieldRegistrantPlatformType, vs...))
  144. }
  145. // RegistrantPlatformTypeNotIn applies the NotIn predicate on the "registrant_platform_type" field.
  146. func RegistrantPlatformTypeNotIn(vs ...int8) predicate.PushRegistration {
  147. return predicate.PushRegistration(sql.FieldNotIn(FieldRegistrantPlatformType, vs...))
  148. }
  149. // RegistrantPlatformTypeGT applies the GT predicate on the "registrant_platform_type" field.
  150. func RegistrantPlatformTypeGT(v int8) predicate.PushRegistration {
  151. return predicate.PushRegistration(sql.FieldGT(FieldRegistrantPlatformType, v))
  152. }
  153. // RegistrantPlatformTypeGTE applies the GTE predicate on the "registrant_platform_type" field.
  154. func RegistrantPlatformTypeGTE(v int8) predicate.PushRegistration {
  155. return predicate.PushRegistration(sql.FieldGTE(FieldRegistrantPlatformType, v))
  156. }
  157. // RegistrantPlatformTypeLT applies the LT predicate on the "registrant_platform_type" field.
  158. func RegistrantPlatformTypeLT(v int8) predicate.PushRegistration {
  159. return predicate.PushRegistration(sql.FieldLT(FieldRegistrantPlatformType, v))
  160. }
  161. // RegistrantPlatformTypeLTE applies the LTE predicate on the "registrant_platform_type" field.
  162. func RegistrantPlatformTypeLTE(v int8) predicate.PushRegistration {
  163. return predicate.PushRegistration(sql.FieldLTE(FieldRegistrantPlatformType, v))
  164. }
  165. // LanguageEQ applies the EQ predicate on the "language" field.
  166. func LanguageEQ(v string) predicate.PushRegistration {
  167. return predicate.PushRegistration(sql.FieldEQ(FieldLanguage, v))
  168. }
  169. // LanguageNEQ applies the NEQ predicate on the "language" field.
  170. func LanguageNEQ(v string) predicate.PushRegistration {
  171. return predicate.PushRegistration(sql.FieldNEQ(FieldLanguage, v))
  172. }
  173. // LanguageIn applies the In predicate on the "language" field.
  174. func LanguageIn(vs ...string) predicate.PushRegistration {
  175. return predicate.PushRegistration(sql.FieldIn(FieldLanguage, vs...))
  176. }
  177. // LanguageNotIn applies the NotIn predicate on the "language" field.
  178. func LanguageNotIn(vs ...string) predicate.PushRegistration {
  179. return predicate.PushRegistration(sql.FieldNotIn(FieldLanguage, vs...))
  180. }
  181. // LanguageGT applies the GT predicate on the "language" field.
  182. func LanguageGT(v string) predicate.PushRegistration {
  183. return predicate.PushRegistration(sql.FieldGT(FieldLanguage, v))
  184. }
  185. // LanguageGTE applies the GTE predicate on the "language" field.
  186. func LanguageGTE(v string) predicate.PushRegistration {
  187. return predicate.PushRegistration(sql.FieldGTE(FieldLanguage, v))
  188. }
  189. // LanguageLT applies the LT predicate on the "language" field.
  190. func LanguageLT(v string) predicate.PushRegistration {
  191. return predicate.PushRegistration(sql.FieldLT(FieldLanguage, v))
  192. }
  193. // LanguageLTE applies the LTE predicate on the "language" field.
  194. func LanguageLTE(v string) predicate.PushRegistration {
  195. return predicate.PushRegistration(sql.FieldLTE(FieldLanguage, v))
  196. }
  197. // LanguageContains applies the Contains predicate on the "language" field.
  198. func LanguageContains(v string) predicate.PushRegistration {
  199. return predicate.PushRegistration(sql.FieldContains(FieldLanguage, v))
  200. }
  201. // LanguageHasPrefix applies the HasPrefix predicate on the "language" field.
  202. func LanguageHasPrefix(v string) predicate.PushRegistration {
  203. return predicate.PushRegistration(sql.FieldHasPrefix(FieldLanguage, v))
  204. }
  205. // LanguageHasSuffix applies the HasSuffix predicate on the "language" field.
  206. func LanguageHasSuffix(v string) predicate.PushRegistration {
  207. return predicate.PushRegistration(sql.FieldHasSuffix(FieldLanguage, v))
  208. }
  209. // LanguageEqualFold applies the EqualFold predicate on the "language" field.
  210. func LanguageEqualFold(v string) predicate.PushRegistration {
  211. return predicate.PushRegistration(sql.FieldEqualFold(FieldLanguage, v))
  212. }
  213. // LanguageContainsFold applies the ContainsFold predicate on the "language" field.
  214. func LanguageContainsFold(v string) predicate.PushRegistration {
  215. return predicate.PushRegistration(sql.FieldContainsFold(FieldLanguage, v))
  216. }
  217. // DeviceModelEQ applies the EQ predicate on the "device_model" field.
  218. func DeviceModelEQ(v string) predicate.PushRegistration {
  219. return predicate.PushRegistration(sql.FieldEQ(FieldDeviceModel, v))
  220. }
  221. // DeviceModelNEQ applies the NEQ predicate on the "device_model" field.
  222. func DeviceModelNEQ(v string) predicate.PushRegistration {
  223. return predicate.PushRegistration(sql.FieldNEQ(FieldDeviceModel, v))
  224. }
  225. // DeviceModelIn applies the In predicate on the "device_model" field.
  226. func DeviceModelIn(vs ...string) predicate.PushRegistration {
  227. return predicate.PushRegistration(sql.FieldIn(FieldDeviceModel, vs...))
  228. }
  229. // DeviceModelNotIn applies the NotIn predicate on the "device_model" field.
  230. func DeviceModelNotIn(vs ...string) predicate.PushRegistration {
  231. return predicate.PushRegistration(sql.FieldNotIn(FieldDeviceModel, vs...))
  232. }
  233. // DeviceModelGT applies the GT predicate on the "device_model" field.
  234. func DeviceModelGT(v string) predicate.PushRegistration {
  235. return predicate.PushRegistration(sql.FieldGT(FieldDeviceModel, v))
  236. }
  237. // DeviceModelGTE applies the GTE predicate on the "device_model" field.
  238. func DeviceModelGTE(v string) predicate.PushRegistration {
  239. return predicate.PushRegistration(sql.FieldGTE(FieldDeviceModel, v))
  240. }
  241. // DeviceModelLT applies the LT predicate on the "device_model" field.
  242. func DeviceModelLT(v string) predicate.PushRegistration {
  243. return predicate.PushRegistration(sql.FieldLT(FieldDeviceModel, v))
  244. }
  245. // DeviceModelLTE applies the LTE predicate on the "device_model" field.
  246. func DeviceModelLTE(v string) predicate.PushRegistration {
  247. return predicate.PushRegistration(sql.FieldLTE(FieldDeviceModel, v))
  248. }
  249. // DeviceModelContains applies the Contains predicate on the "device_model" field.
  250. func DeviceModelContains(v string) predicate.PushRegistration {
  251. return predicate.PushRegistration(sql.FieldContains(FieldDeviceModel, v))
  252. }
  253. // DeviceModelHasPrefix applies the HasPrefix predicate on the "device_model" field.
  254. func DeviceModelHasPrefix(v string) predicate.PushRegistration {
  255. return predicate.PushRegistration(sql.FieldHasPrefix(FieldDeviceModel, v))
  256. }
  257. // DeviceModelHasSuffix applies the HasSuffix predicate on the "device_model" field.
  258. func DeviceModelHasSuffix(v string) predicate.PushRegistration {
  259. return predicate.PushRegistration(sql.FieldHasSuffix(FieldDeviceModel, v))
  260. }
  261. // DeviceModelEqualFold applies the EqualFold predicate on the "device_model" field.
  262. func DeviceModelEqualFold(v string) predicate.PushRegistration {
  263. return predicate.PushRegistration(sql.FieldEqualFold(FieldDeviceModel, v))
  264. }
  265. // DeviceModelContainsFold applies the ContainsFold predicate on the "device_model" field.
  266. func DeviceModelContainsFold(v string) predicate.PushRegistration {
  267. return predicate.PushRegistration(sql.FieldContainsFold(FieldDeviceModel, v))
  268. }
  269. // DeviceManufacturerEQ applies the EQ predicate on the "device_manufacturer" field.
  270. func DeviceManufacturerEQ(v string) predicate.PushRegistration {
  271. return predicate.PushRegistration(sql.FieldEQ(FieldDeviceManufacturer, v))
  272. }
  273. // DeviceManufacturerNEQ applies the NEQ predicate on the "device_manufacturer" field.
  274. func DeviceManufacturerNEQ(v string) predicate.PushRegistration {
  275. return predicate.PushRegistration(sql.FieldNEQ(FieldDeviceManufacturer, v))
  276. }
  277. // DeviceManufacturerIn applies the In predicate on the "device_manufacturer" field.
  278. func DeviceManufacturerIn(vs ...string) predicate.PushRegistration {
  279. return predicate.PushRegistration(sql.FieldIn(FieldDeviceManufacturer, vs...))
  280. }
  281. // DeviceManufacturerNotIn applies the NotIn predicate on the "device_manufacturer" field.
  282. func DeviceManufacturerNotIn(vs ...string) predicate.PushRegistration {
  283. return predicate.PushRegistration(sql.FieldNotIn(FieldDeviceManufacturer, vs...))
  284. }
  285. // DeviceManufacturerGT applies the GT predicate on the "device_manufacturer" field.
  286. func DeviceManufacturerGT(v string) predicate.PushRegistration {
  287. return predicate.PushRegistration(sql.FieldGT(FieldDeviceManufacturer, v))
  288. }
  289. // DeviceManufacturerGTE applies the GTE predicate on the "device_manufacturer" field.
  290. func DeviceManufacturerGTE(v string) predicate.PushRegistration {
  291. return predicate.PushRegistration(sql.FieldGTE(FieldDeviceManufacturer, v))
  292. }
  293. // DeviceManufacturerLT applies the LT predicate on the "device_manufacturer" field.
  294. func DeviceManufacturerLT(v string) predicate.PushRegistration {
  295. return predicate.PushRegistration(sql.FieldLT(FieldDeviceManufacturer, v))
  296. }
  297. // DeviceManufacturerLTE applies the LTE predicate on the "device_manufacturer" field.
  298. func DeviceManufacturerLTE(v string) predicate.PushRegistration {
  299. return predicate.PushRegistration(sql.FieldLTE(FieldDeviceManufacturer, v))
  300. }
  301. // DeviceManufacturerContains applies the Contains predicate on the "device_manufacturer" field.
  302. func DeviceManufacturerContains(v string) predicate.PushRegistration {
  303. return predicate.PushRegistration(sql.FieldContains(FieldDeviceManufacturer, v))
  304. }
  305. // DeviceManufacturerHasPrefix applies the HasPrefix predicate on the "device_manufacturer" field.
  306. func DeviceManufacturerHasPrefix(v string) predicate.PushRegistration {
  307. return predicate.PushRegistration(sql.FieldHasPrefix(FieldDeviceManufacturer, v))
  308. }
  309. // DeviceManufacturerHasSuffix applies the HasSuffix predicate on the "device_manufacturer" field.
  310. func DeviceManufacturerHasSuffix(v string) predicate.PushRegistration {
  311. return predicate.PushRegistration(sql.FieldHasSuffix(FieldDeviceManufacturer, v))
  312. }
  313. // DeviceManufacturerEqualFold applies the EqualFold predicate on the "device_manufacturer" field.
  314. func DeviceManufacturerEqualFold(v string) predicate.PushRegistration {
  315. return predicate.PushRegistration(sql.FieldEqualFold(FieldDeviceManufacturer, v))
  316. }
  317. // DeviceManufacturerContainsFold applies the ContainsFold predicate on the "device_manufacturer" field.
  318. func DeviceManufacturerContainsFold(v string) predicate.PushRegistration {
  319. return predicate.PushRegistration(sql.FieldContainsFold(FieldDeviceManufacturer, v))
  320. }
  321. // DeviceSystemVersionEQ applies the EQ predicate on the "device_system_version" field.
  322. func DeviceSystemVersionEQ(v string) predicate.PushRegistration {
  323. return predicate.PushRegistration(sql.FieldEQ(FieldDeviceSystemVersion, v))
  324. }
  325. // DeviceSystemVersionNEQ applies the NEQ predicate on the "device_system_version" field.
  326. func DeviceSystemVersionNEQ(v string) predicate.PushRegistration {
  327. return predicate.PushRegistration(sql.FieldNEQ(FieldDeviceSystemVersion, v))
  328. }
  329. // DeviceSystemVersionIn applies the In predicate on the "device_system_version" field.
  330. func DeviceSystemVersionIn(vs ...string) predicate.PushRegistration {
  331. return predicate.PushRegistration(sql.FieldIn(FieldDeviceSystemVersion, vs...))
  332. }
  333. // DeviceSystemVersionNotIn applies the NotIn predicate on the "device_system_version" field.
  334. func DeviceSystemVersionNotIn(vs ...string) predicate.PushRegistration {
  335. return predicate.PushRegistration(sql.FieldNotIn(FieldDeviceSystemVersion, vs...))
  336. }
  337. // DeviceSystemVersionGT applies the GT predicate on the "device_system_version" field.
  338. func DeviceSystemVersionGT(v string) predicate.PushRegistration {
  339. return predicate.PushRegistration(sql.FieldGT(FieldDeviceSystemVersion, v))
  340. }
  341. // DeviceSystemVersionGTE applies the GTE predicate on the "device_system_version" field.
  342. func DeviceSystemVersionGTE(v string) predicate.PushRegistration {
  343. return predicate.PushRegistration(sql.FieldGTE(FieldDeviceSystemVersion, v))
  344. }
  345. // DeviceSystemVersionLT applies the LT predicate on the "device_system_version" field.
  346. func DeviceSystemVersionLT(v string) predicate.PushRegistration {
  347. return predicate.PushRegistration(sql.FieldLT(FieldDeviceSystemVersion, v))
  348. }
  349. // DeviceSystemVersionLTE applies the LTE predicate on the "device_system_version" field.
  350. func DeviceSystemVersionLTE(v string) predicate.PushRegistration {
  351. return predicate.PushRegistration(sql.FieldLTE(FieldDeviceSystemVersion, v))
  352. }
  353. // DeviceSystemVersionContains applies the Contains predicate on the "device_system_version" field.
  354. func DeviceSystemVersionContains(v string) predicate.PushRegistration {
  355. return predicate.PushRegistration(sql.FieldContains(FieldDeviceSystemVersion, v))
  356. }
  357. // DeviceSystemVersionHasPrefix applies the HasPrefix predicate on the "device_system_version" field.
  358. func DeviceSystemVersionHasPrefix(v string) predicate.PushRegistration {
  359. return predicate.PushRegistration(sql.FieldHasPrefix(FieldDeviceSystemVersion, v))
  360. }
  361. // DeviceSystemVersionHasSuffix applies the HasSuffix predicate on the "device_system_version" field.
  362. func DeviceSystemVersionHasSuffix(v string) predicate.PushRegistration {
  363. return predicate.PushRegistration(sql.FieldHasSuffix(FieldDeviceSystemVersion, v))
  364. }
  365. // DeviceSystemVersionEqualFold applies the EqualFold predicate on the "device_system_version" field.
  366. func DeviceSystemVersionEqualFold(v string) predicate.PushRegistration {
  367. return predicate.PushRegistration(sql.FieldEqualFold(FieldDeviceSystemVersion, v))
  368. }
  369. // DeviceSystemVersionContainsFold applies the ContainsFold predicate on the "device_system_version" field.
  370. func DeviceSystemVersionContainsFold(v string) predicate.PushRegistration {
  371. return predicate.PushRegistration(sql.FieldContainsFold(FieldDeviceSystemVersion, v))
  372. }
  373. // DeviceSystemEQ applies the EQ predicate on the "device_system" field.
  374. func DeviceSystemEQ(v string) predicate.PushRegistration {
  375. return predicate.PushRegistration(sql.FieldEQ(FieldDeviceSystem, v))
  376. }
  377. // DeviceSystemNEQ applies the NEQ predicate on the "device_system" field.
  378. func DeviceSystemNEQ(v string) predicate.PushRegistration {
  379. return predicate.PushRegistration(sql.FieldNEQ(FieldDeviceSystem, v))
  380. }
  381. // DeviceSystemIn applies the In predicate on the "device_system" field.
  382. func DeviceSystemIn(vs ...string) predicate.PushRegistration {
  383. return predicate.PushRegistration(sql.FieldIn(FieldDeviceSystem, vs...))
  384. }
  385. // DeviceSystemNotIn applies the NotIn predicate on the "device_system" field.
  386. func DeviceSystemNotIn(vs ...string) predicate.PushRegistration {
  387. return predicate.PushRegistration(sql.FieldNotIn(FieldDeviceSystem, vs...))
  388. }
  389. // DeviceSystemGT applies the GT predicate on the "device_system" field.
  390. func DeviceSystemGT(v string) predicate.PushRegistration {
  391. return predicate.PushRegistration(sql.FieldGT(FieldDeviceSystem, v))
  392. }
  393. // DeviceSystemGTE applies the GTE predicate on the "device_system" field.
  394. func DeviceSystemGTE(v string) predicate.PushRegistration {
  395. return predicate.PushRegistration(sql.FieldGTE(FieldDeviceSystem, v))
  396. }
  397. // DeviceSystemLT applies the LT predicate on the "device_system" field.
  398. func DeviceSystemLT(v string) predicate.PushRegistration {
  399. return predicate.PushRegistration(sql.FieldLT(FieldDeviceSystem, v))
  400. }
  401. // DeviceSystemLTE applies the LTE predicate on the "device_system" field.
  402. func DeviceSystemLTE(v string) predicate.PushRegistration {
  403. return predicate.PushRegistration(sql.FieldLTE(FieldDeviceSystem, v))
  404. }
  405. // DeviceSystemContains applies the Contains predicate on the "device_system" field.
  406. func DeviceSystemContains(v string) predicate.PushRegistration {
  407. return predicate.PushRegistration(sql.FieldContains(FieldDeviceSystem, v))
  408. }
  409. // DeviceSystemHasPrefix applies the HasPrefix predicate on the "device_system" field.
  410. func DeviceSystemHasPrefix(v string) predicate.PushRegistration {
  411. return predicate.PushRegistration(sql.FieldHasPrefix(FieldDeviceSystem, v))
  412. }
  413. // DeviceSystemHasSuffix applies the HasSuffix predicate on the "device_system" field.
  414. func DeviceSystemHasSuffix(v string) predicate.PushRegistration {
  415. return predicate.PushRegistration(sql.FieldHasSuffix(FieldDeviceSystem, v))
  416. }
  417. // DeviceSystemEqualFold applies the EqualFold predicate on the "device_system" field.
  418. func DeviceSystemEqualFold(v string) predicate.PushRegistration {
  419. return predicate.PushRegistration(sql.FieldEqualFold(FieldDeviceSystem, v))
  420. }
  421. // DeviceSystemContainsFold applies the ContainsFold predicate on the "device_system" field.
  422. func DeviceSystemContainsFold(v string) predicate.PushRegistration {
  423. return predicate.PushRegistration(sql.FieldContainsFold(FieldDeviceSystem, v))
  424. }
  425. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  426. func CreatedAtEQ(v time.Time) predicate.PushRegistration {
  427. return predicate.PushRegistration(sql.FieldEQ(FieldCreatedAt, v))
  428. }
  429. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  430. func CreatedAtNEQ(v time.Time) predicate.PushRegistration {
  431. return predicate.PushRegistration(sql.FieldNEQ(FieldCreatedAt, v))
  432. }
  433. // CreatedAtIn applies the In predicate on the "created_at" field.
  434. func CreatedAtIn(vs ...time.Time) predicate.PushRegistration {
  435. return predicate.PushRegistration(sql.FieldIn(FieldCreatedAt, vs...))
  436. }
  437. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  438. func CreatedAtNotIn(vs ...time.Time) predicate.PushRegistration {
  439. return predicate.PushRegistration(sql.FieldNotIn(FieldCreatedAt, vs...))
  440. }
  441. // CreatedAtGT applies the GT predicate on the "created_at" field.
  442. func CreatedAtGT(v time.Time) predicate.PushRegistration {
  443. return predicate.PushRegistration(sql.FieldGT(FieldCreatedAt, v))
  444. }
  445. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  446. func CreatedAtGTE(v time.Time) predicate.PushRegistration {
  447. return predicate.PushRegistration(sql.FieldGTE(FieldCreatedAt, v))
  448. }
  449. // CreatedAtLT applies the LT predicate on the "created_at" field.
  450. func CreatedAtLT(v time.Time) predicate.PushRegistration {
  451. return predicate.PushRegistration(sql.FieldLT(FieldCreatedAt, v))
  452. }
  453. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  454. func CreatedAtLTE(v time.Time) predicate.PushRegistration {
  455. return predicate.PushRegistration(sql.FieldLTE(FieldCreatedAt, v))
  456. }
  457. // CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
  458. func CreatedAtIsNil() predicate.PushRegistration {
  459. return predicate.PushRegistration(sql.FieldIsNull(FieldCreatedAt))
  460. }
  461. // CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
  462. func CreatedAtNotNil() predicate.PushRegistration {
  463. return predicate.PushRegistration(sql.FieldNotNull(FieldCreatedAt))
  464. }
  465. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  466. func UpdatedAtEQ(v time.Time) predicate.PushRegistration {
  467. return predicate.PushRegistration(sql.FieldEQ(FieldUpdatedAt, v))
  468. }
  469. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  470. func UpdatedAtNEQ(v time.Time) predicate.PushRegistration {
  471. return predicate.PushRegistration(sql.FieldNEQ(FieldUpdatedAt, v))
  472. }
  473. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  474. func UpdatedAtIn(vs ...time.Time) predicate.PushRegistration {
  475. return predicate.PushRegistration(sql.FieldIn(FieldUpdatedAt, vs...))
  476. }
  477. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  478. func UpdatedAtNotIn(vs ...time.Time) predicate.PushRegistration {
  479. return predicate.PushRegistration(sql.FieldNotIn(FieldUpdatedAt, vs...))
  480. }
  481. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  482. func UpdatedAtGT(v time.Time) predicate.PushRegistration {
  483. return predicate.PushRegistration(sql.FieldGT(FieldUpdatedAt, v))
  484. }
  485. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  486. func UpdatedAtGTE(v time.Time) predicate.PushRegistration {
  487. return predicate.PushRegistration(sql.FieldGTE(FieldUpdatedAt, v))
  488. }
  489. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  490. func UpdatedAtLT(v time.Time) predicate.PushRegistration {
  491. return predicate.PushRegistration(sql.FieldLT(FieldUpdatedAt, v))
  492. }
  493. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  494. func UpdatedAtLTE(v time.Time) predicate.PushRegistration {
  495. return predicate.PushRegistration(sql.FieldLTE(FieldUpdatedAt, v))
  496. }
  497. // UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
  498. func UpdatedAtIsNil() predicate.PushRegistration {
  499. return predicate.PushRegistration(sql.FieldIsNull(FieldUpdatedAt))
  500. }
  501. // UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
  502. func UpdatedAtNotNil() predicate.PushRegistration {
  503. return predicate.PushRegistration(sql.FieldNotNull(FieldUpdatedAt))
  504. }
  505. // And groups predicates with the AND operator between them.
  506. func And(predicates ...predicate.PushRegistration) predicate.PushRegistration {
  507. return predicate.PushRegistration(sql.AndPredicates(predicates...))
  508. }
  509. // Or groups predicates with the OR operator between them.
  510. func Or(predicates ...predicate.PushRegistration) predicate.PushRegistration {
  511. return predicate.PushRegistration(sql.OrPredicates(predicates...))
  512. }
  513. // Not applies the not operator on the given predicate.
  514. func Not(p predicate.PushRegistration) predicate.PushRegistration {
  515. return predicate.PushRegistration(sql.NotPredicates(p))
  516. }