where.go 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125
  1. // Code generated by ent, DO NOT EDIT.
  2. package channelmonitor
  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.ChannelMonitor {
  11. return predicate.ChannelMonitor(sql.FieldEQ(FieldID, id))
  12. }
  13. // IDEQ applies the EQ predicate on the ID field.
  14. func IDEQ(id int64) predicate.ChannelMonitor {
  15. return predicate.ChannelMonitor(sql.FieldEQ(FieldID, id))
  16. }
  17. // IDNEQ applies the NEQ predicate on the ID field.
  18. func IDNEQ(id int64) predicate.ChannelMonitor {
  19. return predicate.ChannelMonitor(sql.FieldNEQ(FieldID, id))
  20. }
  21. // IDIn applies the In predicate on the ID field.
  22. func IDIn(ids ...int64) predicate.ChannelMonitor {
  23. return predicate.ChannelMonitor(sql.FieldIn(FieldID, ids...))
  24. }
  25. // IDNotIn applies the NotIn predicate on the ID field.
  26. func IDNotIn(ids ...int64) predicate.ChannelMonitor {
  27. return predicate.ChannelMonitor(sql.FieldNotIn(FieldID, ids...))
  28. }
  29. // IDGT applies the GT predicate on the ID field.
  30. func IDGT(id int64) predicate.ChannelMonitor {
  31. return predicate.ChannelMonitor(sql.FieldGT(FieldID, id))
  32. }
  33. // IDGTE applies the GTE predicate on the ID field.
  34. func IDGTE(id int64) predicate.ChannelMonitor {
  35. return predicate.ChannelMonitor(sql.FieldGTE(FieldID, id))
  36. }
  37. // IDLT applies the LT predicate on the ID field.
  38. func IDLT(id int64) predicate.ChannelMonitor {
  39. return predicate.ChannelMonitor(sql.FieldLT(FieldID, id))
  40. }
  41. // IDLTE applies the LTE predicate on the ID field.
  42. func IDLTE(id int64) predicate.ChannelMonitor {
  43. return predicate.ChannelMonitor(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.ChannelMonitor {
  47. return predicate.ChannelMonitor(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.ChannelMonitor {
  51. return predicate.ChannelMonitor(sql.FieldEQ(FieldUpdatedAt, v))
  52. }
  53. // Name applies equality check predicate on the "name" field. It's identical to NameEQ.
  54. func Name(v string) predicate.ChannelMonitor {
  55. return predicate.ChannelMonitor(sql.FieldEQ(FieldName, v))
  56. }
  57. // CheckMode applies equality check predicate on the "check_mode" field. It's identical to CheckModeEQ.
  58. func CheckMode(v string) predicate.ChannelMonitor {
  59. return predicate.ChannelMonitor(sql.FieldEQ(FieldCheckMode, v))
  60. }
  61. // AccountID applies equality check predicate on the "account_id" field. It's identical to AccountIDEQ.
  62. func AccountID(v int64) predicate.ChannelMonitor {
  63. return predicate.ChannelMonitor(sql.FieldEQ(FieldAccountID, v))
  64. }
  65. // APIMode applies equality check predicate on the "api_mode" field. It's identical to APIModeEQ.
  66. func APIMode(v string) predicate.ChannelMonitor {
  67. return predicate.ChannelMonitor(sql.FieldEQ(FieldAPIMode, v))
  68. }
  69. // Endpoint applies equality check predicate on the "endpoint" field. It's identical to EndpointEQ.
  70. func Endpoint(v string) predicate.ChannelMonitor {
  71. return predicate.ChannelMonitor(sql.FieldEQ(FieldEndpoint, v))
  72. }
  73. // APIKeyEncrypted applies equality check predicate on the "api_key_encrypted" field. It's identical to APIKeyEncryptedEQ.
  74. func APIKeyEncrypted(v string) predicate.ChannelMonitor {
  75. return predicate.ChannelMonitor(sql.FieldEQ(FieldAPIKeyEncrypted, v))
  76. }
  77. // PrimaryModel applies equality check predicate on the "primary_model" field. It's identical to PrimaryModelEQ.
  78. func PrimaryModel(v string) predicate.ChannelMonitor {
  79. return predicate.ChannelMonitor(sql.FieldEQ(FieldPrimaryModel, v))
  80. }
  81. // GroupName applies equality check predicate on the "group_name" field. It's identical to GroupNameEQ.
  82. func GroupName(v string) predicate.ChannelMonitor {
  83. return predicate.ChannelMonitor(sql.FieldEQ(FieldGroupName, v))
  84. }
  85. // Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.
  86. func Enabled(v bool) predicate.ChannelMonitor {
  87. return predicate.ChannelMonitor(sql.FieldEQ(FieldEnabled, v))
  88. }
  89. // IntervalSeconds applies equality check predicate on the "interval_seconds" field. It's identical to IntervalSecondsEQ.
  90. func IntervalSeconds(v int) predicate.ChannelMonitor {
  91. return predicate.ChannelMonitor(sql.FieldEQ(FieldIntervalSeconds, v))
  92. }
  93. // JitterSeconds applies equality check predicate on the "jitter_seconds" field. It's identical to JitterSecondsEQ.
  94. func JitterSeconds(v int) predicate.ChannelMonitor {
  95. return predicate.ChannelMonitor(sql.FieldEQ(FieldJitterSeconds, v))
  96. }
  97. // LastCheckedAt applies equality check predicate on the "last_checked_at" field. It's identical to LastCheckedAtEQ.
  98. func LastCheckedAt(v time.Time) predicate.ChannelMonitor {
  99. return predicate.ChannelMonitor(sql.FieldEQ(FieldLastCheckedAt, v))
  100. }
  101. // CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
  102. func CreatedBy(v int64) predicate.ChannelMonitor {
  103. return predicate.ChannelMonitor(sql.FieldEQ(FieldCreatedBy, v))
  104. }
  105. // TemplateID applies equality check predicate on the "template_id" field. It's identical to TemplateIDEQ.
  106. func TemplateID(v int64) predicate.ChannelMonitor {
  107. return predicate.ChannelMonitor(sql.FieldEQ(FieldTemplateID, v))
  108. }
  109. // BodyOverrideMode applies equality check predicate on the "body_override_mode" field. It's identical to BodyOverrideModeEQ.
  110. func BodyOverrideMode(v string) predicate.ChannelMonitor {
  111. return predicate.ChannelMonitor(sql.FieldEQ(FieldBodyOverrideMode, v))
  112. }
  113. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  114. func CreatedAtEQ(v time.Time) predicate.ChannelMonitor {
  115. return predicate.ChannelMonitor(sql.FieldEQ(FieldCreatedAt, v))
  116. }
  117. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  118. func CreatedAtNEQ(v time.Time) predicate.ChannelMonitor {
  119. return predicate.ChannelMonitor(sql.FieldNEQ(FieldCreatedAt, v))
  120. }
  121. // CreatedAtIn applies the In predicate on the "created_at" field.
  122. func CreatedAtIn(vs ...time.Time) predicate.ChannelMonitor {
  123. return predicate.ChannelMonitor(sql.FieldIn(FieldCreatedAt, vs...))
  124. }
  125. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  126. func CreatedAtNotIn(vs ...time.Time) predicate.ChannelMonitor {
  127. return predicate.ChannelMonitor(sql.FieldNotIn(FieldCreatedAt, vs...))
  128. }
  129. // CreatedAtGT applies the GT predicate on the "created_at" field.
  130. func CreatedAtGT(v time.Time) predicate.ChannelMonitor {
  131. return predicate.ChannelMonitor(sql.FieldGT(FieldCreatedAt, v))
  132. }
  133. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  134. func CreatedAtGTE(v time.Time) predicate.ChannelMonitor {
  135. return predicate.ChannelMonitor(sql.FieldGTE(FieldCreatedAt, v))
  136. }
  137. // CreatedAtLT applies the LT predicate on the "created_at" field.
  138. func CreatedAtLT(v time.Time) predicate.ChannelMonitor {
  139. return predicate.ChannelMonitor(sql.FieldLT(FieldCreatedAt, v))
  140. }
  141. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  142. func CreatedAtLTE(v time.Time) predicate.ChannelMonitor {
  143. return predicate.ChannelMonitor(sql.FieldLTE(FieldCreatedAt, v))
  144. }
  145. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  146. func UpdatedAtEQ(v time.Time) predicate.ChannelMonitor {
  147. return predicate.ChannelMonitor(sql.FieldEQ(FieldUpdatedAt, v))
  148. }
  149. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  150. func UpdatedAtNEQ(v time.Time) predicate.ChannelMonitor {
  151. return predicate.ChannelMonitor(sql.FieldNEQ(FieldUpdatedAt, v))
  152. }
  153. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  154. func UpdatedAtIn(vs ...time.Time) predicate.ChannelMonitor {
  155. return predicate.ChannelMonitor(sql.FieldIn(FieldUpdatedAt, vs...))
  156. }
  157. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  158. func UpdatedAtNotIn(vs ...time.Time) predicate.ChannelMonitor {
  159. return predicate.ChannelMonitor(sql.FieldNotIn(FieldUpdatedAt, vs...))
  160. }
  161. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  162. func UpdatedAtGT(v time.Time) predicate.ChannelMonitor {
  163. return predicate.ChannelMonitor(sql.FieldGT(FieldUpdatedAt, v))
  164. }
  165. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  166. func UpdatedAtGTE(v time.Time) predicate.ChannelMonitor {
  167. return predicate.ChannelMonitor(sql.FieldGTE(FieldUpdatedAt, v))
  168. }
  169. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  170. func UpdatedAtLT(v time.Time) predicate.ChannelMonitor {
  171. return predicate.ChannelMonitor(sql.FieldLT(FieldUpdatedAt, v))
  172. }
  173. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  174. func UpdatedAtLTE(v time.Time) predicate.ChannelMonitor {
  175. return predicate.ChannelMonitor(sql.FieldLTE(FieldUpdatedAt, v))
  176. }
  177. // NameEQ applies the EQ predicate on the "name" field.
  178. func NameEQ(v string) predicate.ChannelMonitor {
  179. return predicate.ChannelMonitor(sql.FieldEQ(FieldName, v))
  180. }
  181. // NameNEQ applies the NEQ predicate on the "name" field.
  182. func NameNEQ(v string) predicate.ChannelMonitor {
  183. return predicate.ChannelMonitor(sql.FieldNEQ(FieldName, v))
  184. }
  185. // NameIn applies the In predicate on the "name" field.
  186. func NameIn(vs ...string) predicate.ChannelMonitor {
  187. return predicate.ChannelMonitor(sql.FieldIn(FieldName, vs...))
  188. }
  189. // NameNotIn applies the NotIn predicate on the "name" field.
  190. func NameNotIn(vs ...string) predicate.ChannelMonitor {
  191. return predicate.ChannelMonitor(sql.FieldNotIn(FieldName, vs...))
  192. }
  193. // NameGT applies the GT predicate on the "name" field.
  194. func NameGT(v string) predicate.ChannelMonitor {
  195. return predicate.ChannelMonitor(sql.FieldGT(FieldName, v))
  196. }
  197. // NameGTE applies the GTE predicate on the "name" field.
  198. func NameGTE(v string) predicate.ChannelMonitor {
  199. return predicate.ChannelMonitor(sql.FieldGTE(FieldName, v))
  200. }
  201. // NameLT applies the LT predicate on the "name" field.
  202. func NameLT(v string) predicate.ChannelMonitor {
  203. return predicate.ChannelMonitor(sql.FieldLT(FieldName, v))
  204. }
  205. // NameLTE applies the LTE predicate on the "name" field.
  206. func NameLTE(v string) predicate.ChannelMonitor {
  207. return predicate.ChannelMonitor(sql.FieldLTE(FieldName, v))
  208. }
  209. // NameContains applies the Contains predicate on the "name" field.
  210. func NameContains(v string) predicate.ChannelMonitor {
  211. return predicate.ChannelMonitor(sql.FieldContains(FieldName, v))
  212. }
  213. // NameHasPrefix applies the HasPrefix predicate on the "name" field.
  214. func NameHasPrefix(v string) predicate.ChannelMonitor {
  215. return predicate.ChannelMonitor(sql.FieldHasPrefix(FieldName, v))
  216. }
  217. // NameHasSuffix applies the HasSuffix predicate on the "name" field.
  218. func NameHasSuffix(v string) predicate.ChannelMonitor {
  219. return predicate.ChannelMonitor(sql.FieldHasSuffix(FieldName, v))
  220. }
  221. // NameEqualFold applies the EqualFold predicate on the "name" field.
  222. func NameEqualFold(v string) predicate.ChannelMonitor {
  223. return predicate.ChannelMonitor(sql.FieldEqualFold(FieldName, v))
  224. }
  225. // NameContainsFold applies the ContainsFold predicate on the "name" field.
  226. func NameContainsFold(v string) predicate.ChannelMonitor {
  227. return predicate.ChannelMonitor(sql.FieldContainsFold(FieldName, v))
  228. }
  229. // ProviderEQ applies the EQ predicate on the "provider" field.
  230. func ProviderEQ(v Provider) predicate.ChannelMonitor {
  231. return predicate.ChannelMonitor(sql.FieldEQ(FieldProvider, v))
  232. }
  233. // ProviderNEQ applies the NEQ predicate on the "provider" field.
  234. func ProviderNEQ(v Provider) predicate.ChannelMonitor {
  235. return predicate.ChannelMonitor(sql.FieldNEQ(FieldProvider, v))
  236. }
  237. // ProviderIn applies the In predicate on the "provider" field.
  238. func ProviderIn(vs ...Provider) predicate.ChannelMonitor {
  239. return predicate.ChannelMonitor(sql.FieldIn(FieldProvider, vs...))
  240. }
  241. // ProviderNotIn applies the NotIn predicate on the "provider" field.
  242. func ProviderNotIn(vs ...Provider) predicate.ChannelMonitor {
  243. return predicate.ChannelMonitor(sql.FieldNotIn(FieldProvider, vs...))
  244. }
  245. // CheckModeEQ applies the EQ predicate on the "check_mode" field.
  246. func CheckModeEQ(v string) predicate.ChannelMonitor {
  247. return predicate.ChannelMonitor(sql.FieldEQ(FieldCheckMode, v))
  248. }
  249. // CheckModeNEQ applies the NEQ predicate on the "check_mode" field.
  250. func CheckModeNEQ(v string) predicate.ChannelMonitor {
  251. return predicate.ChannelMonitor(sql.FieldNEQ(FieldCheckMode, v))
  252. }
  253. // CheckModeIn applies the In predicate on the "check_mode" field.
  254. func CheckModeIn(vs ...string) predicate.ChannelMonitor {
  255. return predicate.ChannelMonitor(sql.FieldIn(FieldCheckMode, vs...))
  256. }
  257. // CheckModeNotIn applies the NotIn predicate on the "check_mode" field.
  258. func CheckModeNotIn(vs ...string) predicate.ChannelMonitor {
  259. return predicate.ChannelMonitor(sql.FieldNotIn(FieldCheckMode, vs...))
  260. }
  261. // CheckModeGT applies the GT predicate on the "check_mode" field.
  262. func CheckModeGT(v string) predicate.ChannelMonitor {
  263. return predicate.ChannelMonitor(sql.FieldGT(FieldCheckMode, v))
  264. }
  265. // CheckModeGTE applies the GTE predicate on the "check_mode" field.
  266. func CheckModeGTE(v string) predicate.ChannelMonitor {
  267. return predicate.ChannelMonitor(sql.FieldGTE(FieldCheckMode, v))
  268. }
  269. // CheckModeLT applies the LT predicate on the "check_mode" field.
  270. func CheckModeLT(v string) predicate.ChannelMonitor {
  271. return predicate.ChannelMonitor(sql.FieldLT(FieldCheckMode, v))
  272. }
  273. // CheckModeLTE applies the LTE predicate on the "check_mode" field.
  274. func CheckModeLTE(v string) predicate.ChannelMonitor {
  275. return predicate.ChannelMonitor(sql.FieldLTE(FieldCheckMode, v))
  276. }
  277. // CheckModeContains applies the Contains predicate on the "check_mode" field.
  278. func CheckModeContains(v string) predicate.ChannelMonitor {
  279. return predicate.ChannelMonitor(sql.FieldContains(FieldCheckMode, v))
  280. }
  281. // CheckModeHasPrefix applies the HasPrefix predicate on the "check_mode" field.
  282. func CheckModeHasPrefix(v string) predicate.ChannelMonitor {
  283. return predicate.ChannelMonitor(sql.FieldHasPrefix(FieldCheckMode, v))
  284. }
  285. // CheckModeHasSuffix applies the HasSuffix predicate on the "check_mode" field.
  286. func CheckModeHasSuffix(v string) predicate.ChannelMonitor {
  287. return predicate.ChannelMonitor(sql.FieldHasSuffix(FieldCheckMode, v))
  288. }
  289. // CheckModeEqualFold applies the EqualFold predicate on the "check_mode" field.
  290. func CheckModeEqualFold(v string) predicate.ChannelMonitor {
  291. return predicate.ChannelMonitor(sql.FieldEqualFold(FieldCheckMode, v))
  292. }
  293. // CheckModeContainsFold applies the ContainsFold predicate on the "check_mode" field.
  294. func CheckModeContainsFold(v string) predicate.ChannelMonitor {
  295. return predicate.ChannelMonitor(sql.FieldContainsFold(FieldCheckMode, v))
  296. }
  297. // AccountIDEQ applies the EQ predicate on the "account_id" field.
  298. func AccountIDEQ(v int64) predicate.ChannelMonitor {
  299. return predicate.ChannelMonitor(sql.FieldEQ(FieldAccountID, v))
  300. }
  301. // AccountIDNEQ applies the NEQ predicate on the "account_id" field.
  302. func AccountIDNEQ(v int64) predicate.ChannelMonitor {
  303. return predicate.ChannelMonitor(sql.FieldNEQ(FieldAccountID, v))
  304. }
  305. // AccountIDIn applies the In predicate on the "account_id" field.
  306. func AccountIDIn(vs ...int64) predicate.ChannelMonitor {
  307. return predicate.ChannelMonitor(sql.FieldIn(FieldAccountID, vs...))
  308. }
  309. // AccountIDNotIn applies the NotIn predicate on the "account_id" field.
  310. func AccountIDNotIn(vs ...int64) predicate.ChannelMonitor {
  311. return predicate.ChannelMonitor(sql.FieldNotIn(FieldAccountID, vs...))
  312. }
  313. // AccountIDGT applies the GT predicate on the "account_id" field.
  314. func AccountIDGT(v int64) predicate.ChannelMonitor {
  315. return predicate.ChannelMonitor(sql.FieldGT(FieldAccountID, v))
  316. }
  317. // AccountIDGTE applies the GTE predicate on the "account_id" field.
  318. func AccountIDGTE(v int64) predicate.ChannelMonitor {
  319. return predicate.ChannelMonitor(sql.FieldGTE(FieldAccountID, v))
  320. }
  321. // AccountIDLT applies the LT predicate on the "account_id" field.
  322. func AccountIDLT(v int64) predicate.ChannelMonitor {
  323. return predicate.ChannelMonitor(sql.FieldLT(FieldAccountID, v))
  324. }
  325. // AccountIDLTE applies the LTE predicate on the "account_id" field.
  326. func AccountIDLTE(v int64) predicate.ChannelMonitor {
  327. return predicate.ChannelMonitor(sql.FieldLTE(FieldAccountID, v))
  328. }
  329. // AccountIDIsNil applies the IsNil predicate on the "account_id" field.
  330. func AccountIDIsNil() predicate.ChannelMonitor {
  331. return predicate.ChannelMonitor(sql.FieldIsNull(FieldAccountID))
  332. }
  333. // AccountIDNotNil applies the NotNil predicate on the "account_id" field.
  334. func AccountIDNotNil() predicate.ChannelMonitor {
  335. return predicate.ChannelMonitor(sql.FieldNotNull(FieldAccountID))
  336. }
  337. // APIModeEQ applies the EQ predicate on the "api_mode" field.
  338. func APIModeEQ(v string) predicate.ChannelMonitor {
  339. return predicate.ChannelMonitor(sql.FieldEQ(FieldAPIMode, v))
  340. }
  341. // APIModeNEQ applies the NEQ predicate on the "api_mode" field.
  342. func APIModeNEQ(v string) predicate.ChannelMonitor {
  343. return predicate.ChannelMonitor(sql.FieldNEQ(FieldAPIMode, v))
  344. }
  345. // APIModeIn applies the In predicate on the "api_mode" field.
  346. func APIModeIn(vs ...string) predicate.ChannelMonitor {
  347. return predicate.ChannelMonitor(sql.FieldIn(FieldAPIMode, vs...))
  348. }
  349. // APIModeNotIn applies the NotIn predicate on the "api_mode" field.
  350. func APIModeNotIn(vs ...string) predicate.ChannelMonitor {
  351. return predicate.ChannelMonitor(sql.FieldNotIn(FieldAPIMode, vs...))
  352. }
  353. // APIModeGT applies the GT predicate on the "api_mode" field.
  354. func APIModeGT(v string) predicate.ChannelMonitor {
  355. return predicate.ChannelMonitor(sql.FieldGT(FieldAPIMode, v))
  356. }
  357. // APIModeGTE applies the GTE predicate on the "api_mode" field.
  358. func APIModeGTE(v string) predicate.ChannelMonitor {
  359. return predicate.ChannelMonitor(sql.FieldGTE(FieldAPIMode, v))
  360. }
  361. // APIModeLT applies the LT predicate on the "api_mode" field.
  362. func APIModeLT(v string) predicate.ChannelMonitor {
  363. return predicate.ChannelMonitor(sql.FieldLT(FieldAPIMode, v))
  364. }
  365. // APIModeLTE applies the LTE predicate on the "api_mode" field.
  366. func APIModeLTE(v string) predicate.ChannelMonitor {
  367. return predicate.ChannelMonitor(sql.FieldLTE(FieldAPIMode, v))
  368. }
  369. // APIModeContains applies the Contains predicate on the "api_mode" field.
  370. func APIModeContains(v string) predicate.ChannelMonitor {
  371. return predicate.ChannelMonitor(sql.FieldContains(FieldAPIMode, v))
  372. }
  373. // APIModeHasPrefix applies the HasPrefix predicate on the "api_mode" field.
  374. func APIModeHasPrefix(v string) predicate.ChannelMonitor {
  375. return predicate.ChannelMonitor(sql.FieldHasPrefix(FieldAPIMode, v))
  376. }
  377. // APIModeHasSuffix applies the HasSuffix predicate on the "api_mode" field.
  378. func APIModeHasSuffix(v string) predicate.ChannelMonitor {
  379. return predicate.ChannelMonitor(sql.FieldHasSuffix(FieldAPIMode, v))
  380. }
  381. // APIModeEqualFold applies the EqualFold predicate on the "api_mode" field.
  382. func APIModeEqualFold(v string) predicate.ChannelMonitor {
  383. return predicate.ChannelMonitor(sql.FieldEqualFold(FieldAPIMode, v))
  384. }
  385. // APIModeContainsFold applies the ContainsFold predicate on the "api_mode" field.
  386. func APIModeContainsFold(v string) predicate.ChannelMonitor {
  387. return predicate.ChannelMonitor(sql.FieldContainsFold(FieldAPIMode, v))
  388. }
  389. // EndpointEQ applies the EQ predicate on the "endpoint" field.
  390. func EndpointEQ(v string) predicate.ChannelMonitor {
  391. return predicate.ChannelMonitor(sql.FieldEQ(FieldEndpoint, v))
  392. }
  393. // EndpointNEQ applies the NEQ predicate on the "endpoint" field.
  394. func EndpointNEQ(v string) predicate.ChannelMonitor {
  395. return predicate.ChannelMonitor(sql.FieldNEQ(FieldEndpoint, v))
  396. }
  397. // EndpointIn applies the In predicate on the "endpoint" field.
  398. func EndpointIn(vs ...string) predicate.ChannelMonitor {
  399. return predicate.ChannelMonitor(sql.FieldIn(FieldEndpoint, vs...))
  400. }
  401. // EndpointNotIn applies the NotIn predicate on the "endpoint" field.
  402. func EndpointNotIn(vs ...string) predicate.ChannelMonitor {
  403. return predicate.ChannelMonitor(sql.FieldNotIn(FieldEndpoint, vs...))
  404. }
  405. // EndpointGT applies the GT predicate on the "endpoint" field.
  406. func EndpointGT(v string) predicate.ChannelMonitor {
  407. return predicate.ChannelMonitor(sql.FieldGT(FieldEndpoint, v))
  408. }
  409. // EndpointGTE applies the GTE predicate on the "endpoint" field.
  410. func EndpointGTE(v string) predicate.ChannelMonitor {
  411. return predicate.ChannelMonitor(sql.FieldGTE(FieldEndpoint, v))
  412. }
  413. // EndpointLT applies the LT predicate on the "endpoint" field.
  414. func EndpointLT(v string) predicate.ChannelMonitor {
  415. return predicate.ChannelMonitor(sql.FieldLT(FieldEndpoint, v))
  416. }
  417. // EndpointLTE applies the LTE predicate on the "endpoint" field.
  418. func EndpointLTE(v string) predicate.ChannelMonitor {
  419. return predicate.ChannelMonitor(sql.FieldLTE(FieldEndpoint, v))
  420. }
  421. // EndpointContains applies the Contains predicate on the "endpoint" field.
  422. func EndpointContains(v string) predicate.ChannelMonitor {
  423. return predicate.ChannelMonitor(sql.FieldContains(FieldEndpoint, v))
  424. }
  425. // EndpointHasPrefix applies the HasPrefix predicate on the "endpoint" field.
  426. func EndpointHasPrefix(v string) predicate.ChannelMonitor {
  427. return predicate.ChannelMonitor(sql.FieldHasPrefix(FieldEndpoint, v))
  428. }
  429. // EndpointHasSuffix applies the HasSuffix predicate on the "endpoint" field.
  430. func EndpointHasSuffix(v string) predicate.ChannelMonitor {
  431. return predicate.ChannelMonitor(sql.FieldHasSuffix(FieldEndpoint, v))
  432. }
  433. // EndpointEqualFold applies the EqualFold predicate on the "endpoint" field.
  434. func EndpointEqualFold(v string) predicate.ChannelMonitor {
  435. return predicate.ChannelMonitor(sql.FieldEqualFold(FieldEndpoint, v))
  436. }
  437. // EndpointContainsFold applies the ContainsFold predicate on the "endpoint" field.
  438. func EndpointContainsFold(v string) predicate.ChannelMonitor {
  439. return predicate.ChannelMonitor(sql.FieldContainsFold(FieldEndpoint, v))
  440. }
  441. // APIKeyEncryptedEQ applies the EQ predicate on the "api_key_encrypted" field.
  442. func APIKeyEncryptedEQ(v string) predicate.ChannelMonitor {
  443. return predicate.ChannelMonitor(sql.FieldEQ(FieldAPIKeyEncrypted, v))
  444. }
  445. // APIKeyEncryptedNEQ applies the NEQ predicate on the "api_key_encrypted" field.
  446. func APIKeyEncryptedNEQ(v string) predicate.ChannelMonitor {
  447. return predicate.ChannelMonitor(sql.FieldNEQ(FieldAPIKeyEncrypted, v))
  448. }
  449. // APIKeyEncryptedIn applies the In predicate on the "api_key_encrypted" field.
  450. func APIKeyEncryptedIn(vs ...string) predicate.ChannelMonitor {
  451. return predicate.ChannelMonitor(sql.FieldIn(FieldAPIKeyEncrypted, vs...))
  452. }
  453. // APIKeyEncryptedNotIn applies the NotIn predicate on the "api_key_encrypted" field.
  454. func APIKeyEncryptedNotIn(vs ...string) predicate.ChannelMonitor {
  455. return predicate.ChannelMonitor(sql.FieldNotIn(FieldAPIKeyEncrypted, vs...))
  456. }
  457. // APIKeyEncryptedGT applies the GT predicate on the "api_key_encrypted" field.
  458. func APIKeyEncryptedGT(v string) predicate.ChannelMonitor {
  459. return predicate.ChannelMonitor(sql.FieldGT(FieldAPIKeyEncrypted, v))
  460. }
  461. // APIKeyEncryptedGTE applies the GTE predicate on the "api_key_encrypted" field.
  462. func APIKeyEncryptedGTE(v string) predicate.ChannelMonitor {
  463. return predicate.ChannelMonitor(sql.FieldGTE(FieldAPIKeyEncrypted, v))
  464. }
  465. // APIKeyEncryptedLT applies the LT predicate on the "api_key_encrypted" field.
  466. func APIKeyEncryptedLT(v string) predicate.ChannelMonitor {
  467. return predicate.ChannelMonitor(sql.FieldLT(FieldAPIKeyEncrypted, v))
  468. }
  469. // APIKeyEncryptedLTE applies the LTE predicate on the "api_key_encrypted" field.
  470. func APIKeyEncryptedLTE(v string) predicate.ChannelMonitor {
  471. return predicate.ChannelMonitor(sql.FieldLTE(FieldAPIKeyEncrypted, v))
  472. }
  473. // APIKeyEncryptedContains applies the Contains predicate on the "api_key_encrypted" field.
  474. func APIKeyEncryptedContains(v string) predicate.ChannelMonitor {
  475. return predicate.ChannelMonitor(sql.FieldContains(FieldAPIKeyEncrypted, v))
  476. }
  477. // APIKeyEncryptedHasPrefix applies the HasPrefix predicate on the "api_key_encrypted" field.
  478. func APIKeyEncryptedHasPrefix(v string) predicate.ChannelMonitor {
  479. return predicate.ChannelMonitor(sql.FieldHasPrefix(FieldAPIKeyEncrypted, v))
  480. }
  481. // APIKeyEncryptedHasSuffix applies the HasSuffix predicate on the "api_key_encrypted" field.
  482. func APIKeyEncryptedHasSuffix(v string) predicate.ChannelMonitor {
  483. return predicate.ChannelMonitor(sql.FieldHasSuffix(FieldAPIKeyEncrypted, v))
  484. }
  485. // APIKeyEncryptedEqualFold applies the EqualFold predicate on the "api_key_encrypted" field.
  486. func APIKeyEncryptedEqualFold(v string) predicate.ChannelMonitor {
  487. return predicate.ChannelMonitor(sql.FieldEqualFold(FieldAPIKeyEncrypted, v))
  488. }
  489. // APIKeyEncryptedContainsFold applies the ContainsFold predicate on the "api_key_encrypted" field.
  490. func APIKeyEncryptedContainsFold(v string) predicate.ChannelMonitor {
  491. return predicate.ChannelMonitor(sql.FieldContainsFold(FieldAPIKeyEncrypted, v))
  492. }
  493. // PrimaryModelEQ applies the EQ predicate on the "primary_model" field.
  494. func PrimaryModelEQ(v string) predicate.ChannelMonitor {
  495. return predicate.ChannelMonitor(sql.FieldEQ(FieldPrimaryModel, v))
  496. }
  497. // PrimaryModelNEQ applies the NEQ predicate on the "primary_model" field.
  498. func PrimaryModelNEQ(v string) predicate.ChannelMonitor {
  499. return predicate.ChannelMonitor(sql.FieldNEQ(FieldPrimaryModel, v))
  500. }
  501. // PrimaryModelIn applies the In predicate on the "primary_model" field.
  502. func PrimaryModelIn(vs ...string) predicate.ChannelMonitor {
  503. return predicate.ChannelMonitor(sql.FieldIn(FieldPrimaryModel, vs...))
  504. }
  505. // PrimaryModelNotIn applies the NotIn predicate on the "primary_model" field.
  506. func PrimaryModelNotIn(vs ...string) predicate.ChannelMonitor {
  507. return predicate.ChannelMonitor(sql.FieldNotIn(FieldPrimaryModel, vs...))
  508. }
  509. // PrimaryModelGT applies the GT predicate on the "primary_model" field.
  510. func PrimaryModelGT(v string) predicate.ChannelMonitor {
  511. return predicate.ChannelMonitor(sql.FieldGT(FieldPrimaryModel, v))
  512. }
  513. // PrimaryModelGTE applies the GTE predicate on the "primary_model" field.
  514. func PrimaryModelGTE(v string) predicate.ChannelMonitor {
  515. return predicate.ChannelMonitor(sql.FieldGTE(FieldPrimaryModel, v))
  516. }
  517. // PrimaryModelLT applies the LT predicate on the "primary_model" field.
  518. func PrimaryModelLT(v string) predicate.ChannelMonitor {
  519. return predicate.ChannelMonitor(sql.FieldLT(FieldPrimaryModel, v))
  520. }
  521. // PrimaryModelLTE applies the LTE predicate on the "primary_model" field.
  522. func PrimaryModelLTE(v string) predicate.ChannelMonitor {
  523. return predicate.ChannelMonitor(sql.FieldLTE(FieldPrimaryModel, v))
  524. }
  525. // PrimaryModelContains applies the Contains predicate on the "primary_model" field.
  526. func PrimaryModelContains(v string) predicate.ChannelMonitor {
  527. return predicate.ChannelMonitor(sql.FieldContains(FieldPrimaryModel, v))
  528. }
  529. // PrimaryModelHasPrefix applies the HasPrefix predicate on the "primary_model" field.
  530. func PrimaryModelHasPrefix(v string) predicate.ChannelMonitor {
  531. return predicate.ChannelMonitor(sql.FieldHasPrefix(FieldPrimaryModel, v))
  532. }
  533. // PrimaryModelHasSuffix applies the HasSuffix predicate on the "primary_model" field.
  534. func PrimaryModelHasSuffix(v string) predicate.ChannelMonitor {
  535. return predicate.ChannelMonitor(sql.FieldHasSuffix(FieldPrimaryModel, v))
  536. }
  537. // PrimaryModelEqualFold applies the EqualFold predicate on the "primary_model" field.
  538. func PrimaryModelEqualFold(v string) predicate.ChannelMonitor {
  539. return predicate.ChannelMonitor(sql.FieldEqualFold(FieldPrimaryModel, v))
  540. }
  541. // PrimaryModelContainsFold applies the ContainsFold predicate on the "primary_model" field.
  542. func PrimaryModelContainsFold(v string) predicate.ChannelMonitor {
  543. return predicate.ChannelMonitor(sql.FieldContainsFold(FieldPrimaryModel, v))
  544. }
  545. // GroupNameEQ applies the EQ predicate on the "group_name" field.
  546. func GroupNameEQ(v string) predicate.ChannelMonitor {
  547. return predicate.ChannelMonitor(sql.FieldEQ(FieldGroupName, v))
  548. }
  549. // GroupNameNEQ applies the NEQ predicate on the "group_name" field.
  550. func GroupNameNEQ(v string) predicate.ChannelMonitor {
  551. return predicate.ChannelMonitor(sql.FieldNEQ(FieldGroupName, v))
  552. }
  553. // GroupNameIn applies the In predicate on the "group_name" field.
  554. func GroupNameIn(vs ...string) predicate.ChannelMonitor {
  555. return predicate.ChannelMonitor(sql.FieldIn(FieldGroupName, vs...))
  556. }
  557. // GroupNameNotIn applies the NotIn predicate on the "group_name" field.
  558. func GroupNameNotIn(vs ...string) predicate.ChannelMonitor {
  559. return predicate.ChannelMonitor(sql.FieldNotIn(FieldGroupName, vs...))
  560. }
  561. // GroupNameGT applies the GT predicate on the "group_name" field.
  562. func GroupNameGT(v string) predicate.ChannelMonitor {
  563. return predicate.ChannelMonitor(sql.FieldGT(FieldGroupName, v))
  564. }
  565. // GroupNameGTE applies the GTE predicate on the "group_name" field.
  566. func GroupNameGTE(v string) predicate.ChannelMonitor {
  567. return predicate.ChannelMonitor(sql.FieldGTE(FieldGroupName, v))
  568. }
  569. // GroupNameLT applies the LT predicate on the "group_name" field.
  570. func GroupNameLT(v string) predicate.ChannelMonitor {
  571. return predicate.ChannelMonitor(sql.FieldLT(FieldGroupName, v))
  572. }
  573. // GroupNameLTE applies the LTE predicate on the "group_name" field.
  574. func GroupNameLTE(v string) predicate.ChannelMonitor {
  575. return predicate.ChannelMonitor(sql.FieldLTE(FieldGroupName, v))
  576. }
  577. // GroupNameContains applies the Contains predicate on the "group_name" field.
  578. func GroupNameContains(v string) predicate.ChannelMonitor {
  579. return predicate.ChannelMonitor(sql.FieldContains(FieldGroupName, v))
  580. }
  581. // GroupNameHasPrefix applies the HasPrefix predicate on the "group_name" field.
  582. func GroupNameHasPrefix(v string) predicate.ChannelMonitor {
  583. return predicate.ChannelMonitor(sql.FieldHasPrefix(FieldGroupName, v))
  584. }
  585. // GroupNameHasSuffix applies the HasSuffix predicate on the "group_name" field.
  586. func GroupNameHasSuffix(v string) predicate.ChannelMonitor {
  587. return predicate.ChannelMonitor(sql.FieldHasSuffix(FieldGroupName, v))
  588. }
  589. // GroupNameIsNil applies the IsNil predicate on the "group_name" field.
  590. func GroupNameIsNil() predicate.ChannelMonitor {
  591. return predicate.ChannelMonitor(sql.FieldIsNull(FieldGroupName))
  592. }
  593. // GroupNameNotNil applies the NotNil predicate on the "group_name" field.
  594. func GroupNameNotNil() predicate.ChannelMonitor {
  595. return predicate.ChannelMonitor(sql.FieldNotNull(FieldGroupName))
  596. }
  597. // GroupNameEqualFold applies the EqualFold predicate on the "group_name" field.
  598. func GroupNameEqualFold(v string) predicate.ChannelMonitor {
  599. return predicate.ChannelMonitor(sql.FieldEqualFold(FieldGroupName, v))
  600. }
  601. // GroupNameContainsFold applies the ContainsFold predicate on the "group_name" field.
  602. func GroupNameContainsFold(v string) predicate.ChannelMonitor {
  603. return predicate.ChannelMonitor(sql.FieldContainsFold(FieldGroupName, v))
  604. }
  605. // EnabledEQ applies the EQ predicate on the "enabled" field.
  606. func EnabledEQ(v bool) predicate.ChannelMonitor {
  607. return predicate.ChannelMonitor(sql.FieldEQ(FieldEnabled, v))
  608. }
  609. // EnabledNEQ applies the NEQ predicate on the "enabled" field.
  610. func EnabledNEQ(v bool) predicate.ChannelMonitor {
  611. return predicate.ChannelMonitor(sql.FieldNEQ(FieldEnabled, v))
  612. }
  613. // IntervalSecondsEQ applies the EQ predicate on the "interval_seconds" field.
  614. func IntervalSecondsEQ(v int) predicate.ChannelMonitor {
  615. return predicate.ChannelMonitor(sql.FieldEQ(FieldIntervalSeconds, v))
  616. }
  617. // IntervalSecondsNEQ applies the NEQ predicate on the "interval_seconds" field.
  618. func IntervalSecondsNEQ(v int) predicate.ChannelMonitor {
  619. return predicate.ChannelMonitor(sql.FieldNEQ(FieldIntervalSeconds, v))
  620. }
  621. // IntervalSecondsIn applies the In predicate on the "interval_seconds" field.
  622. func IntervalSecondsIn(vs ...int) predicate.ChannelMonitor {
  623. return predicate.ChannelMonitor(sql.FieldIn(FieldIntervalSeconds, vs...))
  624. }
  625. // IntervalSecondsNotIn applies the NotIn predicate on the "interval_seconds" field.
  626. func IntervalSecondsNotIn(vs ...int) predicate.ChannelMonitor {
  627. return predicate.ChannelMonitor(sql.FieldNotIn(FieldIntervalSeconds, vs...))
  628. }
  629. // IntervalSecondsGT applies the GT predicate on the "interval_seconds" field.
  630. func IntervalSecondsGT(v int) predicate.ChannelMonitor {
  631. return predicate.ChannelMonitor(sql.FieldGT(FieldIntervalSeconds, v))
  632. }
  633. // IntervalSecondsGTE applies the GTE predicate on the "interval_seconds" field.
  634. func IntervalSecondsGTE(v int) predicate.ChannelMonitor {
  635. return predicate.ChannelMonitor(sql.FieldGTE(FieldIntervalSeconds, v))
  636. }
  637. // IntervalSecondsLT applies the LT predicate on the "interval_seconds" field.
  638. func IntervalSecondsLT(v int) predicate.ChannelMonitor {
  639. return predicate.ChannelMonitor(sql.FieldLT(FieldIntervalSeconds, v))
  640. }
  641. // IntervalSecondsLTE applies the LTE predicate on the "interval_seconds" field.
  642. func IntervalSecondsLTE(v int) predicate.ChannelMonitor {
  643. return predicate.ChannelMonitor(sql.FieldLTE(FieldIntervalSeconds, v))
  644. }
  645. // JitterSecondsEQ applies the EQ predicate on the "jitter_seconds" field.
  646. func JitterSecondsEQ(v int) predicate.ChannelMonitor {
  647. return predicate.ChannelMonitor(sql.FieldEQ(FieldJitterSeconds, v))
  648. }
  649. // JitterSecondsNEQ applies the NEQ predicate on the "jitter_seconds" field.
  650. func JitterSecondsNEQ(v int) predicate.ChannelMonitor {
  651. return predicate.ChannelMonitor(sql.FieldNEQ(FieldJitterSeconds, v))
  652. }
  653. // JitterSecondsIn applies the In predicate on the "jitter_seconds" field.
  654. func JitterSecondsIn(vs ...int) predicate.ChannelMonitor {
  655. return predicate.ChannelMonitor(sql.FieldIn(FieldJitterSeconds, vs...))
  656. }
  657. // JitterSecondsNotIn applies the NotIn predicate on the "jitter_seconds" field.
  658. func JitterSecondsNotIn(vs ...int) predicate.ChannelMonitor {
  659. return predicate.ChannelMonitor(sql.FieldNotIn(FieldJitterSeconds, vs...))
  660. }
  661. // JitterSecondsGT applies the GT predicate on the "jitter_seconds" field.
  662. func JitterSecondsGT(v int) predicate.ChannelMonitor {
  663. return predicate.ChannelMonitor(sql.FieldGT(FieldJitterSeconds, v))
  664. }
  665. // JitterSecondsGTE applies the GTE predicate on the "jitter_seconds" field.
  666. func JitterSecondsGTE(v int) predicate.ChannelMonitor {
  667. return predicate.ChannelMonitor(sql.FieldGTE(FieldJitterSeconds, v))
  668. }
  669. // JitterSecondsLT applies the LT predicate on the "jitter_seconds" field.
  670. func JitterSecondsLT(v int) predicate.ChannelMonitor {
  671. return predicate.ChannelMonitor(sql.FieldLT(FieldJitterSeconds, v))
  672. }
  673. // JitterSecondsLTE applies the LTE predicate on the "jitter_seconds" field.
  674. func JitterSecondsLTE(v int) predicate.ChannelMonitor {
  675. return predicate.ChannelMonitor(sql.FieldLTE(FieldJitterSeconds, v))
  676. }
  677. // LastCheckedAtEQ applies the EQ predicate on the "last_checked_at" field.
  678. func LastCheckedAtEQ(v time.Time) predicate.ChannelMonitor {
  679. return predicate.ChannelMonitor(sql.FieldEQ(FieldLastCheckedAt, v))
  680. }
  681. // LastCheckedAtNEQ applies the NEQ predicate on the "last_checked_at" field.
  682. func LastCheckedAtNEQ(v time.Time) predicate.ChannelMonitor {
  683. return predicate.ChannelMonitor(sql.FieldNEQ(FieldLastCheckedAt, v))
  684. }
  685. // LastCheckedAtIn applies the In predicate on the "last_checked_at" field.
  686. func LastCheckedAtIn(vs ...time.Time) predicate.ChannelMonitor {
  687. return predicate.ChannelMonitor(sql.FieldIn(FieldLastCheckedAt, vs...))
  688. }
  689. // LastCheckedAtNotIn applies the NotIn predicate on the "last_checked_at" field.
  690. func LastCheckedAtNotIn(vs ...time.Time) predicate.ChannelMonitor {
  691. return predicate.ChannelMonitor(sql.FieldNotIn(FieldLastCheckedAt, vs...))
  692. }
  693. // LastCheckedAtGT applies the GT predicate on the "last_checked_at" field.
  694. func LastCheckedAtGT(v time.Time) predicate.ChannelMonitor {
  695. return predicate.ChannelMonitor(sql.FieldGT(FieldLastCheckedAt, v))
  696. }
  697. // LastCheckedAtGTE applies the GTE predicate on the "last_checked_at" field.
  698. func LastCheckedAtGTE(v time.Time) predicate.ChannelMonitor {
  699. return predicate.ChannelMonitor(sql.FieldGTE(FieldLastCheckedAt, v))
  700. }
  701. // LastCheckedAtLT applies the LT predicate on the "last_checked_at" field.
  702. func LastCheckedAtLT(v time.Time) predicate.ChannelMonitor {
  703. return predicate.ChannelMonitor(sql.FieldLT(FieldLastCheckedAt, v))
  704. }
  705. // LastCheckedAtLTE applies the LTE predicate on the "last_checked_at" field.
  706. func LastCheckedAtLTE(v time.Time) predicate.ChannelMonitor {
  707. return predicate.ChannelMonitor(sql.FieldLTE(FieldLastCheckedAt, v))
  708. }
  709. // LastCheckedAtIsNil applies the IsNil predicate on the "last_checked_at" field.
  710. func LastCheckedAtIsNil() predicate.ChannelMonitor {
  711. return predicate.ChannelMonitor(sql.FieldIsNull(FieldLastCheckedAt))
  712. }
  713. // LastCheckedAtNotNil applies the NotNil predicate on the "last_checked_at" field.
  714. func LastCheckedAtNotNil() predicate.ChannelMonitor {
  715. return predicate.ChannelMonitor(sql.FieldNotNull(FieldLastCheckedAt))
  716. }
  717. // CreatedByEQ applies the EQ predicate on the "created_by" field.
  718. func CreatedByEQ(v int64) predicate.ChannelMonitor {
  719. return predicate.ChannelMonitor(sql.FieldEQ(FieldCreatedBy, v))
  720. }
  721. // CreatedByNEQ applies the NEQ predicate on the "created_by" field.
  722. func CreatedByNEQ(v int64) predicate.ChannelMonitor {
  723. return predicate.ChannelMonitor(sql.FieldNEQ(FieldCreatedBy, v))
  724. }
  725. // CreatedByIn applies the In predicate on the "created_by" field.
  726. func CreatedByIn(vs ...int64) predicate.ChannelMonitor {
  727. return predicate.ChannelMonitor(sql.FieldIn(FieldCreatedBy, vs...))
  728. }
  729. // CreatedByNotIn applies the NotIn predicate on the "created_by" field.
  730. func CreatedByNotIn(vs ...int64) predicate.ChannelMonitor {
  731. return predicate.ChannelMonitor(sql.FieldNotIn(FieldCreatedBy, vs...))
  732. }
  733. // CreatedByGT applies the GT predicate on the "created_by" field.
  734. func CreatedByGT(v int64) predicate.ChannelMonitor {
  735. return predicate.ChannelMonitor(sql.FieldGT(FieldCreatedBy, v))
  736. }
  737. // CreatedByGTE applies the GTE predicate on the "created_by" field.
  738. func CreatedByGTE(v int64) predicate.ChannelMonitor {
  739. return predicate.ChannelMonitor(sql.FieldGTE(FieldCreatedBy, v))
  740. }
  741. // CreatedByLT applies the LT predicate on the "created_by" field.
  742. func CreatedByLT(v int64) predicate.ChannelMonitor {
  743. return predicate.ChannelMonitor(sql.FieldLT(FieldCreatedBy, v))
  744. }
  745. // CreatedByLTE applies the LTE predicate on the "created_by" field.
  746. func CreatedByLTE(v int64) predicate.ChannelMonitor {
  747. return predicate.ChannelMonitor(sql.FieldLTE(FieldCreatedBy, v))
  748. }
  749. // TemplateIDEQ applies the EQ predicate on the "template_id" field.
  750. func TemplateIDEQ(v int64) predicate.ChannelMonitor {
  751. return predicate.ChannelMonitor(sql.FieldEQ(FieldTemplateID, v))
  752. }
  753. // TemplateIDNEQ applies the NEQ predicate on the "template_id" field.
  754. func TemplateIDNEQ(v int64) predicate.ChannelMonitor {
  755. return predicate.ChannelMonitor(sql.FieldNEQ(FieldTemplateID, v))
  756. }
  757. // TemplateIDIn applies the In predicate on the "template_id" field.
  758. func TemplateIDIn(vs ...int64) predicate.ChannelMonitor {
  759. return predicate.ChannelMonitor(sql.FieldIn(FieldTemplateID, vs...))
  760. }
  761. // TemplateIDNotIn applies the NotIn predicate on the "template_id" field.
  762. func TemplateIDNotIn(vs ...int64) predicate.ChannelMonitor {
  763. return predicate.ChannelMonitor(sql.FieldNotIn(FieldTemplateID, vs...))
  764. }
  765. // TemplateIDIsNil applies the IsNil predicate on the "template_id" field.
  766. func TemplateIDIsNil() predicate.ChannelMonitor {
  767. return predicate.ChannelMonitor(sql.FieldIsNull(FieldTemplateID))
  768. }
  769. // TemplateIDNotNil applies the NotNil predicate on the "template_id" field.
  770. func TemplateIDNotNil() predicate.ChannelMonitor {
  771. return predicate.ChannelMonitor(sql.FieldNotNull(FieldTemplateID))
  772. }
  773. // BodyOverrideModeEQ applies the EQ predicate on the "body_override_mode" field.
  774. func BodyOverrideModeEQ(v string) predicate.ChannelMonitor {
  775. return predicate.ChannelMonitor(sql.FieldEQ(FieldBodyOverrideMode, v))
  776. }
  777. // BodyOverrideModeNEQ applies the NEQ predicate on the "body_override_mode" field.
  778. func BodyOverrideModeNEQ(v string) predicate.ChannelMonitor {
  779. return predicate.ChannelMonitor(sql.FieldNEQ(FieldBodyOverrideMode, v))
  780. }
  781. // BodyOverrideModeIn applies the In predicate on the "body_override_mode" field.
  782. func BodyOverrideModeIn(vs ...string) predicate.ChannelMonitor {
  783. return predicate.ChannelMonitor(sql.FieldIn(FieldBodyOverrideMode, vs...))
  784. }
  785. // BodyOverrideModeNotIn applies the NotIn predicate on the "body_override_mode" field.
  786. func BodyOverrideModeNotIn(vs ...string) predicate.ChannelMonitor {
  787. return predicate.ChannelMonitor(sql.FieldNotIn(FieldBodyOverrideMode, vs...))
  788. }
  789. // BodyOverrideModeGT applies the GT predicate on the "body_override_mode" field.
  790. func BodyOverrideModeGT(v string) predicate.ChannelMonitor {
  791. return predicate.ChannelMonitor(sql.FieldGT(FieldBodyOverrideMode, v))
  792. }
  793. // BodyOverrideModeGTE applies the GTE predicate on the "body_override_mode" field.
  794. func BodyOverrideModeGTE(v string) predicate.ChannelMonitor {
  795. return predicate.ChannelMonitor(sql.FieldGTE(FieldBodyOverrideMode, v))
  796. }
  797. // BodyOverrideModeLT applies the LT predicate on the "body_override_mode" field.
  798. func BodyOverrideModeLT(v string) predicate.ChannelMonitor {
  799. return predicate.ChannelMonitor(sql.FieldLT(FieldBodyOverrideMode, v))
  800. }
  801. // BodyOverrideModeLTE applies the LTE predicate on the "body_override_mode" field.
  802. func BodyOverrideModeLTE(v string) predicate.ChannelMonitor {
  803. return predicate.ChannelMonitor(sql.FieldLTE(FieldBodyOverrideMode, v))
  804. }
  805. // BodyOverrideModeContains applies the Contains predicate on the "body_override_mode" field.
  806. func BodyOverrideModeContains(v string) predicate.ChannelMonitor {
  807. return predicate.ChannelMonitor(sql.FieldContains(FieldBodyOverrideMode, v))
  808. }
  809. // BodyOverrideModeHasPrefix applies the HasPrefix predicate on the "body_override_mode" field.
  810. func BodyOverrideModeHasPrefix(v string) predicate.ChannelMonitor {
  811. return predicate.ChannelMonitor(sql.FieldHasPrefix(FieldBodyOverrideMode, v))
  812. }
  813. // BodyOverrideModeHasSuffix applies the HasSuffix predicate on the "body_override_mode" field.
  814. func BodyOverrideModeHasSuffix(v string) predicate.ChannelMonitor {
  815. return predicate.ChannelMonitor(sql.FieldHasSuffix(FieldBodyOverrideMode, v))
  816. }
  817. // BodyOverrideModeEqualFold applies the EqualFold predicate on the "body_override_mode" field.
  818. func BodyOverrideModeEqualFold(v string) predicate.ChannelMonitor {
  819. return predicate.ChannelMonitor(sql.FieldEqualFold(FieldBodyOverrideMode, v))
  820. }
  821. // BodyOverrideModeContainsFold applies the ContainsFold predicate on the "body_override_mode" field.
  822. func BodyOverrideModeContainsFold(v string) predicate.ChannelMonitor {
  823. return predicate.ChannelMonitor(sql.FieldContainsFold(FieldBodyOverrideMode, v))
  824. }
  825. // BodyOverrideIsNil applies the IsNil predicate on the "body_override" field.
  826. func BodyOverrideIsNil() predicate.ChannelMonitor {
  827. return predicate.ChannelMonitor(sql.FieldIsNull(FieldBodyOverride))
  828. }
  829. // BodyOverrideNotNil applies the NotNil predicate on the "body_override" field.
  830. func BodyOverrideNotNil() predicate.ChannelMonitor {
  831. return predicate.ChannelMonitor(sql.FieldNotNull(FieldBodyOverride))
  832. }
  833. // HasHistory applies the HasEdge predicate on the "history" edge.
  834. func HasHistory() predicate.ChannelMonitor {
  835. return predicate.ChannelMonitor(func(s *sql.Selector) {
  836. step := sqlgraph.NewStep(
  837. sqlgraph.From(Table, FieldID),
  838. sqlgraph.Edge(sqlgraph.O2M, false, HistoryTable, HistoryColumn),
  839. )
  840. sqlgraph.HasNeighbors(s, step)
  841. })
  842. }
  843. // HasHistoryWith applies the HasEdge predicate on the "history" edge with a given conditions (other predicates).
  844. func HasHistoryWith(preds ...predicate.ChannelMonitorHistory) predicate.ChannelMonitor {
  845. return predicate.ChannelMonitor(func(s *sql.Selector) {
  846. step := newHistoryStep()
  847. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  848. for _, p := range preds {
  849. p(s)
  850. }
  851. })
  852. })
  853. }
  854. // HasDailyRollups applies the HasEdge predicate on the "daily_rollups" edge.
  855. func HasDailyRollups() predicate.ChannelMonitor {
  856. return predicate.ChannelMonitor(func(s *sql.Selector) {
  857. step := sqlgraph.NewStep(
  858. sqlgraph.From(Table, FieldID),
  859. sqlgraph.Edge(sqlgraph.O2M, false, DailyRollupsTable, DailyRollupsColumn),
  860. )
  861. sqlgraph.HasNeighbors(s, step)
  862. })
  863. }
  864. // HasDailyRollupsWith applies the HasEdge predicate on the "daily_rollups" edge with a given conditions (other predicates).
  865. func HasDailyRollupsWith(preds ...predicate.ChannelMonitorDailyRollup) predicate.ChannelMonitor {
  866. return predicate.ChannelMonitor(func(s *sql.Selector) {
  867. step := newDailyRollupsStep()
  868. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  869. for _, p := range preds {
  870. p(s)
  871. }
  872. })
  873. })
  874. }
  875. // HasRequestTemplate applies the HasEdge predicate on the "request_template" edge.
  876. func HasRequestTemplate() predicate.ChannelMonitor {
  877. return predicate.ChannelMonitor(func(s *sql.Selector) {
  878. step := sqlgraph.NewStep(
  879. sqlgraph.From(Table, FieldID),
  880. sqlgraph.Edge(sqlgraph.M2O, false, RequestTemplateTable, RequestTemplateColumn),
  881. )
  882. sqlgraph.HasNeighbors(s, step)
  883. })
  884. }
  885. // HasRequestTemplateWith applies the HasEdge predicate on the "request_template" edge with a given conditions (other predicates).
  886. func HasRequestTemplateWith(preds ...predicate.ChannelMonitorRequestTemplate) predicate.ChannelMonitor {
  887. return predicate.ChannelMonitor(func(s *sql.Selector) {
  888. step := newRequestTemplateStep()
  889. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  890. for _, p := range preds {
  891. p(s)
  892. }
  893. })
  894. })
  895. }
  896. // And groups predicates with the AND operator between them.
  897. func And(predicates ...predicate.ChannelMonitor) predicate.ChannelMonitor {
  898. return predicate.ChannelMonitor(sql.AndPredicates(predicates...))
  899. }
  900. // Or groups predicates with the OR operator between them.
  901. func Or(predicates ...predicate.ChannelMonitor) predicate.ChannelMonitor {
  902. return predicate.ChannelMonitor(sql.OrPredicates(predicates...))
  903. }
  904. // Not applies the not operator on the given predicate.
  905. func Not(p predicate.ChannelMonitor) predicate.ChannelMonitor {
  906. return predicate.ChannelMonitor(sql.NotPredicates(p))
  907. }