where.go 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754
  1. // Code generated by ent, DO NOT EDIT.
  2. package compositemodelroute
  3. import (
  4. "time"
  5. "entgo.io/ent/dialect/sql"
  6. "entgo.io/ent/dialect/sql/sqlgraph"
  7. "github.com/Wei-Shaw/sub2api/ent/predicate"
  8. )
  9. // ID filters vertices based on their ID field.
  10. func ID(id int64) predicate.CompositeModelRoute {
  11. return predicate.CompositeModelRoute(sql.FieldEQ(FieldID, id))
  12. }
  13. // IDEQ applies the EQ predicate on the ID field.
  14. func IDEQ(id int64) predicate.CompositeModelRoute {
  15. return predicate.CompositeModelRoute(sql.FieldEQ(FieldID, id))
  16. }
  17. // IDNEQ applies the NEQ predicate on the ID field.
  18. func IDNEQ(id int64) predicate.CompositeModelRoute {
  19. return predicate.CompositeModelRoute(sql.FieldNEQ(FieldID, id))
  20. }
  21. // IDIn applies the In predicate on the ID field.
  22. func IDIn(ids ...int64) predicate.CompositeModelRoute {
  23. return predicate.CompositeModelRoute(sql.FieldIn(FieldID, ids...))
  24. }
  25. // IDNotIn applies the NotIn predicate on the ID field.
  26. func IDNotIn(ids ...int64) predicate.CompositeModelRoute {
  27. return predicate.CompositeModelRoute(sql.FieldNotIn(FieldID, ids...))
  28. }
  29. // IDGT applies the GT predicate on the ID field.
  30. func IDGT(id int64) predicate.CompositeModelRoute {
  31. return predicate.CompositeModelRoute(sql.FieldGT(FieldID, id))
  32. }
  33. // IDGTE applies the GTE predicate on the ID field.
  34. func IDGTE(id int64) predicate.CompositeModelRoute {
  35. return predicate.CompositeModelRoute(sql.FieldGTE(FieldID, id))
  36. }
  37. // IDLT applies the LT predicate on the ID field.
  38. func IDLT(id int64) predicate.CompositeModelRoute {
  39. return predicate.CompositeModelRoute(sql.FieldLT(FieldID, id))
  40. }
  41. // IDLTE applies the LTE predicate on the ID field.
  42. func IDLTE(id int64) predicate.CompositeModelRoute {
  43. return predicate.CompositeModelRoute(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.CompositeModelRoute {
  47. return predicate.CompositeModelRoute(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.CompositeModelRoute {
  51. return predicate.CompositeModelRoute(sql.FieldEQ(FieldUpdatedAt, v))
  52. }
  53. // DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
  54. func DeletedAt(v time.Time) predicate.CompositeModelRoute {
  55. return predicate.CompositeModelRoute(sql.FieldEQ(FieldDeletedAt, v))
  56. }
  57. // GroupID applies equality check predicate on the "group_id" field. It's identical to GroupIDEQ.
  58. func GroupID(v int64) predicate.CompositeModelRoute {
  59. return predicate.CompositeModelRoute(sql.FieldEQ(FieldGroupID, v))
  60. }
  61. // PublicModel applies equality check predicate on the "public_model" field. It's identical to PublicModelEQ.
  62. func PublicModel(v string) predicate.CompositeModelRoute {
  63. return predicate.CompositeModelRoute(sql.FieldEQ(FieldPublicModel, v))
  64. }
  65. // MatchType applies equality check predicate on the "match_type" field. It's identical to MatchTypeEQ.
  66. func MatchType(v string) predicate.CompositeModelRoute {
  67. return predicate.CompositeModelRoute(sql.FieldEQ(FieldMatchType, v))
  68. }
  69. // TargetPlatform applies equality check predicate on the "target_platform" field. It's identical to TargetPlatformEQ.
  70. func TargetPlatform(v string) predicate.CompositeModelRoute {
  71. return predicate.CompositeModelRoute(sql.FieldEQ(FieldTargetPlatform, v))
  72. }
  73. // UpstreamModel applies equality check predicate on the "upstream_model" field. It's identical to UpstreamModelEQ.
  74. func UpstreamModel(v string) predicate.CompositeModelRoute {
  75. return predicate.CompositeModelRoute(sql.FieldEQ(FieldUpstreamModel, v))
  76. }
  77. // Endpoint applies equality check predicate on the "endpoint" field. It's identical to EndpointEQ.
  78. func Endpoint(v string) predicate.CompositeModelRoute {
  79. return predicate.CompositeModelRoute(sql.FieldEQ(FieldEndpoint, v))
  80. }
  81. // Priority applies equality check predicate on the "priority" field. It's identical to PriorityEQ.
  82. func Priority(v int) predicate.CompositeModelRoute {
  83. return predicate.CompositeModelRoute(sql.FieldEQ(FieldPriority, v))
  84. }
  85. // Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.
  86. func Enabled(v bool) predicate.CompositeModelRoute {
  87. return predicate.CompositeModelRoute(sql.FieldEQ(FieldEnabled, v))
  88. }
  89. // Notes applies equality check predicate on the "notes" field. It's identical to NotesEQ.
  90. func Notes(v string) predicate.CompositeModelRoute {
  91. return predicate.CompositeModelRoute(sql.FieldEQ(FieldNotes, v))
  92. }
  93. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  94. func CreatedAtEQ(v time.Time) predicate.CompositeModelRoute {
  95. return predicate.CompositeModelRoute(sql.FieldEQ(FieldCreatedAt, v))
  96. }
  97. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  98. func CreatedAtNEQ(v time.Time) predicate.CompositeModelRoute {
  99. return predicate.CompositeModelRoute(sql.FieldNEQ(FieldCreatedAt, v))
  100. }
  101. // CreatedAtIn applies the In predicate on the "created_at" field.
  102. func CreatedAtIn(vs ...time.Time) predicate.CompositeModelRoute {
  103. return predicate.CompositeModelRoute(sql.FieldIn(FieldCreatedAt, vs...))
  104. }
  105. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  106. func CreatedAtNotIn(vs ...time.Time) predicate.CompositeModelRoute {
  107. return predicate.CompositeModelRoute(sql.FieldNotIn(FieldCreatedAt, vs...))
  108. }
  109. // CreatedAtGT applies the GT predicate on the "created_at" field.
  110. func CreatedAtGT(v time.Time) predicate.CompositeModelRoute {
  111. return predicate.CompositeModelRoute(sql.FieldGT(FieldCreatedAt, v))
  112. }
  113. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  114. func CreatedAtGTE(v time.Time) predicate.CompositeModelRoute {
  115. return predicate.CompositeModelRoute(sql.FieldGTE(FieldCreatedAt, v))
  116. }
  117. // CreatedAtLT applies the LT predicate on the "created_at" field.
  118. func CreatedAtLT(v time.Time) predicate.CompositeModelRoute {
  119. return predicate.CompositeModelRoute(sql.FieldLT(FieldCreatedAt, v))
  120. }
  121. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  122. func CreatedAtLTE(v time.Time) predicate.CompositeModelRoute {
  123. return predicate.CompositeModelRoute(sql.FieldLTE(FieldCreatedAt, v))
  124. }
  125. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  126. func UpdatedAtEQ(v time.Time) predicate.CompositeModelRoute {
  127. return predicate.CompositeModelRoute(sql.FieldEQ(FieldUpdatedAt, v))
  128. }
  129. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  130. func UpdatedAtNEQ(v time.Time) predicate.CompositeModelRoute {
  131. return predicate.CompositeModelRoute(sql.FieldNEQ(FieldUpdatedAt, v))
  132. }
  133. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  134. func UpdatedAtIn(vs ...time.Time) predicate.CompositeModelRoute {
  135. return predicate.CompositeModelRoute(sql.FieldIn(FieldUpdatedAt, vs...))
  136. }
  137. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  138. func UpdatedAtNotIn(vs ...time.Time) predicate.CompositeModelRoute {
  139. return predicate.CompositeModelRoute(sql.FieldNotIn(FieldUpdatedAt, vs...))
  140. }
  141. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  142. func UpdatedAtGT(v time.Time) predicate.CompositeModelRoute {
  143. return predicate.CompositeModelRoute(sql.FieldGT(FieldUpdatedAt, v))
  144. }
  145. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  146. func UpdatedAtGTE(v time.Time) predicate.CompositeModelRoute {
  147. return predicate.CompositeModelRoute(sql.FieldGTE(FieldUpdatedAt, v))
  148. }
  149. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  150. func UpdatedAtLT(v time.Time) predicate.CompositeModelRoute {
  151. return predicate.CompositeModelRoute(sql.FieldLT(FieldUpdatedAt, v))
  152. }
  153. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  154. func UpdatedAtLTE(v time.Time) predicate.CompositeModelRoute {
  155. return predicate.CompositeModelRoute(sql.FieldLTE(FieldUpdatedAt, v))
  156. }
  157. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  158. func DeletedAtEQ(v time.Time) predicate.CompositeModelRoute {
  159. return predicate.CompositeModelRoute(sql.FieldEQ(FieldDeletedAt, v))
  160. }
  161. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  162. func DeletedAtNEQ(v time.Time) predicate.CompositeModelRoute {
  163. return predicate.CompositeModelRoute(sql.FieldNEQ(FieldDeletedAt, v))
  164. }
  165. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  166. func DeletedAtIn(vs ...time.Time) predicate.CompositeModelRoute {
  167. return predicate.CompositeModelRoute(sql.FieldIn(FieldDeletedAt, vs...))
  168. }
  169. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  170. func DeletedAtNotIn(vs ...time.Time) predicate.CompositeModelRoute {
  171. return predicate.CompositeModelRoute(sql.FieldNotIn(FieldDeletedAt, vs...))
  172. }
  173. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  174. func DeletedAtGT(v time.Time) predicate.CompositeModelRoute {
  175. return predicate.CompositeModelRoute(sql.FieldGT(FieldDeletedAt, v))
  176. }
  177. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  178. func DeletedAtGTE(v time.Time) predicate.CompositeModelRoute {
  179. return predicate.CompositeModelRoute(sql.FieldGTE(FieldDeletedAt, v))
  180. }
  181. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  182. func DeletedAtLT(v time.Time) predicate.CompositeModelRoute {
  183. return predicate.CompositeModelRoute(sql.FieldLT(FieldDeletedAt, v))
  184. }
  185. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  186. func DeletedAtLTE(v time.Time) predicate.CompositeModelRoute {
  187. return predicate.CompositeModelRoute(sql.FieldLTE(FieldDeletedAt, v))
  188. }
  189. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  190. func DeletedAtIsNil() predicate.CompositeModelRoute {
  191. return predicate.CompositeModelRoute(sql.FieldIsNull(FieldDeletedAt))
  192. }
  193. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  194. func DeletedAtNotNil() predicate.CompositeModelRoute {
  195. return predicate.CompositeModelRoute(sql.FieldNotNull(FieldDeletedAt))
  196. }
  197. // GroupIDEQ applies the EQ predicate on the "group_id" field.
  198. func GroupIDEQ(v int64) predicate.CompositeModelRoute {
  199. return predicate.CompositeModelRoute(sql.FieldEQ(FieldGroupID, v))
  200. }
  201. // GroupIDNEQ applies the NEQ predicate on the "group_id" field.
  202. func GroupIDNEQ(v int64) predicate.CompositeModelRoute {
  203. return predicate.CompositeModelRoute(sql.FieldNEQ(FieldGroupID, v))
  204. }
  205. // GroupIDIn applies the In predicate on the "group_id" field.
  206. func GroupIDIn(vs ...int64) predicate.CompositeModelRoute {
  207. return predicate.CompositeModelRoute(sql.FieldIn(FieldGroupID, vs...))
  208. }
  209. // GroupIDNotIn applies the NotIn predicate on the "group_id" field.
  210. func GroupIDNotIn(vs ...int64) predicate.CompositeModelRoute {
  211. return predicate.CompositeModelRoute(sql.FieldNotIn(FieldGroupID, vs...))
  212. }
  213. // PublicModelEQ applies the EQ predicate on the "public_model" field.
  214. func PublicModelEQ(v string) predicate.CompositeModelRoute {
  215. return predicate.CompositeModelRoute(sql.FieldEQ(FieldPublicModel, v))
  216. }
  217. // PublicModelNEQ applies the NEQ predicate on the "public_model" field.
  218. func PublicModelNEQ(v string) predicate.CompositeModelRoute {
  219. return predicate.CompositeModelRoute(sql.FieldNEQ(FieldPublicModel, v))
  220. }
  221. // PublicModelIn applies the In predicate on the "public_model" field.
  222. func PublicModelIn(vs ...string) predicate.CompositeModelRoute {
  223. return predicate.CompositeModelRoute(sql.FieldIn(FieldPublicModel, vs...))
  224. }
  225. // PublicModelNotIn applies the NotIn predicate on the "public_model" field.
  226. func PublicModelNotIn(vs ...string) predicate.CompositeModelRoute {
  227. return predicate.CompositeModelRoute(sql.FieldNotIn(FieldPublicModel, vs...))
  228. }
  229. // PublicModelGT applies the GT predicate on the "public_model" field.
  230. func PublicModelGT(v string) predicate.CompositeModelRoute {
  231. return predicate.CompositeModelRoute(sql.FieldGT(FieldPublicModel, v))
  232. }
  233. // PublicModelGTE applies the GTE predicate on the "public_model" field.
  234. func PublicModelGTE(v string) predicate.CompositeModelRoute {
  235. return predicate.CompositeModelRoute(sql.FieldGTE(FieldPublicModel, v))
  236. }
  237. // PublicModelLT applies the LT predicate on the "public_model" field.
  238. func PublicModelLT(v string) predicate.CompositeModelRoute {
  239. return predicate.CompositeModelRoute(sql.FieldLT(FieldPublicModel, v))
  240. }
  241. // PublicModelLTE applies the LTE predicate on the "public_model" field.
  242. func PublicModelLTE(v string) predicate.CompositeModelRoute {
  243. return predicate.CompositeModelRoute(sql.FieldLTE(FieldPublicModel, v))
  244. }
  245. // PublicModelContains applies the Contains predicate on the "public_model" field.
  246. func PublicModelContains(v string) predicate.CompositeModelRoute {
  247. return predicate.CompositeModelRoute(sql.FieldContains(FieldPublicModel, v))
  248. }
  249. // PublicModelHasPrefix applies the HasPrefix predicate on the "public_model" field.
  250. func PublicModelHasPrefix(v string) predicate.CompositeModelRoute {
  251. return predicate.CompositeModelRoute(sql.FieldHasPrefix(FieldPublicModel, v))
  252. }
  253. // PublicModelHasSuffix applies the HasSuffix predicate on the "public_model" field.
  254. func PublicModelHasSuffix(v string) predicate.CompositeModelRoute {
  255. return predicate.CompositeModelRoute(sql.FieldHasSuffix(FieldPublicModel, v))
  256. }
  257. // PublicModelEqualFold applies the EqualFold predicate on the "public_model" field.
  258. func PublicModelEqualFold(v string) predicate.CompositeModelRoute {
  259. return predicate.CompositeModelRoute(sql.FieldEqualFold(FieldPublicModel, v))
  260. }
  261. // PublicModelContainsFold applies the ContainsFold predicate on the "public_model" field.
  262. func PublicModelContainsFold(v string) predicate.CompositeModelRoute {
  263. return predicate.CompositeModelRoute(sql.FieldContainsFold(FieldPublicModel, v))
  264. }
  265. // MatchTypeEQ applies the EQ predicate on the "match_type" field.
  266. func MatchTypeEQ(v string) predicate.CompositeModelRoute {
  267. return predicate.CompositeModelRoute(sql.FieldEQ(FieldMatchType, v))
  268. }
  269. // MatchTypeNEQ applies the NEQ predicate on the "match_type" field.
  270. func MatchTypeNEQ(v string) predicate.CompositeModelRoute {
  271. return predicate.CompositeModelRoute(sql.FieldNEQ(FieldMatchType, v))
  272. }
  273. // MatchTypeIn applies the In predicate on the "match_type" field.
  274. func MatchTypeIn(vs ...string) predicate.CompositeModelRoute {
  275. return predicate.CompositeModelRoute(sql.FieldIn(FieldMatchType, vs...))
  276. }
  277. // MatchTypeNotIn applies the NotIn predicate on the "match_type" field.
  278. func MatchTypeNotIn(vs ...string) predicate.CompositeModelRoute {
  279. return predicate.CompositeModelRoute(sql.FieldNotIn(FieldMatchType, vs...))
  280. }
  281. // MatchTypeGT applies the GT predicate on the "match_type" field.
  282. func MatchTypeGT(v string) predicate.CompositeModelRoute {
  283. return predicate.CompositeModelRoute(sql.FieldGT(FieldMatchType, v))
  284. }
  285. // MatchTypeGTE applies the GTE predicate on the "match_type" field.
  286. func MatchTypeGTE(v string) predicate.CompositeModelRoute {
  287. return predicate.CompositeModelRoute(sql.FieldGTE(FieldMatchType, v))
  288. }
  289. // MatchTypeLT applies the LT predicate on the "match_type" field.
  290. func MatchTypeLT(v string) predicate.CompositeModelRoute {
  291. return predicate.CompositeModelRoute(sql.FieldLT(FieldMatchType, v))
  292. }
  293. // MatchTypeLTE applies the LTE predicate on the "match_type" field.
  294. func MatchTypeLTE(v string) predicate.CompositeModelRoute {
  295. return predicate.CompositeModelRoute(sql.FieldLTE(FieldMatchType, v))
  296. }
  297. // MatchTypeContains applies the Contains predicate on the "match_type" field.
  298. func MatchTypeContains(v string) predicate.CompositeModelRoute {
  299. return predicate.CompositeModelRoute(sql.FieldContains(FieldMatchType, v))
  300. }
  301. // MatchTypeHasPrefix applies the HasPrefix predicate on the "match_type" field.
  302. func MatchTypeHasPrefix(v string) predicate.CompositeModelRoute {
  303. return predicate.CompositeModelRoute(sql.FieldHasPrefix(FieldMatchType, v))
  304. }
  305. // MatchTypeHasSuffix applies the HasSuffix predicate on the "match_type" field.
  306. func MatchTypeHasSuffix(v string) predicate.CompositeModelRoute {
  307. return predicate.CompositeModelRoute(sql.FieldHasSuffix(FieldMatchType, v))
  308. }
  309. // MatchTypeEqualFold applies the EqualFold predicate on the "match_type" field.
  310. func MatchTypeEqualFold(v string) predicate.CompositeModelRoute {
  311. return predicate.CompositeModelRoute(sql.FieldEqualFold(FieldMatchType, v))
  312. }
  313. // MatchTypeContainsFold applies the ContainsFold predicate on the "match_type" field.
  314. func MatchTypeContainsFold(v string) predicate.CompositeModelRoute {
  315. return predicate.CompositeModelRoute(sql.FieldContainsFold(FieldMatchType, v))
  316. }
  317. // TargetPlatformEQ applies the EQ predicate on the "target_platform" field.
  318. func TargetPlatformEQ(v string) predicate.CompositeModelRoute {
  319. return predicate.CompositeModelRoute(sql.FieldEQ(FieldTargetPlatform, v))
  320. }
  321. // TargetPlatformNEQ applies the NEQ predicate on the "target_platform" field.
  322. func TargetPlatformNEQ(v string) predicate.CompositeModelRoute {
  323. return predicate.CompositeModelRoute(sql.FieldNEQ(FieldTargetPlatform, v))
  324. }
  325. // TargetPlatformIn applies the In predicate on the "target_platform" field.
  326. func TargetPlatformIn(vs ...string) predicate.CompositeModelRoute {
  327. return predicate.CompositeModelRoute(sql.FieldIn(FieldTargetPlatform, vs...))
  328. }
  329. // TargetPlatformNotIn applies the NotIn predicate on the "target_platform" field.
  330. func TargetPlatformNotIn(vs ...string) predicate.CompositeModelRoute {
  331. return predicate.CompositeModelRoute(sql.FieldNotIn(FieldTargetPlatform, vs...))
  332. }
  333. // TargetPlatformGT applies the GT predicate on the "target_platform" field.
  334. func TargetPlatformGT(v string) predicate.CompositeModelRoute {
  335. return predicate.CompositeModelRoute(sql.FieldGT(FieldTargetPlatform, v))
  336. }
  337. // TargetPlatformGTE applies the GTE predicate on the "target_platform" field.
  338. func TargetPlatformGTE(v string) predicate.CompositeModelRoute {
  339. return predicate.CompositeModelRoute(sql.FieldGTE(FieldTargetPlatform, v))
  340. }
  341. // TargetPlatformLT applies the LT predicate on the "target_platform" field.
  342. func TargetPlatformLT(v string) predicate.CompositeModelRoute {
  343. return predicate.CompositeModelRoute(sql.FieldLT(FieldTargetPlatform, v))
  344. }
  345. // TargetPlatformLTE applies the LTE predicate on the "target_platform" field.
  346. func TargetPlatformLTE(v string) predicate.CompositeModelRoute {
  347. return predicate.CompositeModelRoute(sql.FieldLTE(FieldTargetPlatform, v))
  348. }
  349. // TargetPlatformContains applies the Contains predicate on the "target_platform" field.
  350. func TargetPlatformContains(v string) predicate.CompositeModelRoute {
  351. return predicate.CompositeModelRoute(sql.FieldContains(FieldTargetPlatform, v))
  352. }
  353. // TargetPlatformHasPrefix applies the HasPrefix predicate on the "target_platform" field.
  354. func TargetPlatformHasPrefix(v string) predicate.CompositeModelRoute {
  355. return predicate.CompositeModelRoute(sql.FieldHasPrefix(FieldTargetPlatform, v))
  356. }
  357. // TargetPlatformHasSuffix applies the HasSuffix predicate on the "target_platform" field.
  358. func TargetPlatformHasSuffix(v string) predicate.CompositeModelRoute {
  359. return predicate.CompositeModelRoute(sql.FieldHasSuffix(FieldTargetPlatform, v))
  360. }
  361. // TargetPlatformEqualFold applies the EqualFold predicate on the "target_platform" field.
  362. func TargetPlatformEqualFold(v string) predicate.CompositeModelRoute {
  363. return predicate.CompositeModelRoute(sql.FieldEqualFold(FieldTargetPlatform, v))
  364. }
  365. // TargetPlatformContainsFold applies the ContainsFold predicate on the "target_platform" field.
  366. func TargetPlatformContainsFold(v string) predicate.CompositeModelRoute {
  367. return predicate.CompositeModelRoute(sql.FieldContainsFold(FieldTargetPlatform, v))
  368. }
  369. // UpstreamModelEQ applies the EQ predicate on the "upstream_model" field.
  370. func UpstreamModelEQ(v string) predicate.CompositeModelRoute {
  371. return predicate.CompositeModelRoute(sql.FieldEQ(FieldUpstreamModel, v))
  372. }
  373. // UpstreamModelNEQ applies the NEQ predicate on the "upstream_model" field.
  374. func UpstreamModelNEQ(v string) predicate.CompositeModelRoute {
  375. return predicate.CompositeModelRoute(sql.FieldNEQ(FieldUpstreamModel, v))
  376. }
  377. // UpstreamModelIn applies the In predicate on the "upstream_model" field.
  378. func UpstreamModelIn(vs ...string) predicate.CompositeModelRoute {
  379. return predicate.CompositeModelRoute(sql.FieldIn(FieldUpstreamModel, vs...))
  380. }
  381. // UpstreamModelNotIn applies the NotIn predicate on the "upstream_model" field.
  382. func UpstreamModelNotIn(vs ...string) predicate.CompositeModelRoute {
  383. return predicate.CompositeModelRoute(sql.FieldNotIn(FieldUpstreamModel, vs...))
  384. }
  385. // UpstreamModelGT applies the GT predicate on the "upstream_model" field.
  386. func UpstreamModelGT(v string) predicate.CompositeModelRoute {
  387. return predicate.CompositeModelRoute(sql.FieldGT(FieldUpstreamModel, v))
  388. }
  389. // UpstreamModelGTE applies the GTE predicate on the "upstream_model" field.
  390. func UpstreamModelGTE(v string) predicate.CompositeModelRoute {
  391. return predicate.CompositeModelRoute(sql.FieldGTE(FieldUpstreamModel, v))
  392. }
  393. // UpstreamModelLT applies the LT predicate on the "upstream_model" field.
  394. func UpstreamModelLT(v string) predicate.CompositeModelRoute {
  395. return predicate.CompositeModelRoute(sql.FieldLT(FieldUpstreamModel, v))
  396. }
  397. // UpstreamModelLTE applies the LTE predicate on the "upstream_model" field.
  398. func UpstreamModelLTE(v string) predicate.CompositeModelRoute {
  399. return predicate.CompositeModelRoute(sql.FieldLTE(FieldUpstreamModel, v))
  400. }
  401. // UpstreamModelContains applies the Contains predicate on the "upstream_model" field.
  402. func UpstreamModelContains(v string) predicate.CompositeModelRoute {
  403. return predicate.CompositeModelRoute(sql.FieldContains(FieldUpstreamModel, v))
  404. }
  405. // UpstreamModelHasPrefix applies the HasPrefix predicate on the "upstream_model" field.
  406. func UpstreamModelHasPrefix(v string) predicate.CompositeModelRoute {
  407. return predicate.CompositeModelRoute(sql.FieldHasPrefix(FieldUpstreamModel, v))
  408. }
  409. // UpstreamModelHasSuffix applies the HasSuffix predicate on the "upstream_model" field.
  410. func UpstreamModelHasSuffix(v string) predicate.CompositeModelRoute {
  411. return predicate.CompositeModelRoute(sql.FieldHasSuffix(FieldUpstreamModel, v))
  412. }
  413. // UpstreamModelEqualFold applies the EqualFold predicate on the "upstream_model" field.
  414. func UpstreamModelEqualFold(v string) predicate.CompositeModelRoute {
  415. return predicate.CompositeModelRoute(sql.FieldEqualFold(FieldUpstreamModel, v))
  416. }
  417. // UpstreamModelContainsFold applies the ContainsFold predicate on the "upstream_model" field.
  418. func UpstreamModelContainsFold(v string) predicate.CompositeModelRoute {
  419. return predicate.CompositeModelRoute(sql.FieldContainsFold(FieldUpstreamModel, v))
  420. }
  421. // EndpointEQ applies the EQ predicate on the "endpoint" field.
  422. func EndpointEQ(v string) predicate.CompositeModelRoute {
  423. return predicate.CompositeModelRoute(sql.FieldEQ(FieldEndpoint, v))
  424. }
  425. // EndpointNEQ applies the NEQ predicate on the "endpoint" field.
  426. func EndpointNEQ(v string) predicate.CompositeModelRoute {
  427. return predicate.CompositeModelRoute(sql.FieldNEQ(FieldEndpoint, v))
  428. }
  429. // EndpointIn applies the In predicate on the "endpoint" field.
  430. func EndpointIn(vs ...string) predicate.CompositeModelRoute {
  431. return predicate.CompositeModelRoute(sql.FieldIn(FieldEndpoint, vs...))
  432. }
  433. // EndpointNotIn applies the NotIn predicate on the "endpoint" field.
  434. func EndpointNotIn(vs ...string) predicate.CompositeModelRoute {
  435. return predicate.CompositeModelRoute(sql.FieldNotIn(FieldEndpoint, vs...))
  436. }
  437. // EndpointGT applies the GT predicate on the "endpoint" field.
  438. func EndpointGT(v string) predicate.CompositeModelRoute {
  439. return predicate.CompositeModelRoute(sql.FieldGT(FieldEndpoint, v))
  440. }
  441. // EndpointGTE applies the GTE predicate on the "endpoint" field.
  442. func EndpointGTE(v string) predicate.CompositeModelRoute {
  443. return predicate.CompositeModelRoute(sql.FieldGTE(FieldEndpoint, v))
  444. }
  445. // EndpointLT applies the LT predicate on the "endpoint" field.
  446. func EndpointLT(v string) predicate.CompositeModelRoute {
  447. return predicate.CompositeModelRoute(sql.FieldLT(FieldEndpoint, v))
  448. }
  449. // EndpointLTE applies the LTE predicate on the "endpoint" field.
  450. func EndpointLTE(v string) predicate.CompositeModelRoute {
  451. return predicate.CompositeModelRoute(sql.FieldLTE(FieldEndpoint, v))
  452. }
  453. // EndpointContains applies the Contains predicate on the "endpoint" field.
  454. func EndpointContains(v string) predicate.CompositeModelRoute {
  455. return predicate.CompositeModelRoute(sql.FieldContains(FieldEndpoint, v))
  456. }
  457. // EndpointHasPrefix applies the HasPrefix predicate on the "endpoint" field.
  458. func EndpointHasPrefix(v string) predicate.CompositeModelRoute {
  459. return predicate.CompositeModelRoute(sql.FieldHasPrefix(FieldEndpoint, v))
  460. }
  461. // EndpointHasSuffix applies the HasSuffix predicate on the "endpoint" field.
  462. func EndpointHasSuffix(v string) predicate.CompositeModelRoute {
  463. return predicate.CompositeModelRoute(sql.FieldHasSuffix(FieldEndpoint, v))
  464. }
  465. // EndpointEqualFold applies the EqualFold predicate on the "endpoint" field.
  466. func EndpointEqualFold(v string) predicate.CompositeModelRoute {
  467. return predicate.CompositeModelRoute(sql.FieldEqualFold(FieldEndpoint, v))
  468. }
  469. // EndpointContainsFold applies the ContainsFold predicate on the "endpoint" field.
  470. func EndpointContainsFold(v string) predicate.CompositeModelRoute {
  471. return predicate.CompositeModelRoute(sql.FieldContainsFold(FieldEndpoint, v))
  472. }
  473. // PriorityEQ applies the EQ predicate on the "priority" field.
  474. func PriorityEQ(v int) predicate.CompositeModelRoute {
  475. return predicate.CompositeModelRoute(sql.FieldEQ(FieldPriority, v))
  476. }
  477. // PriorityNEQ applies the NEQ predicate on the "priority" field.
  478. func PriorityNEQ(v int) predicate.CompositeModelRoute {
  479. return predicate.CompositeModelRoute(sql.FieldNEQ(FieldPriority, v))
  480. }
  481. // PriorityIn applies the In predicate on the "priority" field.
  482. func PriorityIn(vs ...int) predicate.CompositeModelRoute {
  483. return predicate.CompositeModelRoute(sql.FieldIn(FieldPriority, vs...))
  484. }
  485. // PriorityNotIn applies the NotIn predicate on the "priority" field.
  486. func PriorityNotIn(vs ...int) predicate.CompositeModelRoute {
  487. return predicate.CompositeModelRoute(sql.FieldNotIn(FieldPriority, vs...))
  488. }
  489. // PriorityGT applies the GT predicate on the "priority" field.
  490. func PriorityGT(v int) predicate.CompositeModelRoute {
  491. return predicate.CompositeModelRoute(sql.FieldGT(FieldPriority, v))
  492. }
  493. // PriorityGTE applies the GTE predicate on the "priority" field.
  494. func PriorityGTE(v int) predicate.CompositeModelRoute {
  495. return predicate.CompositeModelRoute(sql.FieldGTE(FieldPriority, v))
  496. }
  497. // PriorityLT applies the LT predicate on the "priority" field.
  498. func PriorityLT(v int) predicate.CompositeModelRoute {
  499. return predicate.CompositeModelRoute(sql.FieldLT(FieldPriority, v))
  500. }
  501. // PriorityLTE applies the LTE predicate on the "priority" field.
  502. func PriorityLTE(v int) predicate.CompositeModelRoute {
  503. return predicate.CompositeModelRoute(sql.FieldLTE(FieldPriority, v))
  504. }
  505. // EnabledEQ applies the EQ predicate on the "enabled" field.
  506. func EnabledEQ(v bool) predicate.CompositeModelRoute {
  507. return predicate.CompositeModelRoute(sql.FieldEQ(FieldEnabled, v))
  508. }
  509. // EnabledNEQ applies the NEQ predicate on the "enabled" field.
  510. func EnabledNEQ(v bool) predicate.CompositeModelRoute {
  511. return predicate.CompositeModelRoute(sql.FieldNEQ(FieldEnabled, v))
  512. }
  513. // NotesEQ applies the EQ predicate on the "notes" field.
  514. func NotesEQ(v string) predicate.CompositeModelRoute {
  515. return predicate.CompositeModelRoute(sql.FieldEQ(FieldNotes, v))
  516. }
  517. // NotesNEQ applies the NEQ predicate on the "notes" field.
  518. func NotesNEQ(v string) predicate.CompositeModelRoute {
  519. return predicate.CompositeModelRoute(sql.FieldNEQ(FieldNotes, v))
  520. }
  521. // NotesIn applies the In predicate on the "notes" field.
  522. func NotesIn(vs ...string) predicate.CompositeModelRoute {
  523. return predicate.CompositeModelRoute(sql.FieldIn(FieldNotes, vs...))
  524. }
  525. // NotesNotIn applies the NotIn predicate on the "notes" field.
  526. func NotesNotIn(vs ...string) predicate.CompositeModelRoute {
  527. return predicate.CompositeModelRoute(sql.FieldNotIn(FieldNotes, vs...))
  528. }
  529. // NotesGT applies the GT predicate on the "notes" field.
  530. func NotesGT(v string) predicate.CompositeModelRoute {
  531. return predicate.CompositeModelRoute(sql.FieldGT(FieldNotes, v))
  532. }
  533. // NotesGTE applies the GTE predicate on the "notes" field.
  534. func NotesGTE(v string) predicate.CompositeModelRoute {
  535. return predicate.CompositeModelRoute(sql.FieldGTE(FieldNotes, v))
  536. }
  537. // NotesLT applies the LT predicate on the "notes" field.
  538. func NotesLT(v string) predicate.CompositeModelRoute {
  539. return predicate.CompositeModelRoute(sql.FieldLT(FieldNotes, v))
  540. }
  541. // NotesLTE applies the LTE predicate on the "notes" field.
  542. func NotesLTE(v string) predicate.CompositeModelRoute {
  543. return predicate.CompositeModelRoute(sql.FieldLTE(FieldNotes, v))
  544. }
  545. // NotesContains applies the Contains predicate on the "notes" field.
  546. func NotesContains(v string) predicate.CompositeModelRoute {
  547. return predicate.CompositeModelRoute(sql.FieldContains(FieldNotes, v))
  548. }
  549. // NotesHasPrefix applies the HasPrefix predicate on the "notes" field.
  550. func NotesHasPrefix(v string) predicate.CompositeModelRoute {
  551. return predicate.CompositeModelRoute(sql.FieldHasPrefix(FieldNotes, v))
  552. }
  553. // NotesHasSuffix applies the HasSuffix predicate on the "notes" field.
  554. func NotesHasSuffix(v string) predicate.CompositeModelRoute {
  555. return predicate.CompositeModelRoute(sql.FieldHasSuffix(FieldNotes, v))
  556. }
  557. // NotesIsNil applies the IsNil predicate on the "notes" field.
  558. func NotesIsNil() predicate.CompositeModelRoute {
  559. return predicate.CompositeModelRoute(sql.FieldIsNull(FieldNotes))
  560. }
  561. // NotesNotNil applies the NotNil predicate on the "notes" field.
  562. func NotesNotNil() predicate.CompositeModelRoute {
  563. return predicate.CompositeModelRoute(sql.FieldNotNull(FieldNotes))
  564. }
  565. // NotesEqualFold applies the EqualFold predicate on the "notes" field.
  566. func NotesEqualFold(v string) predicate.CompositeModelRoute {
  567. return predicate.CompositeModelRoute(sql.FieldEqualFold(FieldNotes, v))
  568. }
  569. // NotesContainsFold applies the ContainsFold predicate on the "notes" field.
  570. func NotesContainsFold(v string) predicate.CompositeModelRoute {
  571. return predicate.CompositeModelRoute(sql.FieldContainsFold(FieldNotes, v))
  572. }
  573. // HasGroup applies the HasEdge predicate on the "group" edge.
  574. func HasGroup() predicate.CompositeModelRoute {
  575. return predicate.CompositeModelRoute(func(s *sql.Selector) {
  576. step := sqlgraph.NewStep(
  577. sqlgraph.From(Table, FieldID),
  578. sqlgraph.Edge(sqlgraph.M2O, false, GroupTable, GroupColumn),
  579. )
  580. sqlgraph.HasNeighbors(s, step)
  581. })
  582. }
  583. // HasGroupWith applies the HasEdge predicate on the "group" edge with a given conditions (other predicates).
  584. func HasGroupWith(preds ...predicate.Group) predicate.CompositeModelRoute {
  585. return predicate.CompositeModelRoute(func(s *sql.Selector) {
  586. step := newGroupStep()
  587. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  588. for _, p := range preds {
  589. p(s)
  590. }
  591. })
  592. })
  593. }
  594. // And groups predicates with the AND operator between them.
  595. func And(predicates ...predicate.CompositeModelRoute) predicate.CompositeModelRoute {
  596. return predicate.CompositeModelRoute(sql.AndPredicates(predicates...))
  597. }
  598. // Or groups predicates with the OR operator between them.
  599. func Or(predicates ...predicate.CompositeModelRoute) predicate.CompositeModelRoute {
  600. return predicate.CompositeModelRoute(sql.OrPredicates(predicates...))
  601. }
  602. // Not applies the not operator on the given predicate.
  603. func Not(p predicate.CompositeModelRoute) predicate.CompositeModelRoute {
  604. return predicate.CompositeModelRoute(sql.NotPredicates(p))
  605. }