where.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454
  1. // Code generated by ent, DO NOT EDIT.
  2. package channelmonitorhistory
  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.ChannelMonitorHistory {
  11. return predicate.ChannelMonitorHistory(sql.FieldEQ(FieldID, id))
  12. }
  13. // IDEQ applies the EQ predicate on the ID field.
  14. func IDEQ(id int64) predicate.ChannelMonitorHistory {
  15. return predicate.ChannelMonitorHistory(sql.FieldEQ(FieldID, id))
  16. }
  17. // IDNEQ applies the NEQ predicate on the ID field.
  18. func IDNEQ(id int64) predicate.ChannelMonitorHistory {
  19. return predicate.ChannelMonitorHistory(sql.FieldNEQ(FieldID, id))
  20. }
  21. // IDIn applies the In predicate on the ID field.
  22. func IDIn(ids ...int64) predicate.ChannelMonitorHistory {
  23. return predicate.ChannelMonitorHistory(sql.FieldIn(FieldID, ids...))
  24. }
  25. // IDNotIn applies the NotIn predicate on the ID field.
  26. func IDNotIn(ids ...int64) predicate.ChannelMonitorHistory {
  27. return predicate.ChannelMonitorHistory(sql.FieldNotIn(FieldID, ids...))
  28. }
  29. // IDGT applies the GT predicate on the ID field.
  30. func IDGT(id int64) predicate.ChannelMonitorHistory {
  31. return predicate.ChannelMonitorHistory(sql.FieldGT(FieldID, id))
  32. }
  33. // IDGTE applies the GTE predicate on the ID field.
  34. func IDGTE(id int64) predicate.ChannelMonitorHistory {
  35. return predicate.ChannelMonitorHistory(sql.FieldGTE(FieldID, id))
  36. }
  37. // IDLT applies the LT predicate on the ID field.
  38. func IDLT(id int64) predicate.ChannelMonitorHistory {
  39. return predicate.ChannelMonitorHistory(sql.FieldLT(FieldID, id))
  40. }
  41. // IDLTE applies the LTE predicate on the ID field.
  42. func IDLTE(id int64) predicate.ChannelMonitorHistory {
  43. return predicate.ChannelMonitorHistory(sql.FieldLTE(FieldID, id))
  44. }
  45. // MonitorID applies equality check predicate on the "monitor_id" field. It's identical to MonitorIDEQ.
  46. func MonitorID(v int64) predicate.ChannelMonitorHistory {
  47. return predicate.ChannelMonitorHistory(sql.FieldEQ(FieldMonitorID, v))
  48. }
  49. // Model applies equality check predicate on the "model" field. It's identical to ModelEQ.
  50. func Model(v string) predicate.ChannelMonitorHistory {
  51. return predicate.ChannelMonitorHistory(sql.FieldEQ(FieldModel, v))
  52. }
  53. // LatencyMs applies equality check predicate on the "latency_ms" field. It's identical to LatencyMsEQ.
  54. func LatencyMs(v int) predicate.ChannelMonitorHistory {
  55. return predicate.ChannelMonitorHistory(sql.FieldEQ(FieldLatencyMs, v))
  56. }
  57. // PingLatencyMs applies equality check predicate on the "ping_latency_ms" field. It's identical to PingLatencyMsEQ.
  58. func PingLatencyMs(v int) predicate.ChannelMonitorHistory {
  59. return predicate.ChannelMonitorHistory(sql.FieldEQ(FieldPingLatencyMs, v))
  60. }
  61. // Message applies equality check predicate on the "message" field. It's identical to MessageEQ.
  62. func Message(v string) predicate.ChannelMonitorHistory {
  63. return predicate.ChannelMonitorHistory(sql.FieldEQ(FieldMessage, v))
  64. }
  65. // CheckedAt applies equality check predicate on the "checked_at" field. It's identical to CheckedAtEQ.
  66. func CheckedAt(v time.Time) predicate.ChannelMonitorHistory {
  67. return predicate.ChannelMonitorHistory(sql.FieldEQ(FieldCheckedAt, v))
  68. }
  69. // MonitorIDEQ applies the EQ predicate on the "monitor_id" field.
  70. func MonitorIDEQ(v int64) predicate.ChannelMonitorHistory {
  71. return predicate.ChannelMonitorHistory(sql.FieldEQ(FieldMonitorID, v))
  72. }
  73. // MonitorIDNEQ applies the NEQ predicate on the "monitor_id" field.
  74. func MonitorIDNEQ(v int64) predicate.ChannelMonitorHistory {
  75. return predicate.ChannelMonitorHistory(sql.FieldNEQ(FieldMonitorID, v))
  76. }
  77. // MonitorIDIn applies the In predicate on the "monitor_id" field.
  78. func MonitorIDIn(vs ...int64) predicate.ChannelMonitorHistory {
  79. return predicate.ChannelMonitorHistory(sql.FieldIn(FieldMonitorID, vs...))
  80. }
  81. // MonitorIDNotIn applies the NotIn predicate on the "monitor_id" field.
  82. func MonitorIDNotIn(vs ...int64) predicate.ChannelMonitorHistory {
  83. return predicate.ChannelMonitorHistory(sql.FieldNotIn(FieldMonitorID, vs...))
  84. }
  85. // ModelEQ applies the EQ predicate on the "model" field.
  86. func ModelEQ(v string) predicate.ChannelMonitorHistory {
  87. return predicate.ChannelMonitorHistory(sql.FieldEQ(FieldModel, v))
  88. }
  89. // ModelNEQ applies the NEQ predicate on the "model" field.
  90. func ModelNEQ(v string) predicate.ChannelMonitorHistory {
  91. return predicate.ChannelMonitorHistory(sql.FieldNEQ(FieldModel, v))
  92. }
  93. // ModelIn applies the In predicate on the "model" field.
  94. func ModelIn(vs ...string) predicate.ChannelMonitorHistory {
  95. return predicate.ChannelMonitorHistory(sql.FieldIn(FieldModel, vs...))
  96. }
  97. // ModelNotIn applies the NotIn predicate on the "model" field.
  98. func ModelNotIn(vs ...string) predicate.ChannelMonitorHistory {
  99. return predicate.ChannelMonitorHistory(sql.FieldNotIn(FieldModel, vs...))
  100. }
  101. // ModelGT applies the GT predicate on the "model" field.
  102. func ModelGT(v string) predicate.ChannelMonitorHistory {
  103. return predicate.ChannelMonitorHistory(sql.FieldGT(FieldModel, v))
  104. }
  105. // ModelGTE applies the GTE predicate on the "model" field.
  106. func ModelGTE(v string) predicate.ChannelMonitorHistory {
  107. return predicate.ChannelMonitorHistory(sql.FieldGTE(FieldModel, v))
  108. }
  109. // ModelLT applies the LT predicate on the "model" field.
  110. func ModelLT(v string) predicate.ChannelMonitorHistory {
  111. return predicate.ChannelMonitorHistory(sql.FieldLT(FieldModel, v))
  112. }
  113. // ModelLTE applies the LTE predicate on the "model" field.
  114. func ModelLTE(v string) predicate.ChannelMonitorHistory {
  115. return predicate.ChannelMonitorHistory(sql.FieldLTE(FieldModel, v))
  116. }
  117. // ModelContains applies the Contains predicate on the "model" field.
  118. func ModelContains(v string) predicate.ChannelMonitorHistory {
  119. return predicate.ChannelMonitorHistory(sql.FieldContains(FieldModel, v))
  120. }
  121. // ModelHasPrefix applies the HasPrefix predicate on the "model" field.
  122. func ModelHasPrefix(v string) predicate.ChannelMonitorHistory {
  123. return predicate.ChannelMonitorHistory(sql.FieldHasPrefix(FieldModel, v))
  124. }
  125. // ModelHasSuffix applies the HasSuffix predicate on the "model" field.
  126. func ModelHasSuffix(v string) predicate.ChannelMonitorHistory {
  127. return predicate.ChannelMonitorHistory(sql.FieldHasSuffix(FieldModel, v))
  128. }
  129. // ModelEqualFold applies the EqualFold predicate on the "model" field.
  130. func ModelEqualFold(v string) predicate.ChannelMonitorHistory {
  131. return predicate.ChannelMonitorHistory(sql.FieldEqualFold(FieldModel, v))
  132. }
  133. // ModelContainsFold applies the ContainsFold predicate on the "model" field.
  134. func ModelContainsFold(v string) predicate.ChannelMonitorHistory {
  135. return predicate.ChannelMonitorHistory(sql.FieldContainsFold(FieldModel, v))
  136. }
  137. // StatusEQ applies the EQ predicate on the "status" field.
  138. func StatusEQ(v Status) predicate.ChannelMonitorHistory {
  139. return predicate.ChannelMonitorHistory(sql.FieldEQ(FieldStatus, v))
  140. }
  141. // StatusNEQ applies the NEQ predicate on the "status" field.
  142. func StatusNEQ(v Status) predicate.ChannelMonitorHistory {
  143. return predicate.ChannelMonitorHistory(sql.FieldNEQ(FieldStatus, v))
  144. }
  145. // StatusIn applies the In predicate on the "status" field.
  146. func StatusIn(vs ...Status) predicate.ChannelMonitorHistory {
  147. return predicate.ChannelMonitorHistory(sql.FieldIn(FieldStatus, vs...))
  148. }
  149. // StatusNotIn applies the NotIn predicate on the "status" field.
  150. func StatusNotIn(vs ...Status) predicate.ChannelMonitorHistory {
  151. return predicate.ChannelMonitorHistory(sql.FieldNotIn(FieldStatus, vs...))
  152. }
  153. // LatencyMsEQ applies the EQ predicate on the "latency_ms" field.
  154. func LatencyMsEQ(v int) predicate.ChannelMonitorHistory {
  155. return predicate.ChannelMonitorHistory(sql.FieldEQ(FieldLatencyMs, v))
  156. }
  157. // LatencyMsNEQ applies the NEQ predicate on the "latency_ms" field.
  158. func LatencyMsNEQ(v int) predicate.ChannelMonitorHistory {
  159. return predicate.ChannelMonitorHistory(sql.FieldNEQ(FieldLatencyMs, v))
  160. }
  161. // LatencyMsIn applies the In predicate on the "latency_ms" field.
  162. func LatencyMsIn(vs ...int) predicate.ChannelMonitorHistory {
  163. return predicate.ChannelMonitorHistory(sql.FieldIn(FieldLatencyMs, vs...))
  164. }
  165. // LatencyMsNotIn applies the NotIn predicate on the "latency_ms" field.
  166. func LatencyMsNotIn(vs ...int) predicate.ChannelMonitorHistory {
  167. return predicate.ChannelMonitorHistory(sql.FieldNotIn(FieldLatencyMs, vs...))
  168. }
  169. // LatencyMsGT applies the GT predicate on the "latency_ms" field.
  170. func LatencyMsGT(v int) predicate.ChannelMonitorHistory {
  171. return predicate.ChannelMonitorHistory(sql.FieldGT(FieldLatencyMs, v))
  172. }
  173. // LatencyMsGTE applies the GTE predicate on the "latency_ms" field.
  174. func LatencyMsGTE(v int) predicate.ChannelMonitorHistory {
  175. return predicate.ChannelMonitorHistory(sql.FieldGTE(FieldLatencyMs, v))
  176. }
  177. // LatencyMsLT applies the LT predicate on the "latency_ms" field.
  178. func LatencyMsLT(v int) predicate.ChannelMonitorHistory {
  179. return predicate.ChannelMonitorHistory(sql.FieldLT(FieldLatencyMs, v))
  180. }
  181. // LatencyMsLTE applies the LTE predicate on the "latency_ms" field.
  182. func LatencyMsLTE(v int) predicate.ChannelMonitorHistory {
  183. return predicate.ChannelMonitorHistory(sql.FieldLTE(FieldLatencyMs, v))
  184. }
  185. // LatencyMsIsNil applies the IsNil predicate on the "latency_ms" field.
  186. func LatencyMsIsNil() predicate.ChannelMonitorHistory {
  187. return predicate.ChannelMonitorHistory(sql.FieldIsNull(FieldLatencyMs))
  188. }
  189. // LatencyMsNotNil applies the NotNil predicate on the "latency_ms" field.
  190. func LatencyMsNotNil() predicate.ChannelMonitorHistory {
  191. return predicate.ChannelMonitorHistory(sql.FieldNotNull(FieldLatencyMs))
  192. }
  193. // PingLatencyMsEQ applies the EQ predicate on the "ping_latency_ms" field.
  194. func PingLatencyMsEQ(v int) predicate.ChannelMonitorHistory {
  195. return predicate.ChannelMonitorHistory(sql.FieldEQ(FieldPingLatencyMs, v))
  196. }
  197. // PingLatencyMsNEQ applies the NEQ predicate on the "ping_latency_ms" field.
  198. func PingLatencyMsNEQ(v int) predicate.ChannelMonitorHistory {
  199. return predicate.ChannelMonitorHistory(sql.FieldNEQ(FieldPingLatencyMs, v))
  200. }
  201. // PingLatencyMsIn applies the In predicate on the "ping_latency_ms" field.
  202. func PingLatencyMsIn(vs ...int) predicate.ChannelMonitorHistory {
  203. return predicate.ChannelMonitorHistory(sql.FieldIn(FieldPingLatencyMs, vs...))
  204. }
  205. // PingLatencyMsNotIn applies the NotIn predicate on the "ping_latency_ms" field.
  206. func PingLatencyMsNotIn(vs ...int) predicate.ChannelMonitorHistory {
  207. return predicate.ChannelMonitorHistory(sql.FieldNotIn(FieldPingLatencyMs, vs...))
  208. }
  209. // PingLatencyMsGT applies the GT predicate on the "ping_latency_ms" field.
  210. func PingLatencyMsGT(v int) predicate.ChannelMonitorHistory {
  211. return predicate.ChannelMonitorHistory(sql.FieldGT(FieldPingLatencyMs, v))
  212. }
  213. // PingLatencyMsGTE applies the GTE predicate on the "ping_latency_ms" field.
  214. func PingLatencyMsGTE(v int) predicate.ChannelMonitorHistory {
  215. return predicate.ChannelMonitorHistory(sql.FieldGTE(FieldPingLatencyMs, v))
  216. }
  217. // PingLatencyMsLT applies the LT predicate on the "ping_latency_ms" field.
  218. func PingLatencyMsLT(v int) predicate.ChannelMonitorHistory {
  219. return predicate.ChannelMonitorHistory(sql.FieldLT(FieldPingLatencyMs, v))
  220. }
  221. // PingLatencyMsLTE applies the LTE predicate on the "ping_latency_ms" field.
  222. func PingLatencyMsLTE(v int) predicate.ChannelMonitorHistory {
  223. return predicate.ChannelMonitorHistory(sql.FieldLTE(FieldPingLatencyMs, v))
  224. }
  225. // PingLatencyMsIsNil applies the IsNil predicate on the "ping_latency_ms" field.
  226. func PingLatencyMsIsNil() predicate.ChannelMonitorHistory {
  227. return predicate.ChannelMonitorHistory(sql.FieldIsNull(FieldPingLatencyMs))
  228. }
  229. // PingLatencyMsNotNil applies the NotNil predicate on the "ping_latency_ms" field.
  230. func PingLatencyMsNotNil() predicate.ChannelMonitorHistory {
  231. return predicate.ChannelMonitorHistory(sql.FieldNotNull(FieldPingLatencyMs))
  232. }
  233. // MessageEQ applies the EQ predicate on the "message" field.
  234. func MessageEQ(v string) predicate.ChannelMonitorHistory {
  235. return predicate.ChannelMonitorHistory(sql.FieldEQ(FieldMessage, v))
  236. }
  237. // MessageNEQ applies the NEQ predicate on the "message" field.
  238. func MessageNEQ(v string) predicate.ChannelMonitorHistory {
  239. return predicate.ChannelMonitorHistory(sql.FieldNEQ(FieldMessage, v))
  240. }
  241. // MessageIn applies the In predicate on the "message" field.
  242. func MessageIn(vs ...string) predicate.ChannelMonitorHistory {
  243. return predicate.ChannelMonitorHistory(sql.FieldIn(FieldMessage, vs...))
  244. }
  245. // MessageNotIn applies the NotIn predicate on the "message" field.
  246. func MessageNotIn(vs ...string) predicate.ChannelMonitorHistory {
  247. return predicate.ChannelMonitorHistory(sql.FieldNotIn(FieldMessage, vs...))
  248. }
  249. // MessageGT applies the GT predicate on the "message" field.
  250. func MessageGT(v string) predicate.ChannelMonitorHistory {
  251. return predicate.ChannelMonitorHistory(sql.FieldGT(FieldMessage, v))
  252. }
  253. // MessageGTE applies the GTE predicate on the "message" field.
  254. func MessageGTE(v string) predicate.ChannelMonitorHistory {
  255. return predicate.ChannelMonitorHistory(sql.FieldGTE(FieldMessage, v))
  256. }
  257. // MessageLT applies the LT predicate on the "message" field.
  258. func MessageLT(v string) predicate.ChannelMonitorHistory {
  259. return predicate.ChannelMonitorHistory(sql.FieldLT(FieldMessage, v))
  260. }
  261. // MessageLTE applies the LTE predicate on the "message" field.
  262. func MessageLTE(v string) predicate.ChannelMonitorHistory {
  263. return predicate.ChannelMonitorHistory(sql.FieldLTE(FieldMessage, v))
  264. }
  265. // MessageContains applies the Contains predicate on the "message" field.
  266. func MessageContains(v string) predicate.ChannelMonitorHistory {
  267. return predicate.ChannelMonitorHistory(sql.FieldContains(FieldMessage, v))
  268. }
  269. // MessageHasPrefix applies the HasPrefix predicate on the "message" field.
  270. func MessageHasPrefix(v string) predicate.ChannelMonitorHistory {
  271. return predicate.ChannelMonitorHistory(sql.FieldHasPrefix(FieldMessage, v))
  272. }
  273. // MessageHasSuffix applies the HasSuffix predicate on the "message" field.
  274. func MessageHasSuffix(v string) predicate.ChannelMonitorHistory {
  275. return predicate.ChannelMonitorHistory(sql.FieldHasSuffix(FieldMessage, v))
  276. }
  277. // MessageIsNil applies the IsNil predicate on the "message" field.
  278. func MessageIsNil() predicate.ChannelMonitorHistory {
  279. return predicate.ChannelMonitorHistory(sql.FieldIsNull(FieldMessage))
  280. }
  281. // MessageNotNil applies the NotNil predicate on the "message" field.
  282. func MessageNotNil() predicate.ChannelMonitorHistory {
  283. return predicate.ChannelMonitorHistory(sql.FieldNotNull(FieldMessage))
  284. }
  285. // MessageEqualFold applies the EqualFold predicate on the "message" field.
  286. func MessageEqualFold(v string) predicate.ChannelMonitorHistory {
  287. return predicate.ChannelMonitorHistory(sql.FieldEqualFold(FieldMessage, v))
  288. }
  289. // MessageContainsFold applies the ContainsFold predicate on the "message" field.
  290. func MessageContainsFold(v string) predicate.ChannelMonitorHistory {
  291. return predicate.ChannelMonitorHistory(sql.FieldContainsFold(FieldMessage, v))
  292. }
  293. // QuotaIsNil applies the IsNil predicate on the "quota" field.
  294. func QuotaIsNil() predicate.ChannelMonitorHistory {
  295. return predicate.ChannelMonitorHistory(sql.FieldIsNull(FieldQuota))
  296. }
  297. // QuotaNotNil applies the NotNil predicate on the "quota" field.
  298. func QuotaNotNil() predicate.ChannelMonitorHistory {
  299. return predicate.ChannelMonitorHistory(sql.FieldNotNull(FieldQuota))
  300. }
  301. // CheckedAtEQ applies the EQ predicate on the "checked_at" field.
  302. func CheckedAtEQ(v time.Time) predicate.ChannelMonitorHistory {
  303. return predicate.ChannelMonitorHistory(sql.FieldEQ(FieldCheckedAt, v))
  304. }
  305. // CheckedAtNEQ applies the NEQ predicate on the "checked_at" field.
  306. func CheckedAtNEQ(v time.Time) predicate.ChannelMonitorHistory {
  307. return predicate.ChannelMonitorHistory(sql.FieldNEQ(FieldCheckedAt, v))
  308. }
  309. // CheckedAtIn applies the In predicate on the "checked_at" field.
  310. func CheckedAtIn(vs ...time.Time) predicate.ChannelMonitorHistory {
  311. return predicate.ChannelMonitorHistory(sql.FieldIn(FieldCheckedAt, vs...))
  312. }
  313. // CheckedAtNotIn applies the NotIn predicate on the "checked_at" field.
  314. func CheckedAtNotIn(vs ...time.Time) predicate.ChannelMonitorHistory {
  315. return predicate.ChannelMonitorHistory(sql.FieldNotIn(FieldCheckedAt, vs...))
  316. }
  317. // CheckedAtGT applies the GT predicate on the "checked_at" field.
  318. func CheckedAtGT(v time.Time) predicate.ChannelMonitorHistory {
  319. return predicate.ChannelMonitorHistory(sql.FieldGT(FieldCheckedAt, v))
  320. }
  321. // CheckedAtGTE applies the GTE predicate on the "checked_at" field.
  322. func CheckedAtGTE(v time.Time) predicate.ChannelMonitorHistory {
  323. return predicate.ChannelMonitorHistory(sql.FieldGTE(FieldCheckedAt, v))
  324. }
  325. // CheckedAtLT applies the LT predicate on the "checked_at" field.
  326. func CheckedAtLT(v time.Time) predicate.ChannelMonitorHistory {
  327. return predicate.ChannelMonitorHistory(sql.FieldLT(FieldCheckedAt, v))
  328. }
  329. // CheckedAtLTE applies the LTE predicate on the "checked_at" field.
  330. func CheckedAtLTE(v time.Time) predicate.ChannelMonitorHistory {
  331. return predicate.ChannelMonitorHistory(sql.FieldLTE(FieldCheckedAt, v))
  332. }
  333. // HasMonitor applies the HasEdge predicate on the "monitor" edge.
  334. func HasMonitor() predicate.ChannelMonitorHistory {
  335. return predicate.ChannelMonitorHistory(func(s *sql.Selector) {
  336. step := sqlgraph.NewStep(
  337. sqlgraph.From(Table, FieldID),
  338. sqlgraph.Edge(sqlgraph.M2O, true, MonitorTable, MonitorColumn),
  339. )
  340. sqlgraph.HasNeighbors(s, step)
  341. })
  342. }
  343. // HasMonitorWith applies the HasEdge predicate on the "monitor" edge with a given conditions (other predicates).
  344. func HasMonitorWith(preds ...predicate.ChannelMonitor) predicate.ChannelMonitorHistory {
  345. return predicate.ChannelMonitorHistory(func(s *sql.Selector) {
  346. step := newMonitorStep()
  347. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  348. for _, p := range preds {
  349. p(s)
  350. }
  351. })
  352. })
  353. }
  354. // And groups predicates with the AND operator between them.
  355. func And(predicates ...predicate.ChannelMonitorHistory) predicate.ChannelMonitorHistory {
  356. return predicate.ChannelMonitorHistory(sql.AndPredicates(predicates...))
  357. }
  358. // Or groups predicates with the OR operator between them.
  359. func Or(predicates ...predicate.ChannelMonitorHistory) predicate.ChannelMonitorHistory {
  360. return predicate.ChannelMonitorHistory(sql.OrPredicates(predicates...))
  361. }
  362. // Not applies the not operator on the given predicate.
  363. func Not(p predicate.ChannelMonitorHistory) predicate.ChannelMonitorHistory {
  364. return predicate.ChannelMonitorHistory(sql.NotPredicates(p))
  365. }