where.go 103 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631
  1. // Code generated by ent, DO NOT EDIT.
  2. package usagelog
  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.UsageLog {
  11. return predicate.UsageLog(sql.FieldEQ(FieldID, id))
  12. }
  13. // IDEQ applies the EQ predicate on the ID field.
  14. func IDEQ(id int64) predicate.UsageLog {
  15. return predicate.UsageLog(sql.FieldEQ(FieldID, id))
  16. }
  17. // IDNEQ applies the NEQ predicate on the ID field.
  18. func IDNEQ(id int64) predicate.UsageLog {
  19. return predicate.UsageLog(sql.FieldNEQ(FieldID, id))
  20. }
  21. // IDIn applies the In predicate on the ID field.
  22. func IDIn(ids ...int64) predicate.UsageLog {
  23. return predicate.UsageLog(sql.FieldIn(FieldID, ids...))
  24. }
  25. // IDNotIn applies the NotIn predicate on the ID field.
  26. func IDNotIn(ids ...int64) predicate.UsageLog {
  27. return predicate.UsageLog(sql.FieldNotIn(FieldID, ids...))
  28. }
  29. // IDGT applies the GT predicate on the ID field.
  30. func IDGT(id int64) predicate.UsageLog {
  31. return predicate.UsageLog(sql.FieldGT(FieldID, id))
  32. }
  33. // IDGTE applies the GTE predicate on the ID field.
  34. func IDGTE(id int64) predicate.UsageLog {
  35. return predicate.UsageLog(sql.FieldGTE(FieldID, id))
  36. }
  37. // IDLT applies the LT predicate on the ID field.
  38. func IDLT(id int64) predicate.UsageLog {
  39. return predicate.UsageLog(sql.FieldLT(FieldID, id))
  40. }
  41. // IDLTE applies the LTE predicate on the ID field.
  42. func IDLTE(id int64) predicate.UsageLog {
  43. return predicate.UsageLog(sql.FieldLTE(FieldID, id))
  44. }
  45. // UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
  46. func UserID(v int64) predicate.UsageLog {
  47. return predicate.UsageLog(sql.FieldEQ(FieldUserID, v))
  48. }
  49. // APIKeyID applies equality check predicate on the "api_key_id" field. It's identical to APIKeyIDEQ.
  50. func APIKeyID(v int64) predicate.UsageLog {
  51. return predicate.UsageLog(sql.FieldEQ(FieldAPIKeyID, v))
  52. }
  53. // AccountID applies equality check predicate on the "account_id" field. It's identical to AccountIDEQ.
  54. func AccountID(v int64) predicate.UsageLog {
  55. return predicate.UsageLog(sql.FieldEQ(FieldAccountID, v))
  56. }
  57. // RequestID applies equality check predicate on the "request_id" field. It's identical to RequestIDEQ.
  58. func RequestID(v string) predicate.UsageLog {
  59. return predicate.UsageLog(sql.FieldEQ(FieldRequestID, v))
  60. }
  61. // Model applies equality check predicate on the "model" field. It's identical to ModelEQ.
  62. func Model(v string) predicate.UsageLog {
  63. return predicate.UsageLog(sql.FieldEQ(FieldModel, v))
  64. }
  65. // RequestedModel applies equality check predicate on the "requested_model" field. It's identical to RequestedModelEQ.
  66. func RequestedModel(v string) predicate.UsageLog {
  67. return predicate.UsageLog(sql.FieldEQ(FieldRequestedModel, v))
  68. }
  69. // UpstreamModel applies equality check predicate on the "upstream_model" field. It's identical to UpstreamModelEQ.
  70. func UpstreamModel(v string) predicate.UsageLog {
  71. return predicate.UsageLog(sql.FieldEQ(FieldUpstreamModel, v))
  72. }
  73. // UpstreamResponseModel applies equality check predicate on the "upstream_response_model" field. It's identical to UpstreamResponseModelEQ.
  74. func UpstreamResponseModel(v string) predicate.UsageLog {
  75. return predicate.UsageLog(sql.FieldEQ(FieldUpstreamResponseModel, v))
  76. }
  77. // UpstreamModelMismatch applies equality check predicate on the "upstream_model_mismatch" field. It's identical to UpstreamModelMismatchEQ.
  78. func UpstreamModelMismatch(v bool) predicate.UsageLog {
  79. return predicate.UsageLog(sql.FieldEQ(FieldUpstreamModelMismatch, v))
  80. }
  81. // ChannelID applies equality check predicate on the "channel_id" field. It's identical to ChannelIDEQ.
  82. func ChannelID(v int64) predicate.UsageLog {
  83. return predicate.UsageLog(sql.FieldEQ(FieldChannelID, v))
  84. }
  85. // ModelMappingChain applies equality check predicate on the "model_mapping_chain" field. It's identical to ModelMappingChainEQ.
  86. func ModelMappingChain(v string) predicate.UsageLog {
  87. return predicate.UsageLog(sql.FieldEQ(FieldModelMappingChain, v))
  88. }
  89. // BillingTier applies equality check predicate on the "billing_tier" field. It's identical to BillingTierEQ.
  90. func BillingTier(v string) predicate.UsageLog {
  91. return predicate.UsageLog(sql.FieldEQ(FieldBillingTier, v))
  92. }
  93. // BillingMode applies equality check predicate on the "billing_mode" field. It's identical to BillingModeEQ.
  94. func BillingMode(v string) predicate.UsageLog {
  95. return predicate.UsageLog(sql.FieldEQ(FieldBillingMode, v))
  96. }
  97. // GroupID applies equality check predicate on the "group_id" field. It's identical to GroupIDEQ.
  98. func GroupID(v int64) predicate.UsageLog {
  99. return predicate.UsageLog(sql.FieldEQ(FieldGroupID, v))
  100. }
  101. // SubscriptionID applies equality check predicate on the "subscription_id" field. It's identical to SubscriptionIDEQ.
  102. func SubscriptionID(v int64) predicate.UsageLog {
  103. return predicate.UsageLog(sql.FieldEQ(FieldSubscriptionID, v))
  104. }
  105. // InputTokens applies equality check predicate on the "input_tokens" field. It's identical to InputTokensEQ.
  106. func InputTokens(v int) predicate.UsageLog {
  107. return predicate.UsageLog(sql.FieldEQ(FieldInputTokens, v))
  108. }
  109. // OutputTokens applies equality check predicate on the "output_tokens" field. It's identical to OutputTokensEQ.
  110. func OutputTokens(v int) predicate.UsageLog {
  111. return predicate.UsageLog(sql.FieldEQ(FieldOutputTokens, v))
  112. }
  113. // CacheCreationTokens applies equality check predicate on the "cache_creation_tokens" field. It's identical to CacheCreationTokensEQ.
  114. func CacheCreationTokens(v int) predicate.UsageLog {
  115. return predicate.UsageLog(sql.FieldEQ(FieldCacheCreationTokens, v))
  116. }
  117. // CacheReadTokens applies equality check predicate on the "cache_read_tokens" field. It's identical to CacheReadTokensEQ.
  118. func CacheReadTokens(v int) predicate.UsageLog {
  119. return predicate.UsageLog(sql.FieldEQ(FieldCacheReadTokens, v))
  120. }
  121. // CacheCreation5mTokens applies equality check predicate on the "cache_creation_5m_tokens" field. It's identical to CacheCreation5mTokensEQ.
  122. func CacheCreation5mTokens(v int) predicate.UsageLog {
  123. return predicate.UsageLog(sql.FieldEQ(FieldCacheCreation5mTokens, v))
  124. }
  125. // CacheCreation1hTokens applies equality check predicate on the "cache_creation_1h_tokens" field. It's identical to CacheCreation1hTokensEQ.
  126. func CacheCreation1hTokens(v int) predicate.UsageLog {
  127. return predicate.UsageLog(sql.FieldEQ(FieldCacheCreation1hTokens, v))
  128. }
  129. // InputCost applies equality check predicate on the "input_cost" field. It's identical to InputCostEQ.
  130. func InputCost(v float64) predicate.UsageLog {
  131. return predicate.UsageLog(sql.FieldEQ(FieldInputCost, v))
  132. }
  133. // OutputCost applies equality check predicate on the "output_cost" field. It's identical to OutputCostEQ.
  134. func OutputCost(v float64) predicate.UsageLog {
  135. return predicate.UsageLog(sql.FieldEQ(FieldOutputCost, v))
  136. }
  137. // CacheCreationCost applies equality check predicate on the "cache_creation_cost" field. It's identical to CacheCreationCostEQ.
  138. func CacheCreationCost(v float64) predicate.UsageLog {
  139. return predicate.UsageLog(sql.FieldEQ(FieldCacheCreationCost, v))
  140. }
  141. // CacheReadCost applies equality check predicate on the "cache_read_cost" field. It's identical to CacheReadCostEQ.
  142. func CacheReadCost(v float64) predicate.UsageLog {
  143. return predicate.UsageLog(sql.FieldEQ(FieldCacheReadCost, v))
  144. }
  145. // TotalCost applies equality check predicate on the "total_cost" field. It's identical to TotalCostEQ.
  146. func TotalCost(v float64) predicate.UsageLog {
  147. return predicate.UsageLog(sql.FieldEQ(FieldTotalCost, v))
  148. }
  149. // ActualCost applies equality check predicate on the "actual_cost" field. It's identical to ActualCostEQ.
  150. func ActualCost(v float64) predicate.UsageLog {
  151. return predicate.UsageLog(sql.FieldEQ(FieldActualCost, v))
  152. }
  153. // RateMultiplier applies equality check predicate on the "rate_multiplier" field. It's identical to RateMultiplierEQ.
  154. func RateMultiplier(v float64) predicate.UsageLog {
  155. return predicate.UsageLog(sql.FieldEQ(FieldRateMultiplier, v))
  156. }
  157. // LongContextBillingApplied applies equality check predicate on the "long_context_billing_applied" field. It's identical to LongContextBillingAppliedEQ.
  158. func LongContextBillingApplied(v bool) predicate.UsageLog {
  159. return predicate.UsageLog(sql.FieldEQ(FieldLongContextBillingApplied, v))
  160. }
  161. // AccountRateMultiplier applies equality check predicate on the "account_rate_multiplier" field. It's identical to AccountRateMultiplierEQ.
  162. func AccountRateMultiplier(v float64) predicate.UsageLog {
  163. return predicate.UsageLog(sql.FieldEQ(FieldAccountRateMultiplier, v))
  164. }
  165. // BillingType applies equality check predicate on the "billing_type" field. It's identical to BillingTypeEQ.
  166. func BillingType(v int8) predicate.UsageLog {
  167. return predicate.UsageLog(sql.FieldEQ(FieldBillingType, v))
  168. }
  169. // Stream applies equality check predicate on the "stream" field. It's identical to StreamEQ.
  170. func Stream(v bool) predicate.UsageLog {
  171. return predicate.UsageLog(sql.FieldEQ(FieldStream, v))
  172. }
  173. // DurationMs applies equality check predicate on the "duration_ms" field. It's identical to DurationMsEQ.
  174. func DurationMs(v int) predicate.UsageLog {
  175. return predicate.UsageLog(sql.FieldEQ(FieldDurationMs, v))
  176. }
  177. // FirstTokenMs applies equality check predicate on the "first_token_ms" field. It's identical to FirstTokenMsEQ.
  178. func FirstTokenMs(v int) predicate.UsageLog {
  179. return predicate.UsageLog(sql.FieldEQ(FieldFirstTokenMs, v))
  180. }
  181. // UserAgent applies equality check predicate on the "user_agent" field. It's identical to UserAgentEQ.
  182. func UserAgent(v string) predicate.UsageLog {
  183. return predicate.UsageLog(sql.FieldEQ(FieldUserAgent, v))
  184. }
  185. // IPAddress applies equality check predicate on the "ip_address" field. It's identical to IPAddressEQ.
  186. func IPAddress(v string) predicate.UsageLog {
  187. return predicate.UsageLog(sql.FieldEQ(FieldIPAddress, v))
  188. }
  189. // ImageCount applies equality check predicate on the "image_count" field. It's identical to ImageCountEQ.
  190. func ImageCount(v int) predicate.UsageLog {
  191. return predicate.UsageLog(sql.FieldEQ(FieldImageCount, v))
  192. }
  193. // ImageSize applies equality check predicate on the "image_size" field. It's identical to ImageSizeEQ.
  194. func ImageSize(v string) predicate.UsageLog {
  195. return predicate.UsageLog(sql.FieldEQ(FieldImageSize, v))
  196. }
  197. // ImageInputSize applies equality check predicate on the "image_input_size" field. It's identical to ImageInputSizeEQ.
  198. func ImageInputSize(v string) predicate.UsageLog {
  199. return predicate.UsageLog(sql.FieldEQ(FieldImageInputSize, v))
  200. }
  201. // ImageOutputSize applies equality check predicate on the "image_output_size" field. It's identical to ImageOutputSizeEQ.
  202. func ImageOutputSize(v string) predicate.UsageLog {
  203. return predicate.UsageLog(sql.FieldEQ(FieldImageOutputSize, v))
  204. }
  205. // ImageSizeSource applies equality check predicate on the "image_size_source" field. It's identical to ImageSizeSourceEQ.
  206. func ImageSizeSource(v string) predicate.UsageLog {
  207. return predicate.UsageLog(sql.FieldEQ(FieldImageSizeSource, v))
  208. }
  209. // VideoCount applies equality check predicate on the "video_count" field. It's identical to VideoCountEQ.
  210. func VideoCount(v int) predicate.UsageLog {
  211. return predicate.UsageLog(sql.FieldEQ(FieldVideoCount, v))
  212. }
  213. // VideoResolution applies equality check predicate on the "video_resolution" field. It's identical to VideoResolutionEQ.
  214. func VideoResolution(v string) predicate.UsageLog {
  215. return predicate.UsageLog(sql.FieldEQ(FieldVideoResolution, v))
  216. }
  217. // VideoDurationSeconds applies equality check predicate on the "video_duration_seconds" field. It's identical to VideoDurationSecondsEQ.
  218. func VideoDurationSeconds(v int) predicate.UsageLog {
  219. return predicate.UsageLog(sql.FieldEQ(FieldVideoDurationSeconds, v))
  220. }
  221. // CacheTTLOverridden applies equality check predicate on the "cache_ttl_overridden" field. It's identical to CacheTTLOverriddenEQ.
  222. func CacheTTLOverridden(v bool) predicate.UsageLog {
  223. return predicate.UsageLog(sql.FieldEQ(FieldCacheTTLOverridden, v))
  224. }
  225. // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
  226. func CreatedAt(v time.Time) predicate.UsageLog {
  227. return predicate.UsageLog(sql.FieldEQ(FieldCreatedAt, v))
  228. }
  229. // UserIDEQ applies the EQ predicate on the "user_id" field.
  230. func UserIDEQ(v int64) predicate.UsageLog {
  231. return predicate.UsageLog(sql.FieldEQ(FieldUserID, v))
  232. }
  233. // UserIDNEQ applies the NEQ predicate on the "user_id" field.
  234. func UserIDNEQ(v int64) predicate.UsageLog {
  235. return predicate.UsageLog(sql.FieldNEQ(FieldUserID, v))
  236. }
  237. // UserIDIn applies the In predicate on the "user_id" field.
  238. func UserIDIn(vs ...int64) predicate.UsageLog {
  239. return predicate.UsageLog(sql.FieldIn(FieldUserID, vs...))
  240. }
  241. // UserIDNotIn applies the NotIn predicate on the "user_id" field.
  242. func UserIDNotIn(vs ...int64) predicate.UsageLog {
  243. return predicate.UsageLog(sql.FieldNotIn(FieldUserID, vs...))
  244. }
  245. // APIKeyIDEQ applies the EQ predicate on the "api_key_id" field.
  246. func APIKeyIDEQ(v int64) predicate.UsageLog {
  247. return predicate.UsageLog(sql.FieldEQ(FieldAPIKeyID, v))
  248. }
  249. // APIKeyIDNEQ applies the NEQ predicate on the "api_key_id" field.
  250. func APIKeyIDNEQ(v int64) predicate.UsageLog {
  251. return predicate.UsageLog(sql.FieldNEQ(FieldAPIKeyID, v))
  252. }
  253. // APIKeyIDIn applies the In predicate on the "api_key_id" field.
  254. func APIKeyIDIn(vs ...int64) predicate.UsageLog {
  255. return predicate.UsageLog(sql.FieldIn(FieldAPIKeyID, vs...))
  256. }
  257. // APIKeyIDNotIn applies the NotIn predicate on the "api_key_id" field.
  258. func APIKeyIDNotIn(vs ...int64) predicate.UsageLog {
  259. return predicate.UsageLog(sql.FieldNotIn(FieldAPIKeyID, vs...))
  260. }
  261. // AccountIDEQ applies the EQ predicate on the "account_id" field.
  262. func AccountIDEQ(v int64) predicate.UsageLog {
  263. return predicate.UsageLog(sql.FieldEQ(FieldAccountID, v))
  264. }
  265. // AccountIDNEQ applies the NEQ predicate on the "account_id" field.
  266. func AccountIDNEQ(v int64) predicate.UsageLog {
  267. return predicate.UsageLog(sql.FieldNEQ(FieldAccountID, v))
  268. }
  269. // AccountIDIn applies the In predicate on the "account_id" field.
  270. func AccountIDIn(vs ...int64) predicate.UsageLog {
  271. return predicate.UsageLog(sql.FieldIn(FieldAccountID, vs...))
  272. }
  273. // AccountIDNotIn applies the NotIn predicate on the "account_id" field.
  274. func AccountIDNotIn(vs ...int64) predicate.UsageLog {
  275. return predicate.UsageLog(sql.FieldNotIn(FieldAccountID, vs...))
  276. }
  277. // RequestIDEQ applies the EQ predicate on the "request_id" field.
  278. func RequestIDEQ(v string) predicate.UsageLog {
  279. return predicate.UsageLog(sql.FieldEQ(FieldRequestID, v))
  280. }
  281. // RequestIDNEQ applies the NEQ predicate on the "request_id" field.
  282. func RequestIDNEQ(v string) predicate.UsageLog {
  283. return predicate.UsageLog(sql.FieldNEQ(FieldRequestID, v))
  284. }
  285. // RequestIDIn applies the In predicate on the "request_id" field.
  286. func RequestIDIn(vs ...string) predicate.UsageLog {
  287. return predicate.UsageLog(sql.FieldIn(FieldRequestID, vs...))
  288. }
  289. // RequestIDNotIn applies the NotIn predicate on the "request_id" field.
  290. func RequestIDNotIn(vs ...string) predicate.UsageLog {
  291. return predicate.UsageLog(sql.FieldNotIn(FieldRequestID, vs...))
  292. }
  293. // RequestIDGT applies the GT predicate on the "request_id" field.
  294. func RequestIDGT(v string) predicate.UsageLog {
  295. return predicate.UsageLog(sql.FieldGT(FieldRequestID, v))
  296. }
  297. // RequestIDGTE applies the GTE predicate on the "request_id" field.
  298. func RequestIDGTE(v string) predicate.UsageLog {
  299. return predicate.UsageLog(sql.FieldGTE(FieldRequestID, v))
  300. }
  301. // RequestIDLT applies the LT predicate on the "request_id" field.
  302. func RequestIDLT(v string) predicate.UsageLog {
  303. return predicate.UsageLog(sql.FieldLT(FieldRequestID, v))
  304. }
  305. // RequestIDLTE applies the LTE predicate on the "request_id" field.
  306. func RequestIDLTE(v string) predicate.UsageLog {
  307. return predicate.UsageLog(sql.FieldLTE(FieldRequestID, v))
  308. }
  309. // RequestIDContains applies the Contains predicate on the "request_id" field.
  310. func RequestIDContains(v string) predicate.UsageLog {
  311. return predicate.UsageLog(sql.FieldContains(FieldRequestID, v))
  312. }
  313. // RequestIDHasPrefix applies the HasPrefix predicate on the "request_id" field.
  314. func RequestIDHasPrefix(v string) predicate.UsageLog {
  315. return predicate.UsageLog(sql.FieldHasPrefix(FieldRequestID, v))
  316. }
  317. // RequestIDHasSuffix applies the HasSuffix predicate on the "request_id" field.
  318. func RequestIDHasSuffix(v string) predicate.UsageLog {
  319. return predicate.UsageLog(sql.FieldHasSuffix(FieldRequestID, v))
  320. }
  321. // RequestIDEqualFold applies the EqualFold predicate on the "request_id" field.
  322. func RequestIDEqualFold(v string) predicate.UsageLog {
  323. return predicate.UsageLog(sql.FieldEqualFold(FieldRequestID, v))
  324. }
  325. // RequestIDContainsFold applies the ContainsFold predicate on the "request_id" field.
  326. func RequestIDContainsFold(v string) predicate.UsageLog {
  327. return predicate.UsageLog(sql.FieldContainsFold(FieldRequestID, v))
  328. }
  329. // ModelEQ applies the EQ predicate on the "model" field.
  330. func ModelEQ(v string) predicate.UsageLog {
  331. return predicate.UsageLog(sql.FieldEQ(FieldModel, v))
  332. }
  333. // ModelNEQ applies the NEQ predicate on the "model" field.
  334. func ModelNEQ(v string) predicate.UsageLog {
  335. return predicate.UsageLog(sql.FieldNEQ(FieldModel, v))
  336. }
  337. // ModelIn applies the In predicate on the "model" field.
  338. func ModelIn(vs ...string) predicate.UsageLog {
  339. return predicate.UsageLog(sql.FieldIn(FieldModel, vs...))
  340. }
  341. // ModelNotIn applies the NotIn predicate on the "model" field.
  342. func ModelNotIn(vs ...string) predicate.UsageLog {
  343. return predicate.UsageLog(sql.FieldNotIn(FieldModel, vs...))
  344. }
  345. // ModelGT applies the GT predicate on the "model" field.
  346. func ModelGT(v string) predicate.UsageLog {
  347. return predicate.UsageLog(sql.FieldGT(FieldModel, v))
  348. }
  349. // ModelGTE applies the GTE predicate on the "model" field.
  350. func ModelGTE(v string) predicate.UsageLog {
  351. return predicate.UsageLog(sql.FieldGTE(FieldModel, v))
  352. }
  353. // ModelLT applies the LT predicate on the "model" field.
  354. func ModelLT(v string) predicate.UsageLog {
  355. return predicate.UsageLog(sql.FieldLT(FieldModel, v))
  356. }
  357. // ModelLTE applies the LTE predicate on the "model" field.
  358. func ModelLTE(v string) predicate.UsageLog {
  359. return predicate.UsageLog(sql.FieldLTE(FieldModel, v))
  360. }
  361. // ModelContains applies the Contains predicate on the "model" field.
  362. func ModelContains(v string) predicate.UsageLog {
  363. return predicate.UsageLog(sql.FieldContains(FieldModel, v))
  364. }
  365. // ModelHasPrefix applies the HasPrefix predicate on the "model" field.
  366. func ModelHasPrefix(v string) predicate.UsageLog {
  367. return predicate.UsageLog(sql.FieldHasPrefix(FieldModel, v))
  368. }
  369. // ModelHasSuffix applies the HasSuffix predicate on the "model" field.
  370. func ModelHasSuffix(v string) predicate.UsageLog {
  371. return predicate.UsageLog(sql.FieldHasSuffix(FieldModel, v))
  372. }
  373. // ModelEqualFold applies the EqualFold predicate on the "model" field.
  374. func ModelEqualFold(v string) predicate.UsageLog {
  375. return predicate.UsageLog(sql.FieldEqualFold(FieldModel, v))
  376. }
  377. // ModelContainsFold applies the ContainsFold predicate on the "model" field.
  378. func ModelContainsFold(v string) predicate.UsageLog {
  379. return predicate.UsageLog(sql.FieldContainsFold(FieldModel, v))
  380. }
  381. // RequestedModelEQ applies the EQ predicate on the "requested_model" field.
  382. func RequestedModelEQ(v string) predicate.UsageLog {
  383. return predicate.UsageLog(sql.FieldEQ(FieldRequestedModel, v))
  384. }
  385. // RequestedModelNEQ applies the NEQ predicate on the "requested_model" field.
  386. func RequestedModelNEQ(v string) predicate.UsageLog {
  387. return predicate.UsageLog(sql.FieldNEQ(FieldRequestedModel, v))
  388. }
  389. // RequestedModelIn applies the In predicate on the "requested_model" field.
  390. func RequestedModelIn(vs ...string) predicate.UsageLog {
  391. return predicate.UsageLog(sql.FieldIn(FieldRequestedModel, vs...))
  392. }
  393. // RequestedModelNotIn applies the NotIn predicate on the "requested_model" field.
  394. func RequestedModelNotIn(vs ...string) predicate.UsageLog {
  395. return predicate.UsageLog(sql.FieldNotIn(FieldRequestedModel, vs...))
  396. }
  397. // RequestedModelGT applies the GT predicate on the "requested_model" field.
  398. func RequestedModelGT(v string) predicate.UsageLog {
  399. return predicate.UsageLog(sql.FieldGT(FieldRequestedModel, v))
  400. }
  401. // RequestedModelGTE applies the GTE predicate on the "requested_model" field.
  402. func RequestedModelGTE(v string) predicate.UsageLog {
  403. return predicate.UsageLog(sql.FieldGTE(FieldRequestedModel, v))
  404. }
  405. // RequestedModelLT applies the LT predicate on the "requested_model" field.
  406. func RequestedModelLT(v string) predicate.UsageLog {
  407. return predicate.UsageLog(sql.FieldLT(FieldRequestedModel, v))
  408. }
  409. // RequestedModelLTE applies the LTE predicate on the "requested_model" field.
  410. func RequestedModelLTE(v string) predicate.UsageLog {
  411. return predicate.UsageLog(sql.FieldLTE(FieldRequestedModel, v))
  412. }
  413. // RequestedModelContains applies the Contains predicate on the "requested_model" field.
  414. func RequestedModelContains(v string) predicate.UsageLog {
  415. return predicate.UsageLog(sql.FieldContains(FieldRequestedModel, v))
  416. }
  417. // RequestedModelHasPrefix applies the HasPrefix predicate on the "requested_model" field.
  418. func RequestedModelHasPrefix(v string) predicate.UsageLog {
  419. return predicate.UsageLog(sql.FieldHasPrefix(FieldRequestedModel, v))
  420. }
  421. // RequestedModelHasSuffix applies the HasSuffix predicate on the "requested_model" field.
  422. func RequestedModelHasSuffix(v string) predicate.UsageLog {
  423. return predicate.UsageLog(sql.FieldHasSuffix(FieldRequestedModel, v))
  424. }
  425. // RequestedModelIsNil applies the IsNil predicate on the "requested_model" field.
  426. func RequestedModelIsNil() predicate.UsageLog {
  427. return predicate.UsageLog(sql.FieldIsNull(FieldRequestedModel))
  428. }
  429. // RequestedModelNotNil applies the NotNil predicate on the "requested_model" field.
  430. func RequestedModelNotNil() predicate.UsageLog {
  431. return predicate.UsageLog(sql.FieldNotNull(FieldRequestedModel))
  432. }
  433. // RequestedModelEqualFold applies the EqualFold predicate on the "requested_model" field.
  434. func RequestedModelEqualFold(v string) predicate.UsageLog {
  435. return predicate.UsageLog(sql.FieldEqualFold(FieldRequestedModel, v))
  436. }
  437. // RequestedModelContainsFold applies the ContainsFold predicate on the "requested_model" field.
  438. func RequestedModelContainsFold(v string) predicate.UsageLog {
  439. return predicate.UsageLog(sql.FieldContainsFold(FieldRequestedModel, v))
  440. }
  441. // UpstreamModelEQ applies the EQ predicate on the "upstream_model" field.
  442. func UpstreamModelEQ(v string) predicate.UsageLog {
  443. return predicate.UsageLog(sql.FieldEQ(FieldUpstreamModel, v))
  444. }
  445. // UpstreamModelNEQ applies the NEQ predicate on the "upstream_model" field.
  446. func UpstreamModelNEQ(v string) predicate.UsageLog {
  447. return predicate.UsageLog(sql.FieldNEQ(FieldUpstreamModel, v))
  448. }
  449. // UpstreamModelIn applies the In predicate on the "upstream_model" field.
  450. func UpstreamModelIn(vs ...string) predicate.UsageLog {
  451. return predicate.UsageLog(sql.FieldIn(FieldUpstreamModel, vs...))
  452. }
  453. // UpstreamModelNotIn applies the NotIn predicate on the "upstream_model" field.
  454. func UpstreamModelNotIn(vs ...string) predicate.UsageLog {
  455. return predicate.UsageLog(sql.FieldNotIn(FieldUpstreamModel, vs...))
  456. }
  457. // UpstreamModelGT applies the GT predicate on the "upstream_model" field.
  458. func UpstreamModelGT(v string) predicate.UsageLog {
  459. return predicate.UsageLog(sql.FieldGT(FieldUpstreamModel, v))
  460. }
  461. // UpstreamModelGTE applies the GTE predicate on the "upstream_model" field.
  462. func UpstreamModelGTE(v string) predicate.UsageLog {
  463. return predicate.UsageLog(sql.FieldGTE(FieldUpstreamModel, v))
  464. }
  465. // UpstreamModelLT applies the LT predicate on the "upstream_model" field.
  466. func UpstreamModelLT(v string) predicate.UsageLog {
  467. return predicate.UsageLog(sql.FieldLT(FieldUpstreamModel, v))
  468. }
  469. // UpstreamModelLTE applies the LTE predicate on the "upstream_model" field.
  470. func UpstreamModelLTE(v string) predicate.UsageLog {
  471. return predicate.UsageLog(sql.FieldLTE(FieldUpstreamModel, v))
  472. }
  473. // UpstreamModelContains applies the Contains predicate on the "upstream_model" field.
  474. func UpstreamModelContains(v string) predicate.UsageLog {
  475. return predicate.UsageLog(sql.FieldContains(FieldUpstreamModel, v))
  476. }
  477. // UpstreamModelHasPrefix applies the HasPrefix predicate on the "upstream_model" field.
  478. func UpstreamModelHasPrefix(v string) predicate.UsageLog {
  479. return predicate.UsageLog(sql.FieldHasPrefix(FieldUpstreamModel, v))
  480. }
  481. // UpstreamModelHasSuffix applies the HasSuffix predicate on the "upstream_model" field.
  482. func UpstreamModelHasSuffix(v string) predicate.UsageLog {
  483. return predicate.UsageLog(sql.FieldHasSuffix(FieldUpstreamModel, v))
  484. }
  485. // UpstreamModelIsNil applies the IsNil predicate on the "upstream_model" field.
  486. func UpstreamModelIsNil() predicate.UsageLog {
  487. return predicate.UsageLog(sql.FieldIsNull(FieldUpstreamModel))
  488. }
  489. // UpstreamModelNotNil applies the NotNil predicate on the "upstream_model" field.
  490. func UpstreamModelNotNil() predicate.UsageLog {
  491. return predicate.UsageLog(sql.FieldNotNull(FieldUpstreamModel))
  492. }
  493. // UpstreamModelEqualFold applies the EqualFold predicate on the "upstream_model" field.
  494. func UpstreamModelEqualFold(v string) predicate.UsageLog {
  495. return predicate.UsageLog(sql.FieldEqualFold(FieldUpstreamModel, v))
  496. }
  497. // UpstreamModelContainsFold applies the ContainsFold predicate on the "upstream_model" field.
  498. func UpstreamModelContainsFold(v string) predicate.UsageLog {
  499. return predicate.UsageLog(sql.FieldContainsFold(FieldUpstreamModel, v))
  500. }
  501. // UpstreamResponseModelEQ applies the EQ predicate on the "upstream_response_model" field.
  502. func UpstreamResponseModelEQ(v string) predicate.UsageLog {
  503. return predicate.UsageLog(sql.FieldEQ(FieldUpstreamResponseModel, v))
  504. }
  505. // UpstreamResponseModelNEQ applies the NEQ predicate on the "upstream_response_model" field.
  506. func UpstreamResponseModelNEQ(v string) predicate.UsageLog {
  507. return predicate.UsageLog(sql.FieldNEQ(FieldUpstreamResponseModel, v))
  508. }
  509. // UpstreamResponseModelIn applies the In predicate on the "upstream_response_model" field.
  510. func UpstreamResponseModelIn(vs ...string) predicate.UsageLog {
  511. return predicate.UsageLog(sql.FieldIn(FieldUpstreamResponseModel, vs...))
  512. }
  513. // UpstreamResponseModelNotIn applies the NotIn predicate on the "upstream_response_model" field.
  514. func UpstreamResponseModelNotIn(vs ...string) predicate.UsageLog {
  515. return predicate.UsageLog(sql.FieldNotIn(FieldUpstreamResponseModel, vs...))
  516. }
  517. // UpstreamResponseModelGT applies the GT predicate on the "upstream_response_model" field.
  518. func UpstreamResponseModelGT(v string) predicate.UsageLog {
  519. return predicate.UsageLog(sql.FieldGT(FieldUpstreamResponseModel, v))
  520. }
  521. // UpstreamResponseModelGTE applies the GTE predicate on the "upstream_response_model" field.
  522. func UpstreamResponseModelGTE(v string) predicate.UsageLog {
  523. return predicate.UsageLog(sql.FieldGTE(FieldUpstreamResponseModel, v))
  524. }
  525. // UpstreamResponseModelLT applies the LT predicate on the "upstream_response_model" field.
  526. func UpstreamResponseModelLT(v string) predicate.UsageLog {
  527. return predicate.UsageLog(sql.FieldLT(FieldUpstreamResponseModel, v))
  528. }
  529. // UpstreamResponseModelLTE applies the LTE predicate on the "upstream_response_model" field.
  530. func UpstreamResponseModelLTE(v string) predicate.UsageLog {
  531. return predicate.UsageLog(sql.FieldLTE(FieldUpstreamResponseModel, v))
  532. }
  533. // UpstreamResponseModelContains applies the Contains predicate on the "upstream_response_model" field.
  534. func UpstreamResponseModelContains(v string) predicate.UsageLog {
  535. return predicate.UsageLog(sql.FieldContains(FieldUpstreamResponseModel, v))
  536. }
  537. // UpstreamResponseModelHasPrefix applies the HasPrefix predicate on the "upstream_response_model" field.
  538. func UpstreamResponseModelHasPrefix(v string) predicate.UsageLog {
  539. return predicate.UsageLog(sql.FieldHasPrefix(FieldUpstreamResponseModel, v))
  540. }
  541. // UpstreamResponseModelHasSuffix applies the HasSuffix predicate on the "upstream_response_model" field.
  542. func UpstreamResponseModelHasSuffix(v string) predicate.UsageLog {
  543. return predicate.UsageLog(sql.FieldHasSuffix(FieldUpstreamResponseModel, v))
  544. }
  545. // UpstreamResponseModelIsNil applies the IsNil predicate on the "upstream_response_model" field.
  546. func UpstreamResponseModelIsNil() predicate.UsageLog {
  547. return predicate.UsageLog(sql.FieldIsNull(FieldUpstreamResponseModel))
  548. }
  549. // UpstreamResponseModelNotNil applies the NotNil predicate on the "upstream_response_model" field.
  550. func UpstreamResponseModelNotNil() predicate.UsageLog {
  551. return predicate.UsageLog(sql.FieldNotNull(FieldUpstreamResponseModel))
  552. }
  553. // UpstreamResponseModelEqualFold applies the EqualFold predicate on the "upstream_response_model" field.
  554. func UpstreamResponseModelEqualFold(v string) predicate.UsageLog {
  555. return predicate.UsageLog(sql.FieldEqualFold(FieldUpstreamResponseModel, v))
  556. }
  557. // UpstreamResponseModelContainsFold applies the ContainsFold predicate on the "upstream_response_model" field.
  558. func UpstreamResponseModelContainsFold(v string) predicate.UsageLog {
  559. return predicate.UsageLog(sql.FieldContainsFold(FieldUpstreamResponseModel, v))
  560. }
  561. // UpstreamModelMismatchEQ applies the EQ predicate on the "upstream_model_mismatch" field.
  562. func UpstreamModelMismatchEQ(v bool) predicate.UsageLog {
  563. return predicate.UsageLog(sql.FieldEQ(FieldUpstreamModelMismatch, v))
  564. }
  565. // UpstreamModelMismatchNEQ applies the NEQ predicate on the "upstream_model_mismatch" field.
  566. func UpstreamModelMismatchNEQ(v bool) predicate.UsageLog {
  567. return predicate.UsageLog(sql.FieldNEQ(FieldUpstreamModelMismatch, v))
  568. }
  569. // UpstreamModelMismatchIsNil applies the IsNil predicate on the "upstream_model_mismatch" field.
  570. func UpstreamModelMismatchIsNil() predicate.UsageLog {
  571. return predicate.UsageLog(sql.FieldIsNull(FieldUpstreamModelMismatch))
  572. }
  573. // UpstreamModelMismatchNotNil applies the NotNil predicate on the "upstream_model_mismatch" field.
  574. func UpstreamModelMismatchNotNil() predicate.UsageLog {
  575. return predicate.UsageLog(sql.FieldNotNull(FieldUpstreamModelMismatch))
  576. }
  577. // ChannelIDEQ applies the EQ predicate on the "channel_id" field.
  578. func ChannelIDEQ(v int64) predicate.UsageLog {
  579. return predicate.UsageLog(sql.FieldEQ(FieldChannelID, v))
  580. }
  581. // ChannelIDNEQ applies the NEQ predicate on the "channel_id" field.
  582. func ChannelIDNEQ(v int64) predicate.UsageLog {
  583. return predicate.UsageLog(sql.FieldNEQ(FieldChannelID, v))
  584. }
  585. // ChannelIDIn applies the In predicate on the "channel_id" field.
  586. func ChannelIDIn(vs ...int64) predicate.UsageLog {
  587. return predicate.UsageLog(sql.FieldIn(FieldChannelID, vs...))
  588. }
  589. // ChannelIDNotIn applies the NotIn predicate on the "channel_id" field.
  590. func ChannelIDNotIn(vs ...int64) predicate.UsageLog {
  591. return predicate.UsageLog(sql.FieldNotIn(FieldChannelID, vs...))
  592. }
  593. // ChannelIDGT applies the GT predicate on the "channel_id" field.
  594. func ChannelIDGT(v int64) predicate.UsageLog {
  595. return predicate.UsageLog(sql.FieldGT(FieldChannelID, v))
  596. }
  597. // ChannelIDGTE applies the GTE predicate on the "channel_id" field.
  598. func ChannelIDGTE(v int64) predicate.UsageLog {
  599. return predicate.UsageLog(sql.FieldGTE(FieldChannelID, v))
  600. }
  601. // ChannelIDLT applies the LT predicate on the "channel_id" field.
  602. func ChannelIDLT(v int64) predicate.UsageLog {
  603. return predicate.UsageLog(sql.FieldLT(FieldChannelID, v))
  604. }
  605. // ChannelIDLTE applies the LTE predicate on the "channel_id" field.
  606. func ChannelIDLTE(v int64) predicate.UsageLog {
  607. return predicate.UsageLog(sql.FieldLTE(FieldChannelID, v))
  608. }
  609. // ChannelIDIsNil applies the IsNil predicate on the "channel_id" field.
  610. func ChannelIDIsNil() predicate.UsageLog {
  611. return predicate.UsageLog(sql.FieldIsNull(FieldChannelID))
  612. }
  613. // ChannelIDNotNil applies the NotNil predicate on the "channel_id" field.
  614. func ChannelIDNotNil() predicate.UsageLog {
  615. return predicate.UsageLog(sql.FieldNotNull(FieldChannelID))
  616. }
  617. // ModelMappingChainEQ applies the EQ predicate on the "model_mapping_chain" field.
  618. func ModelMappingChainEQ(v string) predicate.UsageLog {
  619. return predicate.UsageLog(sql.FieldEQ(FieldModelMappingChain, v))
  620. }
  621. // ModelMappingChainNEQ applies the NEQ predicate on the "model_mapping_chain" field.
  622. func ModelMappingChainNEQ(v string) predicate.UsageLog {
  623. return predicate.UsageLog(sql.FieldNEQ(FieldModelMappingChain, v))
  624. }
  625. // ModelMappingChainIn applies the In predicate on the "model_mapping_chain" field.
  626. func ModelMappingChainIn(vs ...string) predicate.UsageLog {
  627. return predicate.UsageLog(sql.FieldIn(FieldModelMappingChain, vs...))
  628. }
  629. // ModelMappingChainNotIn applies the NotIn predicate on the "model_mapping_chain" field.
  630. func ModelMappingChainNotIn(vs ...string) predicate.UsageLog {
  631. return predicate.UsageLog(sql.FieldNotIn(FieldModelMappingChain, vs...))
  632. }
  633. // ModelMappingChainGT applies the GT predicate on the "model_mapping_chain" field.
  634. func ModelMappingChainGT(v string) predicate.UsageLog {
  635. return predicate.UsageLog(sql.FieldGT(FieldModelMappingChain, v))
  636. }
  637. // ModelMappingChainGTE applies the GTE predicate on the "model_mapping_chain" field.
  638. func ModelMappingChainGTE(v string) predicate.UsageLog {
  639. return predicate.UsageLog(sql.FieldGTE(FieldModelMappingChain, v))
  640. }
  641. // ModelMappingChainLT applies the LT predicate on the "model_mapping_chain" field.
  642. func ModelMappingChainLT(v string) predicate.UsageLog {
  643. return predicate.UsageLog(sql.FieldLT(FieldModelMappingChain, v))
  644. }
  645. // ModelMappingChainLTE applies the LTE predicate on the "model_mapping_chain" field.
  646. func ModelMappingChainLTE(v string) predicate.UsageLog {
  647. return predicate.UsageLog(sql.FieldLTE(FieldModelMappingChain, v))
  648. }
  649. // ModelMappingChainContains applies the Contains predicate on the "model_mapping_chain" field.
  650. func ModelMappingChainContains(v string) predicate.UsageLog {
  651. return predicate.UsageLog(sql.FieldContains(FieldModelMappingChain, v))
  652. }
  653. // ModelMappingChainHasPrefix applies the HasPrefix predicate on the "model_mapping_chain" field.
  654. func ModelMappingChainHasPrefix(v string) predicate.UsageLog {
  655. return predicate.UsageLog(sql.FieldHasPrefix(FieldModelMappingChain, v))
  656. }
  657. // ModelMappingChainHasSuffix applies the HasSuffix predicate on the "model_mapping_chain" field.
  658. func ModelMappingChainHasSuffix(v string) predicate.UsageLog {
  659. return predicate.UsageLog(sql.FieldHasSuffix(FieldModelMappingChain, v))
  660. }
  661. // ModelMappingChainIsNil applies the IsNil predicate on the "model_mapping_chain" field.
  662. func ModelMappingChainIsNil() predicate.UsageLog {
  663. return predicate.UsageLog(sql.FieldIsNull(FieldModelMappingChain))
  664. }
  665. // ModelMappingChainNotNil applies the NotNil predicate on the "model_mapping_chain" field.
  666. func ModelMappingChainNotNil() predicate.UsageLog {
  667. return predicate.UsageLog(sql.FieldNotNull(FieldModelMappingChain))
  668. }
  669. // ModelMappingChainEqualFold applies the EqualFold predicate on the "model_mapping_chain" field.
  670. func ModelMappingChainEqualFold(v string) predicate.UsageLog {
  671. return predicate.UsageLog(sql.FieldEqualFold(FieldModelMappingChain, v))
  672. }
  673. // ModelMappingChainContainsFold applies the ContainsFold predicate on the "model_mapping_chain" field.
  674. func ModelMappingChainContainsFold(v string) predicate.UsageLog {
  675. return predicate.UsageLog(sql.FieldContainsFold(FieldModelMappingChain, v))
  676. }
  677. // BillingTierEQ applies the EQ predicate on the "billing_tier" field.
  678. func BillingTierEQ(v string) predicate.UsageLog {
  679. return predicate.UsageLog(sql.FieldEQ(FieldBillingTier, v))
  680. }
  681. // BillingTierNEQ applies the NEQ predicate on the "billing_tier" field.
  682. func BillingTierNEQ(v string) predicate.UsageLog {
  683. return predicate.UsageLog(sql.FieldNEQ(FieldBillingTier, v))
  684. }
  685. // BillingTierIn applies the In predicate on the "billing_tier" field.
  686. func BillingTierIn(vs ...string) predicate.UsageLog {
  687. return predicate.UsageLog(sql.FieldIn(FieldBillingTier, vs...))
  688. }
  689. // BillingTierNotIn applies the NotIn predicate on the "billing_tier" field.
  690. func BillingTierNotIn(vs ...string) predicate.UsageLog {
  691. return predicate.UsageLog(sql.FieldNotIn(FieldBillingTier, vs...))
  692. }
  693. // BillingTierGT applies the GT predicate on the "billing_tier" field.
  694. func BillingTierGT(v string) predicate.UsageLog {
  695. return predicate.UsageLog(sql.FieldGT(FieldBillingTier, v))
  696. }
  697. // BillingTierGTE applies the GTE predicate on the "billing_tier" field.
  698. func BillingTierGTE(v string) predicate.UsageLog {
  699. return predicate.UsageLog(sql.FieldGTE(FieldBillingTier, v))
  700. }
  701. // BillingTierLT applies the LT predicate on the "billing_tier" field.
  702. func BillingTierLT(v string) predicate.UsageLog {
  703. return predicate.UsageLog(sql.FieldLT(FieldBillingTier, v))
  704. }
  705. // BillingTierLTE applies the LTE predicate on the "billing_tier" field.
  706. func BillingTierLTE(v string) predicate.UsageLog {
  707. return predicate.UsageLog(sql.FieldLTE(FieldBillingTier, v))
  708. }
  709. // BillingTierContains applies the Contains predicate on the "billing_tier" field.
  710. func BillingTierContains(v string) predicate.UsageLog {
  711. return predicate.UsageLog(sql.FieldContains(FieldBillingTier, v))
  712. }
  713. // BillingTierHasPrefix applies the HasPrefix predicate on the "billing_tier" field.
  714. func BillingTierHasPrefix(v string) predicate.UsageLog {
  715. return predicate.UsageLog(sql.FieldHasPrefix(FieldBillingTier, v))
  716. }
  717. // BillingTierHasSuffix applies the HasSuffix predicate on the "billing_tier" field.
  718. func BillingTierHasSuffix(v string) predicate.UsageLog {
  719. return predicate.UsageLog(sql.FieldHasSuffix(FieldBillingTier, v))
  720. }
  721. // BillingTierIsNil applies the IsNil predicate on the "billing_tier" field.
  722. func BillingTierIsNil() predicate.UsageLog {
  723. return predicate.UsageLog(sql.FieldIsNull(FieldBillingTier))
  724. }
  725. // BillingTierNotNil applies the NotNil predicate on the "billing_tier" field.
  726. func BillingTierNotNil() predicate.UsageLog {
  727. return predicate.UsageLog(sql.FieldNotNull(FieldBillingTier))
  728. }
  729. // BillingTierEqualFold applies the EqualFold predicate on the "billing_tier" field.
  730. func BillingTierEqualFold(v string) predicate.UsageLog {
  731. return predicate.UsageLog(sql.FieldEqualFold(FieldBillingTier, v))
  732. }
  733. // BillingTierContainsFold applies the ContainsFold predicate on the "billing_tier" field.
  734. func BillingTierContainsFold(v string) predicate.UsageLog {
  735. return predicate.UsageLog(sql.FieldContainsFold(FieldBillingTier, v))
  736. }
  737. // BillingModeEQ applies the EQ predicate on the "billing_mode" field.
  738. func BillingModeEQ(v string) predicate.UsageLog {
  739. return predicate.UsageLog(sql.FieldEQ(FieldBillingMode, v))
  740. }
  741. // BillingModeNEQ applies the NEQ predicate on the "billing_mode" field.
  742. func BillingModeNEQ(v string) predicate.UsageLog {
  743. return predicate.UsageLog(sql.FieldNEQ(FieldBillingMode, v))
  744. }
  745. // BillingModeIn applies the In predicate on the "billing_mode" field.
  746. func BillingModeIn(vs ...string) predicate.UsageLog {
  747. return predicate.UsageLog(sql.FieldIn(FieldBillingMode, vs...))
  748. }
  749. // BillingModeNotIn applies the NotIn predicate on the "billing_mode" field.
  750. func BillingModeNotIn(vs ...string) predicate.UsageLog {
  751. return predicate.UsageLog(sql.FieldNotIn(FieldBillingMode, vs...))
  752. }
  753. // BillingModeGT applies the GT predicate on the "billing_mode" field.
  754. func BillingModeGT(v string) predicate.UsageLog {
  755. return predicate.UsageLog(sql.FieldGT(FieldBillingMode, v))
  756. }
  757. // BillingModeGTE applies the GTE predicate on the "billing_mode" field.
  758. func BillingModeGTE(v string) predicate.UsageLog {
  759. return predicate.UsageLog(sql.FieldGTE(FieldBillingMode, v))
  760. }
  761. // BillingModeLT applies the LT predicate on the "billing_mode" field.
  762. func BillingModeLT(v string) predicate.UsageLog {
  763. return predicate.UsageLog(sql.FieldLT(FieldBillingMode, v))
  764. }
  765. // BillingModeLTE applies the LTE predicate on the "billing_mode" field.
  766. func BillingModeLTE(v string) predicate.UsageLog {
  767. return predicate.UsageLog(sql.FieldLTE(FieldBillingMode, v))
  768. }
  769. // BillingModeContains applies the Contains predicate on the "billing_mode" field.
  770. func BillingModeContains(v string) predicate.UsageLog {
  771. return predicate.UsageLog(sql.FieldContains(FieldBillingMode, v))
  772. }
  773. // BillingModeHasPrefix applies the HasPrefix predicate on the "billing_mode" field.
  774. func BillingModeHasPrefix(v string) predicate.UsageLog {
  775. return predicate.UsageLog(sql.FieldHasPrefix(FieldBillingMode, v))
  776. }
  777. // BillingModeHasSuffix applies the HasSuffix predicate on the "billing_mode" field.
  778. func BillingModeHasSuffix(v string) predicate.UsageLog {
  779. return predicate.UsageLog(sql.FieldHasSuffix(FieldBillingMode, v))
  780. }
  781. // BillingModeIsNil applies the IsNil predicate on the "billing_mode" field.
  782. func BillingModeIsNil() predicate.UsageLog {
  783. return predicate.UsageLog(sql.FieldIsNull(FieldBillingMode))
  784. }
  785. // BillingModeNotNil applies the NotNil predicate on the "billing_mode" field.
  786. func BillingModeNotNil() predicate.UsageLog {
  787. return predicate.UsageLog(sql.FieldNotNull(FieldBillingMode))
  788. }
  789. // BillingModeEqualFold applies the EqualFold predicate on the "billing_mode" field.
  790. func BillingModeEqualFold(v string) predicate.UsageLog {
  791. return predicate.UsageLog(sql.FieldEqualFold(FieldBillingMode, v))
  792. }
  793. // BillingModeContainsFold applies the ContainsFold predicate on the "billing_mode" field.
  794. func BillingModeContainsFold(v string) predicate.UsageLog {
  795. return predicate.UsageLog(sql.FieldContainsFold(FieldBillingMode, v))
  796. }
  797. // GroupIDEQ applies the EQ predicate on the "group_id" field.
  798. func GroupIDEQ(v int64) predicate.UsageLog {
  799. return predicate.UsageLog(sql.FieldEQ(FieldGroupID, v))
  800. }
  801. // GroupIDNEQ applies the NEQ predicate on the "group_id" field.
  802. func GroupIDNEQ(v int64) predicate.UsageLog {
  803. return predicate.UsageLog(sql.FieldNEQ(FieldGroupID, v))
  804. }
  805. // GroupIDIn applies the In predicate on the "group_id" field.
  806. func GroupIDIn(vs ...int64) predicate.UsageLog {
  807. return predicate.UsageLog(sql.FieldIn(FieldGroupID, vs...))
  808. }
  809. // GroupIDNotIn applies the NotIn predicate on the "group_id" field.
  810. func GroupIDNotIn(vs ...int64) predicate.UsageLog {
  811. return predicate.UsageLog(sql.FieldNotIn(FieldGroupID, vs...))
  812. }
  813. // GroupIDIsNil applies the IsNil predicate on the "group_id" field.
  814. func GroupIDIsNil() predicate.UsageLog {
  815. return predicate.UsageLog(sql.FieldIsNull(FieldGroupID))
  816. }
  817. // GroupIDNotNil applies the NotNil predicate on the "group_id" field.
  818. func GroupIDNotNil() predicate.UsageLog {
  819. return predicate.UsageLog(sql.FieldNotNull(FieldGroupID))
  820. }
  821. // SubscriptionIDEQ applies the EQ predicate on the "subscription_id" field.
  822. func SubscriptionIDEQ(v int64) predicate.UsageLog {
  823. return predicate.UsageLog(sql.FieldEQ(FieldSubscriptionID, v))
  824. }
  825. // SubscriptionIDNEQ applies the NEQ predicate on the "subscription_id" field.
  826. func SubscriptionIDNEQ(v int64) predicate.UsageLog {
  827. return predicate.UsageLog(sql.FieldNEQ(FieldSubscriptionID, v))
  828. }
  829. // SubscriptionIDIn applies the In predicate on the "subscription_id" field.
  830. func SubscriptionIDIn(vs ...int64) predicate.UsageLog {
  831. return predicate.UsageLog(sql.FieldIn(FieldSubscriptionID, vs...))
  832. }
  833. // SubscriptionIDNotIn applies the NotIn predicate on the "subscription_id" field.
  834. func SubscriptionIDNotIn(vs ...int64) predicate.UsageLog {
  835. return predicate.UsageLog(sql.FieldNotIn(FieldSubscriptionID, vs...))
  836. }
  837. // SubscriptionIDIsNil applies the IsNil predicate on the "subscription_id" field.
  838. func SubscriptionIDIsNil() predicate.UsageLog {
  839. return predicate.UsageLog(sql.FieldIsNull(FieldSubscriptionID))
  840. }
  841. // SubscriptionIDNotNil applies the NotNil predicate on the "subscription_id" field.
  842. func SubscriptionIDNotNil() predicate.UsageLog {
  843. return predicate.UsageLog(sql.FieldNotNull(FieldSubscriptionID))
  844. }
  845. // InputTokensEQ applies the EQ predicate on the "input_tokens" field.
  846. func InputTokensEQ(v int) predicate.UsageLog {
  847. return predicate.UsageLog(sql.FieldEQ(FieldInputTokens, v))
  848. }
  849. // InputTokensNEQ applies the NEQ predicate on the "input_tokens" field.
  850. func InputTokensNEQ(v int) predicate.UsageLog {
  851. return predicate.UsageLog(sql.FieldNEQ(FieldInputTokens, v))
  852. }
  853. // InputTokensIn applies the In predicate on the "input_tokens" field.
  854. func InputTokensIn(vs ...int) predicate.UsageLog {
  855. return predicate.UsageLog(sql.FieldIn(FieldInputTokens, vs...))
  856. }
  857. // InputTokensNotIn applies the NotIn predicate on the "input_tokens" field.
  858. func InputTokensNotIn(vs ...int) predicate.UsageLog {
  859. return predicate.UsageLog(sql.FieldNotIn(FieldInputTokens, vs...))
  860. }
  861. // InputTokensGT applies the GT predicate on the "input_tokens" field.
  862. func InputTokensGT(v int) predicate.UsageLog {
  863. return predicate.UsageLog(sql.FieldGT(FieldInputTokens, v))
  864. }
  865. // InputTokensGTE applies the GTE predicate on the "input_tokens" field.
  866. func InputTokensGTE(v int) predicate.UsageLog {
  867. return predicate.UsageLog(sql.FieldGTE(FieldInputTokens, v))
  868. }
  869. // InputTokensLT applies the LT predicate on the "input_tokens" field.
  870. func InputTokensLT(v int) predicate.UsageLog {
  871. return predicate.UsageLog(sql.FieldLT(FieldInputTokens, v))
  872. }
  873. // InputTokensLTE applies the LTE predicate on the "input_tokens" field.
  874. func InputTokensLTE(v int) predicate.UsageLog {
  875. return predicate.UsageLog(sql.FieldLTE(FieldInputTokens, v))
  876. }
  877. // OutputTokensEQ applies the EQ predicate on the "output_tokens" field.
  878. func OutputTokensEQ(v int) predicate.UsageLog {
  879. return predicate.UsageLog(sql.FieldEQ(FieldOutputTokens, v))
  880. }
  881. // OutputTokensNEQ applies the NEQ predicate on the "output_tokens" field.
  882. func OutputTokensNEQ(v int) predicate.UsageLog {
  883. return predicate.UsageLog(sql.FieldNEQ(FieldOutputTokens, v))
  884. }
  885. // OutputTokensIn applies the In predicate on the "output_tokens" field.
  886. func OutputTokensIn(vs ...int) predicate.UsageLog {
  887. return predicate.UsageLog(sql.FieldIn(FieldOutputTokens, vs...))
  888. }
  889. // OutputTokensNotIn applies the NotIn predicate on the "output_tokens" field.
  890. func OutputTokensNotIn(vs ...int) predicate.UsageLog {
  891. return predicate.UsageLog(sql.FieldNotIn(FieldOutputTokens, vs...))
  892. }
  893. // OutputTokensGT applies the GT predicate on the "output_tokens" field.
  894. func OutputTokensGT(v int) predicate.UsageLog {
  895. return predicate.UsageLog(sql.FieldGT(FieldOutputTokens, v))
  896. }
  897. // OutputTokensGTE applies the GTE predicate on the "output_tokens" field.
  898. func OutputTokensGTE(v int) predicate.UsageLog {
  899. return predicate.UsageLog(sql.FieldGTE(FieldOutputTokens, v))
  900. }
  901. // OutputTokensLT applies the LT predicate on the "output_tokens" field.
  902. func OutputTokensLT(v int) predicate.UsageLog {
  903. return predicate.UsageLog(sql.FieldLT(FieldOutputTokens, v))
  904. }
  905. // OutputTokensLTE applies the LTE predicate on the "output_tokens" field.
  906. func OutputTokensLTE(v int) predicate.UsageLog {
  907. return predicate.UsageLog(sql.FieldLTE(FieldOutputTokens, v))
  908. }
  909. // CacheCreationTokensEQ applies the EQ predicate on the "cache_creation_tokens" field.
  910. func CacheCreationTokensEQ(v int) predicate.UsageLog {
  911. return predicate.UsageLog(sql.FieldEQ(FieldCacheCreationTokens, v))
  912. }
  913. // CacheCreationTokensNEQ applies the NEQ predicate on the "cache_creation_tokens" field.
  914. func CacheCreationTokensNEQ(v int) predicate.UsageLog {
  915. return predicate.UsageLog(sql.FieldNEQ(FieldCacheCreationTokens, v))
  916. }
  917. // CacheCreationTokensIn applies the In predicate on the "cache_creation_tokens" field.
  918. func CacheCreationTokensIn(vs ...int) predicate.UsageLog {
  919. return predicate.UsageLog(sql.FieldIn(FieldCacheCreationTokens, vs...))
  920. }
  921. // CacheCreationTokensNotIn applies the NotIn predicate on the "cache_creation_tokens" field.
  922. func CacheCreationTokensNotIn(vs ...int) predicate.UsageLog {
  923. return predicate.UsageLog(sql.FieldNotIn(FieldCacheCreationTokens, vs...))
  924. }
  925. // CacheCreationTokensGT applies the GT predicate on the "cache_creation_tokens" field.
  926. func CacheCreationTokensGT(v int) predicate.UsageLog {
  927. return predicate.UsageLog(sql.FieldGT(FieldCacheCreationTokens, v))
  928. }
  929. // CacheCreationTokensGTE applies the GTE predicate on the "cache_creation_tokens" field.
  930. func CacheCreationTokensGTE(v int) predicate.UsageLog {
  931. return predicate.UsageLog(sql.FieldGTE(FieldCacheCreationTokens, v))
  932. }
  933. // CacheCreationTokensLT applies the LT predicate on the "cache_creation_tokens" field.
  934. func CacheCreationTokensLT(v int) predicate.UsageLog {
  935. return predicate.UsageLog(sql.FieldLT(FieldCacheCreationTokens, v))
  936. }
  937. // CacheCreationTokensLTE applies the LTE predicate on the "cache_creation_tokens" field.
  938. func CacheCreationTokensLTE(v int) predicate.UsageLog {
  939. return predicate.UsageLog(sql.FieldLTE(FieldCacheCreationTokens, v))
  940. }
  941. // CacheReadTokensEQ applies the EQ predicate on the "cache_read_tokens" field.
  942. func CacheReadTokensEQ(v int) predicate.UsageLog {
  943. return predicate.UsageLog(sql.FieldEQ(FieldCacheReadTokens, v))
  944. }
  945. // CacheReadTokensNEQ applies the NEQ predicate on the "cache_read_tokens" field.
  946. func CacheReadTokensNEQ(v int) predicate.UsageLog {
  947. return predicate.UsageLog(sql.FieldNEQ(FieldCacheReadTokens, v))
  948. }
  949. // CacheReadTokensIn applies the In predicate on the "cache_read_tokens" field.
  950. func CacheReadTokensIn(vs ...int) predicate.UsageLog {
  951. return predicate.UsageLog(sql.FieldIn(FieldCacheReadTokens, vs...))
  952. }
  953. // CacheReadTokensNotIn applies the NotIn predicate on the "cache_read_tokens" field.
  954. func CacheReadTokensNotIn(vs ...int) predicate.UsageLog {
  955. return predicate.UsageLog(sql.FieldNotIn(FieldCacheReadTokens, vs...))
  956. }
  957. // CacheReadTokensGT applies the GT predicate on the "cache_read_tokens" field.
  958. func CacheReadTokensGT(v int) predicate.UsageLog {
  959. return predicate.UsageLog(sql.FieldGT(FieldCacheReadTokens, v))
  960. }
  961. // CacheReadTokensGTE applies the GTE predicate on the "cache_read_tokens" field.
  962. func CacheReadTokensGTE(v int) predicate.UsageLog {
  963. return predicate.UsageLog(sql.FieldGTE(FieldCacheReadTokens, v))
  964. }
  965. // CacheReadTokensLT applies the LT predicate on the "cache_read_tokens" field.
  966. func CacheReadTokensLT(v int) predicate.UsageLog {
  967. return predicate.UsageLog(sql.FieldLT(FieldCacheReadTokens, v))
  968. }
  969. // CacheReadTokensLTE applies the LTE predicate on the "cache_read_tokens" field.
  970. func CacheReadTokensLTE(v int) predicate.UsageLog {
  971. return predicate.UsageLog(sql.FieldLTE(FieldCacheReadTokens, v))
  972. }
  973. // CacheCreation5mTokensEQ applies the EQ predicate on the "cache_creation_5m_tokens" field.
  974. func CacheCreation5mTokensEQ(v int) predicate.UsageLog {
  975. return predicate.UsageLog(sql.FieldEQ(FieldCacheCreation5mTokens, v))
  976. }
  977. // CacheCreation5mTokensNEQ applies the NEQ predicate on the "cache_creation_5m_tokens" field.
  978. func CacheCreation5mTokensNEQ(v int) predicate.UsageLog {
  979. return predicate.UsageLog(sql.FieldNEQ(FieldCacheCreation5mTokens, v))
  980. }
  981. // CacheCreation5mTokensIn applies the In predicate on the "cache_creation_5m_tokens" field.
  982. func CacheCreation5mTokensIn(vs ...int) predicate.UsageLog {
  983. return predicate.UsageLog(sql.FieldIn(FieldCacheCreation5mTokens, vs...))
  984. }
  985. // CacheCreation5mTokensNotIn applies the NotIn predicate on the "cache_creation_5m_tokens" field.
  986. func CacheCreation5mTokensNotIn(vs ...int) predicate.UsageLog {
  987. return predicate.UsageLog(sql.FieldNotIn(FieldCacheCreation5mTokens, vs...))
  988. }
  989. // CacheCreation5mTokensGT applies the GT predicate on the "cache_creation_5m_tokens" field.
  990. func CacheCreation5mTokensGT(v int) predicate.UsageLog {
  991. return predicate.UsageLog(sql.FieldGT(FieldCacheCreation5mTokens, v))
  992. }
  993. // CacheCreation5mTokensGTE applies the GTE predicate on the "cache_creation_5m_tokens" field.
  994. func CacheCreation5mTokensGTE(v int) predicate.UsageLog {
  995. return predicate.UsageLog(sql.FieldGTE(FieldCacheCreation5mTokens, v))
  996. }
  997. // CacheCreation5mTokensLT applies the LT predicate on the "cache_creation_5m_tokens" field.
  998. func CacheCreation5mTokensLT(v int) predicate.UsageLog {
  999. return predicate.UsageLog(sql.FieldLT(FieldCacheCreation5mTokens, v))
  1000. }
  1001. // CacheCreation5mTokensLTE applies the LTE predicate on the "cache_creation_5m_tokens" field.
  1002. func CacheCreation5mTokensLTE(v int) predicate.UsageLog {
  1003. return predicate.UsageLog(sql.FieldLTE(FieldCacheCreation5mTokens, v))
  1004. }
  1005. // CacheCreation1hTokensEQ applies the EQ predicate on the "cache_creation_1h_tokens" field.
  1006. func CacheCreation1hTokensEQ(v int) predicate.UsageLog {
  1007. return predicate.UsageLog(sql.FieldEQ(FieldCacheCreation1hTokens, v))
  1008. }
  1009. // CacheCreation1hTokensNEQ applies the NEQ predicate on the "cache_creation_1h_tokens" field.
  1010. func CacheCreation1hTokensNEQ(v int) predicate.UsageLog {
  1011. return predicate.UsageLog(sql.FieldNEQ(FieldCacheCreation1hTokens, v))
  1012. }
  1013. // CacheCreation1hTokensIn applies the In predicate on the "cache_creation_1h_tokens" field.
  1014. func CacheCreation1hTokensIn(vs ...int) predicate.UsageLog {
  1015. return predicate.UsageLog(sql.FieldIn(FieldCacheCreation1hTokens, vs...))
  1016. }
  1017. // CacheCreation1hTokensNotIn applies the NotIn predicate on the "cache_creation_1h_tokens" field.
  1018. func CacheCreation1hTokensNotIn(vs ...int) predicate.UsageLog {
  1019. return predicate.UsageLog(sql.FieldNotIn(FieldCacheCreation1hTokens, vs...))
  1020. }
  1021. // CacheCreation1hTokensGT applies the GT predicate on the "cache_creation_1h_tokens" field.
  1022. func CacheCreation1hTokensGT(v int) predicate.UsageLog {
  1023. return predicate.UsageLog(sql.FieldGT(FieldCacheCreation1hTokens, v))
  1024. }
  1025. // CacheCreation1hTokensGTE applies the GTE predicate on the "cache_creation_1h_tokens" field.
  1026. func CacheCreation1hTokensGTE(v int) predicate.UsageLog {
  1027. return predicate.UsageLog(sql.FieldGTE(FieldCacheCreation1hTokens, v))
  1028. }
  1029. // CacheCreation1hTokensLT applies the LT predicate on the "cache_creation_1h_tokens" field.
  1030. func CacheCreation1hTokensLT(v int) predicate.UsageLog {
  1031. return predicate.UsageLog(sql.FieldLT(FieldCacheCreation1hTokens, v))
  1032. }
  1033. // CacheCreation1hTokensLTE applies the LTE predicate on the "cache_creation_1h_tokens" field.
  1034. func CacheCreation1hTokensLTE(v int) predicate.UsageLog {
  1035. return predicate.UsageLog(sql.FieldLTE(FieldCacheCreation1hTokens, v))
  1036. }
  1037. // InputCostEQ applies the EQ predicate on the "input_cost" field.
  1038. func InputCostEQ(v float64) predicate.UsageLog {
  1039. return predicate.UsageLog(sql.FieldEQ(FieldInputCost, v))
  1040. }
  1041. // InputCostNEQ applies the NEQ predicate on the "input_cost" field.
  1042. func InputCostNEQ(v float64) predicate.UsageLog {
  1043. return predicate.UsageLog(sql.FieldNEQ(FieldInputCost, v))
  1044. }
  1045. // InputCostIn applies the In predicate on the "input_cost" field.
  1046. func InputCostIn(vs ...float64) predicate.UsageLog {
  1047. return predicate.UsageLog(sql.FieldIn(FieldInputCost, vs...))
  1048. }
  1049. // InputCostNotIn applies the NotIn predicate on the "input_cost" field.
  1050. func InputCostNotIn(vs ...float64) predicate.UsageLog {
  1051. return predicate.UsageLog(sql.FieldNotIn(FieldInputCost, vs...))
  1052. }
  1053. // InputCostGT applies the GT predicate on the "input_cost" field.
  1054. func InputCostGT(v float64) predicate.UsageLog {
  1055. return predicate.UsageLog(sql.FieldGT(FieldInputCost, v))
  1056. }
  1057. // InputCostGTE applies the GTE predicate on the "input_cost" field.
  1058. func InputCostGTE(v float64) predicate.UsageLog {
  1059. return predicate.UsageLog(sql.FieldGTE(FieldInputCost, v))
  1060. }
  1061. // InputCostLT applies the LT predicate on the "input_cost" field.
  1062. func InputCostLT(v float64) predicate.UsageLog {
  1063. return predicate.UsageLog(sql.FieldLT(FieldInputCost, v))
  1064. }
  1065. // InputCostLTE applies the LTE predicate on the "input_cost" field.
  1066. func InputCostLTE(v float64) predicate.UsageLog {
  1067. return predicate.UsageLog(sql.FieldLTE(FieldInputCost, v))
  1068. }
  1069. // OutputCostEQ applies the EQ predicate on the "output_cost" field.
  1070. func OutputCostEQ(v float64) predicate.UsageLog {
  1071. return predicate.UsageLog(sql.FieldEQ(FieldOutputCost, v))
  1072. }
  1073. // OutputCostNEQ applies the NEQ predicate on the "output_cost" field.
  1074. func OutputCostNEQ(v float64) predicate.UsageLog {
  1075. return predicate.UsageLog(sql.FieldNEQ(FieldOutputCost, v))
  1076. }
  1077. // OutputCostIn applies the In predicate on the "output_cost" field.
  1078. func OutputCostIn(vs ...float64) predicate.UsageLog {
  1079. return predicate.UsageLog(sql.FieldIn(FieldOutputCost, vs...))
  1080. }
  1081. // OutputCostNotIn applies the NotIn predicate on the "output_cost" field.
  1082. func OutputCostNotIn(vs ...float64) predicate.UsageLog {
  1083. return predicate.UsageLog(sql.FieldNotIn(FieldOutputCost, vs...))
  1084. }
  1085. // OutputCostGT applies the GT predicate on the "output_cost" field.
  1086. func OutputCostGT(v float64) predicate.UsageLog {
  1087. return predicate.UsageLog(sql.FieldGT(FieldOutputCost, v))
  1088. }
  1089. // OutputCostGTE applies the GTE predicate on the "output_cost" field.
  1090. func OutputCostGTE(v float64) predicate.UsageLog {
  1091. return predicate.UsageLog(sql.FieldGTE(FieldOutputCost, v))
  1092. }
  1093. // OutputCostLT applies the LT predicate on the "output_cost" field.
  1094. func OutputCostLT(v float64) predicate.UsageLog {
  1095. return predicate.UsageLog(sql.FieldLT(FieldOutputCost, v))
  1096. }
  1097. // OutputCostLTE applies the LTE predicate on the "output_cost" field.
  1098. func OutputCostLTE(v float64) predicate.UsageLog {
  1099. return predicate.UsageLog(sql.FieldLTE(FieldOutputCost, v))
  1100. }
  1101. // CacheCreationCostEQ applies the EQ predicate on the "cache_creation_cost" field.
  1102. func CacheCreationCostEQ(v float64) predicate.UsageLog {
  1103. return predicate.UsageLog(sql.FieldEQ(FieldCacheCreationCost, v))
  1104. }
  1105. // CacheCreationCostNEQ applies the NEQ predicate on the "cache_creation_cost" field.
  1106. func CacheCreationCostNEQ(v float64) predicate.UsageLog {
  1107. return predicate.UsageLog(sql.FieldNEQ(FieldCacheCreationCost, v))
  1108. }
  1109. // CacheCreationCostIn applies the In predicate on the "cache_creation_cost" field.
  1110. func CacheCreationCostIn(vs ...float64) predicate.UsageLog {
  1111. return predicate.UsageLog(sql.FieldIn(FieldCacheCreationCost, vs...))
  1112. }
  1113. // CacheCreationCostNotIn applies the NotIn predicate on the "cache_creation_cost" field.
  1114. func CacheCreationCostNotIn(vs ...float64) predicate.UsageLog {
  1115. return predicate.UsageLog(sql.FieldNotIn(FieldCacheCreationCost, vs...))
  1116. }
  1117. // CacheCreationCostGT applies the GT predicate on the "cache_creation_cost" field.
  1118. func CacheCreationCostGT(v float64) predicate.UsageLog {
  1119. return predicate.UsageLog(sql.FieldGT(FieldCacheCreationCost, v))
  1120. }
  1121. // CacheCreationCostGTE applies the GTE predicate on the "cache_creation_cost" field.
  1122. func CacheCreationCostGTE(v float64) predicate.UsageLog {
  1123. return predicate.UsageLog(sql.FieldGTE(FieldCacheCreationCost, v))
  1124. }
  1125. // CacheCreationCostLT applies the LT predicate on the "cache_creation_cost" field.
  1126. func CacheCreationCostLT(v float64) predicate.UsageLog {
  1127. return predicate.UsageLog(sql.FieldLT(FieldCacheCreationCost, v))
  1128. }
  1129. // CacheCreationCostLTE applies the LTE predicate on the "cache_creation_cost" field.
  1130. func CacheCreationCostLTE(v float64) predicate.UsageLog {
  1131. return predicate.UsageLog(sql.FieldLTE(FieldCacheCreationCost, v))
  1132. }
  1133. // CacheReadCostEQ applies the EQ predicate on the "cache_read_cost" field.
  1134. func CacheReadCostEQ(v float64) predicate.UsageLog {
  1135. return predicate.UsageLog(sql.FieldEQ(FieldCacheReadCost, v))
  1136. }
  1137. // CacheReadCostNEQ applies the NEQ predicate on the "cache_read_cost" field.
  1138. func CacheReadCostNEQ(v float64) predicate.UsageLog {
  1139. return predicate.UsageLog(sql.FieldNEQ(FieldCacheReadCost, v))
  1140. }
  1141. // CacheReadCostIn applies the In predicate on the "cache_read_cost" field.
  1142. func CacheReadCostIn(vs ...float64) predicate.UsageLog {
  1143. return predicate.UsageLog(sql.FieldIn(FieldCacheReadCost, vs...))
  1144. }
  1145. // CacheReadCostNotIn applies the NotIn predicate on the "cache_read_cost" field.
  1146. func CacheReadCostNotIn(vs ...float64) predicate.UsageLog {
  1147. return predicate.UsageLog(sql.FieldNotIn(FieldCacheReadCost, vs...))
  1148. }
  1149. // CacheReadCostGT applies the GT predicate on the "cache_read_cost" field.
  1150. func CacheReadCostGT(v float64) predicate.UsageLog {
  1151. return predicate.UsageLog(sql.FieldGT(FieldCacheReadCost, v))
  1152. }
  1153. // CacheReadCostGTE applies the GTE predicate on the "cache_read_cost" field.
  1154. func CacheReadCostGTE(v float64) predicate.UsageLog {
  1155. return predicate.UsageLog(sql.FieldGTE(FieldCacheReadCost, v))
  1156. }
  1157. // CacheReadCostLT applies the LT predicate on the "cache_read_cost" field.
  1158. func CacheReadCostLT(v float64) predicate.UsageLog {
  1159. return predicate.UsageLog(sql.FieldLT(FieldCacheReadCost, v))
  1160. }
  1161. // CacheReadCostLTE applies the LTE predicate on the "cache_read_cost" field.
  1162. func CacheReadCostLTE(v float64) predicate.UsageLog {
  1163. return predicate.UsageLog(sql.FieldLTE(FieldCacheReadCost, v))
  1164. }
  1165. // TotalCostEQ applies the EQ predicate on the "total_cost" field.
  1166. func TotalCostEQ(v float64) predicate.UsageLog {
  1167. return predicate.UsageLog(sql.FieldEQ(FieldTotalCost, v))
  1168. }
  1169. // TotalCostNEQ applies the NEQ predicate on the "total_cost" field.
  1170. func TotalCostNEQ(v float64) predicate.UsageLog {
  1171. return predicate.UsageLog(sql.FieldNEQ(FieldTotalCost, v))
  1172. }
  1173. // TotalCostIn applies the In predicate on the "total_cost" field.
  1174. func TotalCostIn(vs ...float64) predicate.UsageLog {
  1175. return predicate.UsageLog(sql.FieldIn(FieldTotalCost, vs...))
  1176. }
  1177. // TotalCostNotIn applies the NotIn predicate on the "total_cost" field.
  1178. func TotalCostNotIn(vs ...float64) predicate.UsageLog {
  1179. return predicate.UsageLog(sql.FieldNotIn(FieldTotalCost, vs...))
  1180. }
  1181. // TotalCostGT applies the GT predicate on the "total_cost" field.
  1182. func TotalCostGT(v float64) predicate.UsageLog {
  1183. return predicate.UsageLog(sql.FieldGT(FieldTotalCost, v))
  1184. }
  1185. // TotalCostGTE applies the GTE predicate on the "total_cost" field.
  1186. func TotalCostGTE(v float64) predicate.UsageLog {
  1187. return predicate.UsageLog(sql.FieldGTE(FieldTotalCost, v))
  1188. }
  1189. // TotalCostLT applies the LT predicate on the "total_cost" field.
  1190. func TotalCostLT(v float64) predicate.UsageLog {
  1191. return predicate.UsageLog(sql.FieldLT(FieldTotalCost, v))
  1192. }
  1193. // TotalCostLTE applies the LTE predicate on the "total_cost" field.
  1194. func TotalCostLTE(v float64) predicate.UsageLog {
  1195. return predicate.UsageLog(sql.FieldLTE(FieldTotalCost, v))
  1196. }
  1197. // ActualCostEQ applies the EQ predicate on the "actual_cost" field.
  1198. func ActualCostEQ(v float64) predicate.UsageLog {
  1199. return predicate.UsageLog(sql.FieldEQ(FieldActualCost, v))
  1200. }
  1201. // ActualCostNEQ applies the NEQ predicate on the "actual_cost" field.
  1202. func ActualCostNEQ(v float64) predicate.UsageLog {
  1203. return predicate.UsageLog(sql.FieldNEQ(FieldActualCost, v))
  1204. }
  1205. // ActualCostIn applies the In predicate on the "actual_cost" field.
  1206. func ActualCostIn(vs ...float64) predicate.UsageLog {
  1207. return predicate.UsageLog(sql.FieldIn(FieldActualCost, vs...))
  1208. }
  1209. // ActualCostNotIn applies the NotIn predicate on the "actual_cost" field.
  1210. func ActualCostNotIn(vs ...float64) predicate.UsageLog {
  1211. return predicate.UsageLog(sql.FieldNotIn(FieldActualCost, vs...))
  1212. }
  1213. // ActualCostGT applies the GT predicate on the "actual_cost" field.
  1214. func ActualCostGT(v float64) predicate.UsageLog {
  1215. return predicate.UsageLog(sql.FieldGT(FieldActualCost, v))
  1216. }
  1217. // ActualCostGTE applies the GTE predicate on the "actual_cost" field.
  1218. func ActualCostGTE(v float64) predicate.UsageLog {
  1219. return predicate.UsageLog(sql.FieldGTE(FieldActualCost, v))
  1220. }
  1221. // ActualCostLT applies the LT predicate on the "actual_cost" field.
  1222. func ActualCostLT(v float64) predicate.UsageLog {
  1223. return predicate.UsageLog(sql.FieldLT(FieldActualCost, v))
  1224. }
  1225. // ActualCostLTE applies the LTE predicate on the "actual_cost" field.
  1226. func ActualCostLTE(v float64) predicate.UsageLog {
  1227. return predicate.UsageLog(sql.FieldLTE(FieldActualCost, v))
  1228. }
  1229. // RateMultiplierEQ applies the EQ predicate on the "rate_multiplier" field.
  1230. func RateMultiplierEQ(v float64) predicate.UsageLog {
  1231. return predicate.UsageLog(sql.FieldEQ(FieldRateMultiplier, v))
  1232. }
  1233. // RateMultiplierNEQ applies the NEQ predicate on the "rate_multiplier" field.
  1234. func RateMultiplierNEQ(v float64) predicate.UsageLog {
  1235. return predicate.UsageLog(sql.FieldNEQ(FieldRateMultiplier, v))
  1236. }
  1237. // RateMultiplierIn applies the In predicate on the "rate_multiplier" field.
  1238. func RateMultiplierIn(vs ...float64) predicate.UsageLog {
  1239. return predicate.UsageLog(sql.FieldIn(FieldRateMultiplier, vs...))
  1240. }
  1241. // RateMultiplierNotIn applies the NotIn predicate on the "rate_multiplier" field.
  1242. func RateMultiplierNotIn(vs ...float64) predicate.UsageLog {
  1243. return predicate.UsageLog(sql.FieldNotIn(FieldRateMultiplier, vs...))
  1244. }
  1245. // RateMultiplierGT applies the GT predicate on the "rate_multiplier" field.
  1246. func RateMultiplierGT(v float64) predicate.UsageLog {
  1247. return predicate.UsageLog(sql.FieldGT(FieldRateMultiplier, v))
  1248. }
  1249. // RateMultiplierGTE applies the GTE predicate on the "rate_multiplier" field.
  1250. func RateMultiplierGTE(v float64) predicate.UsageLog {
  1251. return predicate.UsageLog(sql.FieldGTE(FieldRateMultiplier, v))
  1252. }
  1253. // RateMultiplierLT applies the LT predicate on the "rate_multiplier" field.
  1254. func RateMultiplierLT(v float64) predicate.UsageLog {
  1255. return predicate.UsageLog(sql.FieldLT(FieldRateMultiplier, v))
  1256. }
  1257. // RateMultiplierLTE applies the LTE predicate on the "rate_multiplier" field.
  1258. func RateMultiplierLTE(v float64) predicate.UsageLog {
  1259. return predicate.UsageLog(sql.FieldLTE(FieldRateMultiplier, v))
  1260. }
  1261. // LongContextBillingAppliedEQ applies the EQ predicate on the "long_context_billing_applied" field.
  1262. func LongContextBillingAppliedEQ(v bool) predicate.UsageLog {
  1263. return predicate.UsageLog(sql.FieldEQ(FieldLongContextBillingApplied, v))
  1264. }
  1265. // LongContextBillingAppliedNEQ applies the NEQ predicate on the "long_context_billing_applied" field.
  1266. func LongContextBillingAppliedNEQ(v bool) predicate.UsageLog {
  1267. return predicate.UsageLog(sql.FieldNEQ(FieldLongContextBillingApplied, v))
  1268. }
  1269. // AccountRateMultiplierEQ applies the EQ predicate on the "account_rate_multiplier" field.
  1270. func AccountRateMultiplierEQ(v float64) predicate.UsageLog {
  1271. return predicate.UsageLog(sql.FieldEQ(FieldAccountRateMultiplier, v))
  1272. }
  1273. // AccountRateMultiplierNEQ applies the NEQ predicate on the "account_rate_multiplier" field.
  1274. func AccountRateMultiplierNEQ(v float64) predicate.UsageLog {
  1275. return predicate.UsageLog(sql.FieldNEQ(FieldAccountRateMultiplier, v))
  1276. }
  1277. // AccountRateMultiplierIn applies the In predicate on the "account_rate_multiplier" field.
  1278. func AccountRateMultiplierIn(vs ...float64) predicate.UsageLog {
  1279. return predicate.UsageLog(sql.FieldIn(FieldAccountRateMultiplier, vs...))
  1280. }
  1281. // AccountRateMultiplierNotIn applies the NotIn predicate on the "account_rate_multiplier" field.
  1282. func AccountRateMultiplierNotIn(vs ...float64) predicate.UsageLog {
  1283. return predicate.UsageLog(sql.FieldNotIn(FieldAccountRateMultiplier, vs...))
  1284. }
  1285. // AccountRateMultiplierGT applies the GT predicate on the "account_rate_multiplier" field.
  1286. func AccountRateMultiplierGT(v float64) predicate.UsageLog {
  1287. return predicate.UsageLog(sql.FieldGT(FieldAccountRateMultiplier, v))
  1288. }
  1289. // AccountRateMultiplierGTE applies the GTE predicate on the "account_rate_multiplier" field.
  1290. func AccountRateMultiplierGTE(v float64) predicate.UsageLog {
  1291. return predicate.UsageLog(sql.FieldGTE(FieldAccountRateMultiplier, v))
  1292. }
  1293. // AccountRateMultiplierLT applies the LT predicate on the "account_rate_multiplier" field.
  1294. func AccountRateMultiplierLT(v float64) predicate.UsageLog {
  1295. return predicate.UsageLog(sql.FieldLT(FieldAccountRateMultiplier, v))
  1296. }
  1297. // AccountRateMultiplierLTE applies the LTE predicate on the "account_rate_multiplier" field.
  1298. func AccountRateMultiplierLTE(v float64) predicate.UsageLog {
  1299. return predicate.UsageLog(sql.FieldLTE(FieldAccountRateMultiplier, v))
  1300. }
  1301. // AccountRateMultiplierIsNil applies the IsNil predicate on the "account_rate_multiplier" field.
  1302. func AccountRateMultiplierIsNil() predicate.UsageLog {
  1303. return predicate.UsageLog(sql.FieldIsNull(FieldAccountRateMultiplier))
  1304. }
  1305. // AccountRateMultiplierNotNil applies the NotNil predicate on the "account_rate_multiplier" field.
  1306. func AccountRateMultiplierNotNil() predicate.UsageLog {
  1307. return predicate.UsageLog(sql.FieldNotNull(FieldAccountRateMultiplier))
  1308. }
  1309. // BillingTypeEQ applies the EQ predicate on the "billing_type" field.
  1310. func BillingTypeEQ(v int8) predicate.UsageLog {
  1311. return predicate.UsageLog(sql.FieldEQ(FieldBillingType, v))
  1312. }
  1313. // BillingTypeNEQ applies the NEQ predicate on the "billing_type" field.
  1314. func BillingTypeNEQ(v int8) predicate.UsageLog {
  1315. return predicate.UsageLog(sql.FieldNEQ(FieldBillingType, v))
  1316. }
  1317. // BillingTypeIn applies the In predicate on the "billing_type" field.
  1318. func BillingTypeIn(vs ...int8) predicate.UsageLog {
  1319. return predicate.UsageLog(sql.FieldIn(FieldBillingType, vs...))
  1320. }
  1321. // BillingTypeNotIn applies the NotIn predicate on the "billing_type" field.
  1322. func BillingTypeNotIn(vs ...int8) predicate.UsageLog {
  1323. return predicate.UsageLog(sql.FieldNotIn(FieldBillingType, vs...))
  1324. }
  1325. // BillingTypeGT applies the GT predicate on the "billing_type" field.
  1326. func BillingTypeGT(v int8) predicate.UsageLog {
  1327. return predicate.UsageLog(sql.FieldGT(FieldBillingType, v))
  1328. }
  1329. // BillingTypeGTE applies the GTE predicate on the "billing_type" field.
  1330. func BillingTypeGTE(v int8) predicate.UsageLog {
  1331. return predicate.UsageLog(sql.FieldGTE(FieldBillingType, v))
  1332. }
  1333. // BillingTypeLT applies the LT predicate on the "billing_type" field.
  1334. func BillingTypeLT(v int8) predicate.UsageLog {
  1335. return predicate.UsageLog(sql.FieldLT(FieldBillingType, v))
  1336. }
  1337. // BillingTypeLTE applies the LTE predicate on the "billing_type" field.
  1338. func BillingTypeLTE(v int8) predicate.UsageLog {
  1339. return predicate.UsageLog(sql.FieldLTE(FieldBillingType, v))
  1340. }
  1341. // StreamEQ applies the EQ predicate on the "stream" field.
  1342. func StreamEQ(v bool) predicate.UsageLog {
  1343. return predicate.UsageLog(sql.FieldEQ(FieldStream, v))
  1344. }
  1345. // StreamNEQ applies the NEQ predicate on the "stream" field.
  1346. func StreamNEQ(v bool) predicate.UsageLog {
  1347. return predicate.UsageLog(sql.FieldNEQ(FieldStream, v))
  1348. }
  1349. // DurationMsEQ applies the EQ predicate on the "duration_ms" field.
  1350. func DurationMsEQ(v int) predicate.UsageLog {
  1351. return predicate.UsageLog(sql.FieldEQ(FieldDurationMs, v))
  1352. }
  1353. // DurationMsNEQ applies the NEQ predicate on the "duration_ms" field.
  1354. func DurationMsNEQ(v int) predicate.UsageLog {
  1355. return predicate.UsageLog(sql.FieldNEQ(FieldDurationMs, v))
  1356. }
  1357. // DurationMsIn applies the In predicate on the "duration_ms" field.
  1358. func DurationMsIn(vs ...int) predicate.UsageLog {
  1359. return predicate.UsageLog(sql.FieldIn(FieldDurationMs, vs...))
  1360. }
  1361. // DurationMsNotIn applies the NotIn predicate on the "duration_ms" field.
  1362. func DurationMsNotIn(vs ...int) predicate.UsageLog {
  1363. return predicate.UsageLog(sql.FieldNotIn(FieldDurationMs, vs...))
  1364. }
  1365. // DurationMsGT applies the GT predicate on the "duration_ms" field.
  1366. func DurationMsGT(v int) predicate.UsageLog {
  1367. return predicate.UsageLog(sql.FieldGT(FieldDurationMs, v))
  1368. }
  1369. // DurationMsGTE applies the GTE predicate on the "duration_ms" field.
  1370. func DurationMsGTE(v int) predicate.UsageLog {
  1371. return predicate.UsageLog(sql.FieldGTE(FieldDurationMs, v))
  1372. }
  1373. // DurationMsLT applies the LT predicate on the "duration_ms" field.
  1374. func DurationMsLT(v int) predicate.UsageLog {
  1375. return predicate.UsageLog(sql.FieldLT(FieldDurationMs, v))
  1376. }
  1377. // DurationMsLTE applies the LTE predicate on the "duration_ms" field.
  1378. func DurationMsLTE(v int) predicate.UsageLog {
  1379. return predicate.UsageLog(sql.FieldLTE(FieldDurationMs, v))
  1380. }
  1381. // DurationMsIsNil applies the IsNil predicate on the "duration_ms" field.
  1382. func DurationMsIsNil() predicate.UsageLog {
  1383. return predicate.UsageLog(sql.FieldIsNull(FieldDurationMs))
  1384. }
  1385. // DurationMsNotNil applies the NotNil predicate on the "duration_ms" field.
  1386. func DurationMsNotNil() predicate.UsageLog {
  1387. return predicate.UsageLog(sql.FieldNotNull(FieldDurationMs))
  1388. }
  1389. // FirstTokenMsEQ applies the EQ predicate on the "first_token_ms" field.
  1390. func FirstTokenMsEQ(v int) predicate.UsageLog {
  1391. return predicate.UsageLog(sql.FieldEQ(FieldFirstTokenMs, v))
  1392. }
  1393. // FirstTokenMsNEQ applies the NEQ predicate on the "first_token_ms" field.
  1394. func FirstTokenMsNEQ(v int) predicate.UsageLog {
  1395. return predicate.UsageLog(sql.FieldNEQ(FieldFirstTokenMs, v))
  1396. }
  1397. // FirstTokenMsIn applies the In predicate on the "first_token_ms" field.
  1398. func FirstTokenMsIn(vs ...int) predicate.UsageLog {
  1399. return predicate.UsageLog(sql.FieldIn(FieldFirstTokenMs, vs...))
  1400. }
  1401. // FirstTokenMsNotIn applies the NotIn predicate on the "first_token_ms" field.
  1402. func FirstTokenMsNotIn(vs ...int) predicate.UsageLog {
  1403. return predicate.UsageLog(sql.FieldNotIn(FieldFirstTokenMs, vs...))
  1404. }
  1405. // FirstTokenMsGT applies the GT predicate on the "first_token_ms" field.
  1406. func FirstTokenMsGT(v int) predicate.UsageLog {
  1407. return predicate.UsageLog(sql.FieldGT(FieldFirstTokenMs, v))
  1408. }
  1409. // FirstTokenMsGTE applies the GTE predicate on the "first_token_ms" field.
  1410. func FirstTokenMsGTE(v int) predicate.UsageLog {
  1411. return predicate.UsageLog(sql.FieldGTE(FieldFirstTokenMs, v))
  1412. }
  1413. // FirstTokenMsLT applies the LT predicate on the "first_token_ms" field.
  1414. func FirstTokenMsLT(v int) predicate.UsageLog {
  1415. return predicate.UsageLog(sql.FieldLT(FieldFirstTokenMs, v))
  1416. }
  1417. // FirstTokenMsLTE applies the LTE predicate on the "first_token_ms" field.
  1418. func FirstTokenMsLTE(v int) predicate.UsageLog {
  1419. return predicate.UsageLog(sql.FieldLTE(FieldFirstTokenMs, v))
  1420. }
  1421. // FirstTokenMsIsNil applies the IsNil predicate on the "first_token_ms" field.
  1422. func FirstTokenMsIsNil() predicate.UsageLog {
  1423. return predicate.UsageLog(sql.FieldIsNull(FieldFirstTokenMs))
  1424. }
  1425. // FirstTokenMsNotNil applies the NotNil predicate on the "first_token_ms" field.
  1426. func FirstTokenMsNotNil() predicate.UsageLog {
  1427. return predicate.UsageLog(sql.FieldNotNull(FieldFirstTokenMs))
  1428. }
  1429. // UserAgentEQ applies the EQ predicate on the "user_agent" field.
  1430. func UserAgentEQ(v string) predicate.UsageLog {
  1431. return predicate.UsageLog(sql.FieldEQ(FieldUserAgent, v))
  1432. }
  1433. // UserAgentNEQ applies the NEQ predicate on the "user_agent" field.
  1434. func UserAgentNEQ(v string) predicate.UsageLog {
  1435. return predicate.UsageLog(sql.FieldNEQ(FieldUserAgent, v))
  1436. }
  1437. // UserAgentIn applies the In predicate on the "user_agent" field.
  1438. func UserAgentIn(vs ...string) predicate.UsageLog {
  1439. return predicate.UsageLog(sql.FieldIn(FieldUserAgent, vs...))
  1440. }
  1441. // UserAgentNotIn applies the NotIn predicate on the "user_agent" field.
  1442. func UserAgentNotIn(vs ...string) predicate.UsageLog {
  1443. return predicate.UsageLog(sql.FieldNotIn(FieldUserAgent, vs...))
  1444. }
  1445. // UserAgentGT applies the GT predicate on the "user_agent" field.
  1446. func UserAgentGT(v string) predicate.UsageLog {
  1447. return predicate.UsageLog(sql.FieldGT(FieldUserAgent, v))
  1448. }
  1449. // UserAgentGTE applies the GTE predicate on the "user_agent" field.
  1450. func UserAgentGTE(v string) predicate.UsageLog {
  1451. return predicate.UsageLog(sql.FieldGTE(FieldUserAgent, v))
  1452. }
  1453. // UserAgentLT applies the LT predicate on the "user_agent" field.
  1454. func UserAgentLT(v string) predicate.UsageLog {
  1455. return predicate.UsageLog(sql.FieldLT(FieldUserAgent, v))
  1456. }
  1457. // UserAgentLTE applies the LTE predicate on the "user_agent" field.
  1458. func UserAgentLTE(v string) predicate.UsageLog {
  1459. return predicate.UsageLog(sql.FieldLTE(FieldUserAgent, v))
  1460. }
  1461. // UserAgentContains applies the Contains predicate on the "user_agent" field.
  1462. func UserAgentContains(v string) predicate.UsageLog {
  1463. return predicate.UsageLog(sql.FieldContains(FieldUserAgent, v))
  1464. }
  1465. // UserAgentHasPrefix applies the HasPrefix predicate on the "user_agent" field.
  1466. func UserAgentHasPrefix(v string) predicate.UsageLog {
  1467. return predicate.UsageLog(sql.FieldHasPrefix(FieldUserAgent, v))
  1468. }
  1469. // UserAgentHasSuffix applies the HasSuffix predicate on the "user_agent" field.
  1470. func UserAgentHasSuffix(v string) predicate.UsageLog {
  1471. return predicate.UsageLog(sql.FieldHasSuffix(FieldUserAgent, v))
  1472. }
  1473. // UserAgentIsNil applies the IsNil predicate on the "user_agent" field.
  1474. func UserAgentIsNil() predicate.UsageLog {
  1475. return predicate.UsageLog(sql.FieldIsNull(FieldUserAgent))
  1476. }
  1477. // UserAgentNotNil applies the NotNil predicate on the "user_agent" field.
  1478. func UserAgentNotNil() predicate.UsageLog {
  1479. return predicate.UsageLog(sql.FieldNotNull(FieldUserAgent))
  1480. }
  1481. // UserAgentEqualFold applies the EqualFold predicate on the "user_agent" field.
  1482. func UserAgentEqualFold(v string) predicate.UsageLog {
  1483. return predicate.UsageLog(sql.FieldEqualFold(FieldUserAgent, v))
  1484. }
  1485. // UserAgentContainsFold applies the ContainsFold predicate on the "user_agent" field.
  1486. func UserAgentContainsFold(v string) predicate.UsageLog {
  1487. return predicate.UsageLog(sql.FieldContainsFold(FieldUserAgent, v))
  1488. }
  1489. // IPAddressEQ applies the EQ predicate on the "ip_address" field.
  1490. func IPAddressEQ(v string) predicate.UsageLog {
  1491. return predicate.UsageLog(sql.FieldEQ(FieldIPAddress, v))
  1492. }
  1493. // IPAddressNEQ applies the NEQ predicate on the "ip_address" field.
  1494. func IPAddressNEQ(v string) predicate.UsageLog {
  1495. return predicate.UsageLog(sql.FieldNEQ(FieldIPAddress, v))
  1496. }
  1497. // IPAddressIn applies the In predicate on the "ip_address" field.
  1498. func IPAddressIn(vs ...string) predicate.UsageLog {
  1499. return predicate.UsageLog(sql.FieldIn(FieldIPAddress, vs...))
  1500. }
  1501. // IPAddressNotIn applies the NotIn predicate on the "ip_address" field.
  1502. func IPAddressNotIn(vs ...string) predicate.UsageLog {
  1503. return predicate.UsageLog(sql.FieldNotIn(FieldIPAddress, vs...))
  1504. }
  1505. // IPAddressGT applies the GT predicate on the "ip_address" field.
  1506. func IPAddressGT(v string) predicate.UsageLog {
  1507. return predicate.UsageLog(sql.FieldGT(FieldIPAddress, v))
  1508. }
  1509. // IPAddressGTE applies the GTE predicate on the "ip_address" field.
  1510. func IPAddressGTE(v string) predicate.UsageLog {
  1511. return predicate.UsageLog(sql.FieldGTE(FieldIPAddress, v))
  1512. }
  1513. // IPAddressLT applies the LT predicate on the "ip_address" field.
  1514. func IPAddressLT(v string) predicate.UsageLog {
  1515. return predicate.UsageLog(sql.FieldLT(FieldIPAddress, v))
  1516. }
  1517. // IPAddressLTE applies the LTE predicate on the "ip_address" field.
  1518. func IPAddressLTE(v string) predicate.UsageLog {
  1519. return predicate.UsageLog(sql.FieldLTE(FieldIPAddress, v))
  1520. }
  1521. // IPAddressContains applies the Contains predicate on the "ip_address" field.
  1522. func IPAddressContains(v string) predicate.UsageLog {
  1523. return predicate.UsageLog(sql.FieldContains(FieldIPAddress, v))
  1524. }
  1525. // IPAddressHasPrefix applies the HasPrefix predicate on the "ip_address" field.
  1526. func IPAddressHasPrefix(v string) predicate.UsageLog {
  1527. return predicate.UsageLog(sql.FieldHasPrefix(FieldIPAddress, v))
  1528. }
  1529. // IPAddressHasSuffix applies the HasSuffix predicate on the "ip_address" field.
  1530. func IPAddressHasSuffix(v string) predicate.UsageLog {
  1531. return predicate.UsageLog(sql.FieldHasSuffix(FieldIPAddress, v))
  1532. }
  1533. // IPAddressIsNil applies the IsNil predicate on the "ip_address" field.
  1534. func IPAddressIsNil() predicate.UsageLog {
  1535. return predicate.UsageLog(sql.FieldIsNull(FieldIPAddress))
  1536. }
  1537. // IPAddressNotNil applies the NotNil predicate on the "ip_address" field.
  1538. func IPAddressNotNil() predicate.UsageLog {
  1539. return predicate.UsageLog(sql.FieldNotNull(FieldIPAddress))
  1540. }
  1541. // IPAddressEqualFold applies the EqualFold predicate on the "ip_address" field.
  1542. func IPAddressEqualFold(v string) predicate.UsageLog {
  1543. return predicate.UsageLog(sql.FieldEqualFold(FieldIPAddress, v))
  1544. }
  1545. // IPAddressContainsFold applies the ContainsFold predicate on the "ip_address" field.
  1546. func IPAddressContainsFold(v string) predicate.UsageLog {
  1547. return predicate.UsageLog(sql.FieldContainsFold(FieldIPAddress, v))
  1548. }
  1549. // ImageCountEQ applies the EQ predicate on the "image_count" field.
  1550. func ImageCountEQ(v int) predicate.UsageLog {
  1551. return predicate.UsageLog(sql.FieldEQ(FieldImageCount, v))
  1552. }
  1553. // ImageCountNEQ applies the NEQ predicate on the "image_count" field.
  1554. func ImageCountNEQ(v int) predicate.UsageLog {
  1555. return predicate.UsageLog(sql.FieldNEQ(FieldImageCount, v))
  1556. }
  1557. // ImageCountIn applies the In predicate on the "image_count" field.
  1558. func ImageCountIn(vs ...int) predicate.UsageLog {
  1559. return predicate.UsageLog(sql.FieldIn(FieldImageCount, vs...))
  1560. }
  1561. // ImageCountNotIn applies the NotIn predicate on the "image_count" field.
  1562. func ImageCountNotIn(vs ...int) predicate.UsageLog {
  1563. return predicate.UsageLog(sql.FieldNotIn(FieldImageCount, vs...))
  1564. }
  1565. // ImageCountGT applies the GT predicate on the "image_count" field.
  1566. func ImageCountGT(v int) predicate.UsageLog {
  1567. return predicate.UsageLog(sql.FieldGT(FieldImageCount, v))
  1568. }
  1569. // ImageCountGTE applies the GTE predicate on the "image_count" field.
  1570. func ImageCountGTE(v int) predicate.UsageLog {
  1571. return predicate.UsageLog(sql.FieldGTE(FieldImageCount, v))
  1572. }
  1573. // ImageCountLT applies the LT predicate on the "image_count" field.
  1574. func ImageCountLT(v int) predicate.UsageLog {
  1575. return predicate.UsageLog(sql.FieldLT(FieldImageCount, v))
  1576. }
  1577. // ImageCountLTE applies the LTE predicate on the "image_count" field.
  1578. func ImageCountLTE(v int) predicate.UsageLog {
  1579. return predicate.UsageLog(sql.FieldLTE(FieldImageCount, v))
  1580. }
  1581. // ImageSizeEQ applies the EQ predicate on the "image_size" field.
  1582. func ImageSizeEQ(v string) predicate.UsageLog {
  1583. return predicate.UsageLog(sql.FieldEQ(FieldImageSize, v))
  1584. }
  1585. // ImageSizeNEQ applies the NEQ predicate on the "image_size" field.
  1586. func ImageSizeNEQ(v string) predicate.UsageLog {
  1587. return predicate.UsageLog(sql.FieldNEQ(FieldImageSize, v))
  1588. }
  1589. // ImageSizeIn applies the In predicate on the "image_size" field.
  1590. func ImageSizeIn(vs ...string) predicate.UsageLog {
  1591. return predicate.UsageLog(sql.FieldIn(FieldImageSize, vs...))
  1592. }
  1593. // ImageSizeNotIn applies the NotIn predicate on the "image_size" field.
  1594. func ImageSizeNotIn(vs ...string) predicate.UsageLog {
  1595. return predicate.UsageLog(sql.FieldNotIn(FieldImageSize, vs...))
  1596. }
  1597. // ImageSizeGT applies the GT predicate on the "image_size" field.
  1598. func ImageSizeGT(v string) predicate.UsageLog {
  1599. return predicate.UsageLog(sql.FieldGT(FieldImageSize, v))
  1600. }
  1601. // ImageSizeGTE applies the GTE predicate on the "image_size" field.
  1602. func ImageSizeGTE(v string) predicate.UsageLog {
  1603. return predicate.UsageLog(sql.FieldGTE(FieldImageSize, v))
  1604. }
  1605. // ImageSizeLT applies the LT predicate on the "image_size" field.
  1606. func ImageSizeLT(v string) predicate.UsageLog {
  1607. return predicate.UsageLog(sql.FieldLT(FieldImageSize, v))
  1608. }
  1609. // ImageSizeLTE applies the LTE predicate on the "image_size" field.
  1610. func ImageSizeLTE(v string) predicate.UsageLog {
  1611. return predicate.UsageLog(sql.FieldLTE(FieldImageSize, v))
  1612. }
  1613. // ImageSizeContains applies the Contains predicate on the "image_size" field.
  1614. func ImageSizeContains(v string) predicate.UsageLog {
  1615. return predicate.UsageLog(sql.FieldContains(FieldImageSize, v))
  1616. }
  1617. // ImageSizeHasPrefix applies the HasPrefix predicate on the "image_size" field.
  1618. func ImageSizeHasPrefix(v string) predicate.UsageLog {
  1619. return predicate.UsageLog(sql.FieldHasPrefix(FieldImageSize, v))
  1620. }
  1621. // ImageSizeHasSuffix applies the HasSuffix predicate on the "image_size" field.
  1622. func ImageSizeHasSuffix(v string) predicate.UsageLog {
  1623. return predicate.UsageLog(sql.FieldHasSuffix(FieldImageSize, v))
  1624. }
  1625. // ImageSizeIsNil applies the IsNil predicate on the "image_size" field.
  1626. func ImageSizeIsNil() predicate.UsageLog {
  1627. return predicate.UsageLog(sql.FieldIsNull(FieldImageSize))
  1628. }
  1629. // ImageSizeNotNil applies the NotNil predicate on the "image_size" field.
  1630. func ImageSizeNotNil() predicate.UsageLog {
  1631. return predicate.UsageLog(sql.FieldNotNull(FieldImageSize))
  1632. }
  1633. // ImageSizeEqualFold applies the EqualFold predicate on the "image_size" field.
  1634. func ImageSizeEqualFold(v string) predicate.UsageLog {
  1635. return predicate.UsageLog(sql.FieldEqualFold(FieldImageSize, v))
  1636. }
  1637. // ImageSizeContainsFold applies the ContainsFold predicate on the "image_size" field.
  1638. func ImageSizeContainsFold(v string) predicate.UsageLog {
  1639. return predicate.UsageLog(sql.FieldContainsFold(FieldImageSize, v))
  1640. }
  1641. // ImageInputSizeEQ applies the EQ predicate on the "image_input_size" field.
  1642. func ImageInputSizeEQ(v string) predicate.UsageLog {
  1643. return predicate.UsageLog(sql.FieldEQ(FieldImageInputSize, v))
  1644. }
  1645. // ImageInputSizeNEQ applies the NEQ predicate on the "image_input_size" field.
  1646. func ImageInputSizeNEQ(v string) predicate.UsageLog {
  1647. return predicate.UsageLog(sql.FieldNEQ(FieldImageInputSize, v))
  1648. }
  1649. // ImageInputSizeIn applies the In predicate on the "image_input_size" field.
  1650. func ImageInputSizeIn(vs ...string) predicate.UsageLog {
  1651. return predicate.UsageLog(sql.FieldIn(FieldImageInputSize, vs...))
  1652. }
  1653. // ImageInputSizeNotIn applies the NotIn predicate on the "image_input_size" field.
  1654. func ImageInputSizeNotIn(vs ...string) predicate.UsageLog {
  1655. return predicate.UsageLog(sql.FieldNotIn(FieldImageInputSize, vs...))
  1656. }
  1657. // ImageInputSizeGT applies the GT predicate on the "image_input_size" field.
  1658. func ImageInputSizeGT(v string) predicate.UsageLog {
  1659. return predicate.UsageLog(sql.FieldGT(FieldImageInputSize, v))
  1660. }
  1661. // ImageInputSizeGTE applies the GTE predicate on the "image_input_size" field.
  1662. func ImageInputSizeGTE(v string) predicate.UsageLog {
  1663. return predicate.UsageLog(sql.FieldGTE(FieldImageInputSize, v))
  1664. }
  1665. // ImageInputSizeLT applies the LT predicate on the "image_input_size" field.
  1666. func ImageInputSizeLT(v string) predicate.UsageLog {
  1667. return predicate.UsageLog(sql.FieldLT(FieldImageInputSize, v))
  1668. }
  1669. // ImageInputSizeLTE applies the LTE predicate on the "image_input_size" field.
  1670. func ImageInputSizeLTE(v string) predicate.UsageLog {
  1671. return predicate.UsageLog(sql.FieldLTE(FieldImageInputSize, v))
  1672. }
  1673. // ImageInputSizeContains applies the Contains predicate on the "image_input_size" field.
  1674. func ImageInputSizeContains(v string) predicate.UsageLog {
  1675. return predicate.UsageLog(sql.FieldContains(FieldImageInputSize, v))
  1676. }
  1677. // ImageInputSizeHasPrefix applies the HasPrefix predicate on the "image_input_size" field.
  1678. func ImageInputSizeHasPrefix(v string) predicate.UsageLog {
  1679. return predicate.UsageLog(sql.FieldHasPrefix(FieldImageInputSize, v))
  1680. }
  1681. // ImageInputSizeHasSuffix applies the HasSuffix predicate on the "image_input_size" field.
  1682. func ImageInputSizeHasSuffix(v string) predicate.UsageLog {
  1683. return predicate.UsageLog(sql.FieldHasSuffix(FieldImageInputSize, v))
  1684. }
  1685. // ImageInputSizeIsNil applies the IsNil predicate on the "image_input_size" field.
  1686. func ImageInputSizeIsNil() predicate.UsageLog {
  1687. return predicate.UsageLog(sql.FieldIsNull(FieldImageInputSize))
  1688. }
  1689. // ImageInputSizeNotNil applies the NotNil predicate on the "image_input_size" field.
  1690. func ImageInputSizeNotNil() predicate.UsageLog {
  1691. return predicate.UsageLog(sql.FieldNotNull(FieldImageInputSize))
  1692. }
  1693. // ImageInputSizeEqualFold applies the EqualFold predicate on the "image_input_size" field.
  1694. func ImageInputSizeEqualFold(v string) predicate.UsageLog {
  1695. return predicate.UsageLog(sql.FieldEqualFold(FieldImageInputSize, v))
  1696. }
  1697. // ImageInputSizeContainsFold applies the ContainsFold predicate on the "image_input_size" field.
  1698. func ImageInputSizeContainsFold(v string) predicate.UsageLog {
  1699. return predicate.UsageLog(sql.FieldContainsFold(FieldImageInputSize, v))
  1700. }
  1701. // ImageOutputSizeEQ applies the EQ predicate on the "image_output_size" field.
  1702. func ImageOutputSizeEQ(v string) predicate.UsageLog {
  1703. return predicate.UsageLog(sql.FieldEQ(FieldImageOutputSize, v))
  1704. }
  1705. // ImageOutputSizeNEQ applies the NEQ predicate on the "image_output_size" field.
  1706. func ImageOutputSizeNEQ(v string) predicate.UsageLog {
  1707. return predicate.UsageLog(sql.FieldNEQ(FieldImageOutputSize, v))
  1708. }
  1709. // ImageOutputSizeIn applies the In predicate on the "image_output_size" field.
  1710. func ImageOutputSizeIn(vs ...string) predicate.UsageLog {
  1711. return predicate.UsageLog(sql.FieldIn(FieldImageOutputSize, vs...))
  1712. }
  1713. // ImageOutputSizeNotIn applies the NotIn predicate on the "image_output_size" field.
  1714. func ImageOutputSizeNotIn(vs ...string) predicate.UsageLog {
  1715. return predicate.UsageLog(sql.FieldNotIn(FieldImageOutputSize, vs...))
  1716. }
  1717. // ImageOutputSizeGT applies the GT predicate on the "image_output_size" field.
  1718. func ImageOutputSizeGT(v string) predicate.UsageLog {
  1719. return predicate.UsageLog(sql.FieldGT(FieldImageOutputSize, v))
  1720. }
  1721. // ImageOutputSizeGTE applies the GTE predicate on the "image_output_size" field.
  1722. func ImageOutputSizeGTE(v string) predicate.UsageLog {
  1723. return predicate.UsageLog(sql.FieldGTE(FieldImageOutputSize, v))
  1724. }
  1725. // ImageOutputSizeLT applies the LT predicate on the "image_output_size" field.
  1726. func ImageOutputSizeLT(v string) predicate.UsageLog {
  1727. return predicate.UsageLog(sql.FieldLT(FieldImageOutputSize, v))
  1728. }
  1729. // ImageOutputSizeLTE applies the LTE predicate on the "image_output_size" field.
  1730. func ImageOutputSizeLTE(v string) predicate.UsageLog {
  1731. return predicate.UsageLog(sql.FieldLTE(FieldImageOutputSize, v))
  1732. }
  1733. // ImageOutputSizeContains applies the Contains predicate on the "image_output_size" field.
  1734. func ImageOutputSizeContains(v string) predicate.UsageLog {
  1735. return predicate.UsageLog(sql.FieldContains(FieldImageOutputSize, v))
  1736. }
  1737. // ImageOutputSizeHasPrefix applies the HasPrefix predicate on the "image_output_size" field.
  1738. func ImageOutputSizeHasPrefix(v string) predicate.UsageLog {
  1739. return predicate.UsageLog(sql.FieldHasPrefix(FieldImageOutputSize, v))
  1740. }
  1741. // ImageOutputSizeHasSuffix applies the HasSuffix predicate on the "image_output_size" field.
  1742. func ImageOutputSizeHasSuffix(v string) predicate.UsageLog {
  1743. return predicate.UsageLog(sql.FieldHasSuffix(FieldImageOutputSize, v))
  1744. }
  1745. // ImageOutputSizeIsNil applies the IsNil predicate on the "image_output_size" field.
  1746. func ImageOutputSizeIsNil() predicate.UsageLog {
  1747. return predicate.UsageLog(sql.FieldIsNull(FieldImageOutputSize))
  1748. }
  1749. // ImageOutputSizeNotNil applies the NotNil predicate on the "image_output_size" field.
  1750. func ImageOutputSizeNotNil() predicate.UsageLog {
  1751. return predicate.UsageLog(sql.FieldNotNull(FieldImageOutputSize))
  1752. }
  1753. // ImageOutputSizeEqualFold applies the EqualFold predicate on the "image_output_size" field.
  1754. func ImageOutputSizeEqualFold(v string) predicate.UsageLog {
  1755. return predicate.UsageLog(sql.FieldEqualFold(FieldImageOutputSize, v))
  1756. }
  1757. // ImageOutputSizeContainsFold applies the ContainsFold predicate on the "image_output_size" field.
  1758. func ImageOutputSizeContainsFold(v string) predicate.UsageLog {
  1759. return predicate.UsageLog(sql.FieldContainsFold(FieldImageOutputSize, v))
  1760. }
  1761. // ImageSizeSourceEQ applies the EQ predicate on the "image_size_source" field.
  1762. func ImageSizeSourceEQ(v string) predicate.UsageLog {
  1763. return predicate.UsageLog(sql.FieldEQ(FieldImageSizeSource, v))
  1764. }
  1765. // ImageSizeSourceNEQ applies the NEQ predicate on the "image_size_source" field.
  1766. func ImageSizeSourceNEQ(v string) predicate.UsageLog {
  1767. return predicate.UsageLog(sql.FieldNEQ(FieldImageSizeSource, v))
  1768. }
  1769. // ImageSizeSourceIn applies the In predicate on the "image_size_source" field.
  1770. func ImageSizeSourceIn(vs ...string) predicate.UsageLog {
  1771. return predicate.UsageLog(sql.FieldIn(FieldImageSizeSource, vs...))
  1772. }
  1773. // ImageSizeSourceNotIn applies the NotIn predicate on the "image_size_source" field.
  1774. func ImageSizeSourceNotIn(vs ...string) predicate.UsageLog {
  1775. return predicate.UsageLog(sql.FieldNotIn(FieldImageSizeSource, vs...))
  1776. }
  1777. // ImageSizeSourceGT applies the GT predicate on the "image_size_source" field.
  1778. func ImageSizeSourceGT(v string) predicate.UsageLog {
  1779. return predicate.UsageLog(sql.FieldGT(FieldImageSizeSource, v))
  1780. }
  1781. // ImageSizeSourceGTE applies the GTE predicate on the "image_size_source" field.
  1782. func ImageSizeSourceGTE(v string) predicate.UsageLog {
  1783. return predicate.UsageLog(sql.FieldGTE(FieldImageSizeSource, v))
  1784. }
  1785. // ImageSizeSourceLT applies the LT predicate on the "image_size_source" field.
  1786. func ImageSizeSourceLT(v string) predicate.UsageLog {
  1787. return predicate.UsageLog(sql.FieldLT(FieldImageSizeSource, v))
  1788. }
  1789. // ImageSizeSourceLTE applies the LTE predicate on the "image_size_source" field.
  1790. func ImageSizeSourceLTE(v string) predicate.UsageLog {
  1791. return predicate.UsageLog(sql.FieldLTE(FieldImageSizeSource, v))
  1792. }
  1793. // ImageSizeSourceContains applies the Contains predicate on the "image_size_source" field.
  1794. func ImageSizeSourceContains(v string) predicate.UsageLog {
  1795. return predicate.UsageLog(sql.FieldContains(FieldImageSizeSource, v))
  1796. }
  1797. // ImageSizeSourceHasPrefix applies the HasPrefix predicate on the "image_size_source" field.
  1798. func ImageSizeSourceHasPrefix(v string) predicate.UsageLog {
  1799. return predicate.UsageLog(sql.FieldHasPrefix(FieldImageSizeSource, v))
  1800. }
  1801. // ImageSizeSourceHasSuffix applies the HasSuffix predicate on the "image_size_source" field.
  1802. func ImageSizeSourceHasSuffix(v string) predicate.UsageLog {
  1803. return predicate.UsageLog(sql.FieldHasSuffix(FieldImageSizeSource, v))
  1804. }
  1805. // ImageSizeSourceIsNil applies the IsNil predicate on the "image_size_source" field.
  1806. func ImageSizeSourceIsNil() predicate.UsageLog {
  1807. return predicate.UsageLog(sql.FieldIsNull(FieldImageSizeSource))
  1808. }
  1809. // ImageSizeSourceNotNil applies the NotNil predicate on the "image_size_source" field.
  1810. func ImageSizeSourceNotNil() predicate.UsageLog {
  1811. return predicate.UsageLog(sql.FieldNotNull(FieldImageSizeSource))
  1812. }
  1813. // ImageSizeSourceEqualFold applies the EqualFold predicate on the "image_size_source" field.
  1814. func ImageSizeSourceEqualFold(v string) predicate.UsageLog {
  1815. return predicate.UsageLog(sql.FieldEqualFold(FieldImageSizeSource, v))
  1816. }
  1817. // ImageSizeSourceContainsFold applies the ContainsFold predicate on the "image_size_source" field.
  1818. func ImageSizeSourceContainsFold(v string) predicate.UsageLog {
  1819. return predicate.UsageLog(sql.FieldContainsFold(FieldImageSizeSource, v))
  1820. }
  1821. // ImageSizeBreakdownIsNil applies the IsNil predicate on the "image_size_breakdown" field.
  1822. func ImageSizeBreakdownIsNil() predicate.UsageLog {
  1823. return predicate.UsageLog(sql.FieldIsNull(FieldImageSizeBreakdown))
  1824. }
  1825. // ImageSizeBreakdownNotNil applies the NotNil predicate on the "image_size_breakdown" field.
  1826. func ImageSizeBreakdownNotNil() predicate.UsageLog {
  1827. return predicate.UsageLog(sql.FieldNotNull(FieldImageSizeBreakdown))
  1828. }
  1829. // VideoCountEQ applies the EQ predicate on the "video_count" field.
  1830. func VideoCountEQ(v int) predicate.UsageLog {
  1831. return predicate.UsageLog(sql.FieldEQ(FieldVideoCount, v))
  1832. }
  1833. // VideoCountNEQ applies the NEQ predicate on the "video_count" field.
  1834. func VideoCountNEQ(v int) predicate.UsageLog {
  1835. return predicate.UsageLog(sql.FieldNEQ(FieldVideoCount, v))
  1836. }
  1837. // VideoCountIn applies the In predicate on the "video_count" field.
  1838. func VideoCountIn(vs ...int) predicate.UsageLog {
  1839. return predicate.UsageLog(sql.FieldIn(FieldVideoCount, vs...))
  1840. }
  1841. // VideoCountNotIn applies the NotIn predicate on the "video_count" field.
  1842. func VideoCountNotIn(vs ...int) predicate.UsageLog {
  1843. return predicate.UsageLog(sql.FieldNotIn(FieldVideoCount, vs...))
  1844. }
  1845. // VideoCountGT applies the GT predicate on the "video_count" field.
  1846. func VideoCountGT(v int) predicate.UsageLog {
  1847. return predicate.UsageLog(sql.FieldGT(FieldVideoCount, v))
  1848. }
  1849. // VideoCountGTE applies the GTE predicate on the "video_count" field.
  1850. func VideoCountGTE(v int) predicate.UsageLog {
  1851. return predicate.UsageLog(sql.FieldGTE(FieldVideoCount, v))
  1852. }
  1853. // VideoCountLT applies the LT predicate on the "video_count" field.
  1854. func VideoCountLT(v int) predicate.UsageLog {
  1855. return predicate.UsageLog(sql.FieldLT(FieldVideoCount, v))
  1856. }
  1857. // VideoCountLTE applies the LTE predicate on the "video_count" field.
  1858. func VideoCountLTE(v int) predicate.UsageLog {
  1859. return predicate.UsageLog(sql.FieldLTE(FieldVideoCount, v))
  1860. }
  1861. // VideoResolutionEQ applies the EQ predicate on the "video_resolution" field.
  1862. func VideoResolutionEQ(v string) predicate.UsageLog {
  1863. return predicate.UsageLog(sql.FieldEQ(FieldVideoResolution, v))
  1864. }
  1865. // VideoResolutionNEQ applies the NEQ predicate on the "video_resolution" field.
  1866. func VideoResolutionNEQ(v string) predicate.UsageLog {
  1867. return predicate.UsageLog(sql.FieldNEQ(FieldVideoResolution, v))
  1868. }
  1869. // VideoResolutionIn applies the In predicate on the "video_resolution" field.
  1870. func VideoResolutionIn(vs ...string) predicate.UsageLog {
  1871. return predicate.UsageLog(sql.FieldIn(FieldVideoResolution, vs...))
  1872. }
  1873. // VideoResolutionNotIn applies the NotIn predicate on the "video_resolution" field.
  1874. func VideoResolutionNotIn(vs ...string) predicate.UsageLog {
  1875. return predicate.UsageLog(sql.FieldNotIn(FieldVideoResolution, vs...))
  1876. }
  1877. // VideoResolutionGT applies the GT predicate on the "video_resolution" field.
  1878. func VideoResolutionGT(v string) predicate.UsageLog {
  1879. return predicate.UsageLog(sql.FieldGT(FieldVideoResolution, v))
  1880. }
  1881. // VideoResolutionGTE applies the GTE predicate on the "video_resolution" field.
  1882. func VideoResolutionGTE(v string) predicate.UsageLog {
  1883. return predicate.UsageLog(sql.FieldGTE(FieldVideoResolution, v))
  1884. }
  1885. // VideoResolutionLT applies the LT predicate on the "video_resolution" field.
  1886. func VideoResolutionLT(v string) predicate.UsageLog {
  1887. return predicate.UsageLog(sql.FieldLT(FieldVideoResolution, v))
  1888. }
  1889. // VideoResolutionLTE applies the LTE predicate on the "video_resolution" field.
  1890. func VideoResolutionLTE(v string) predicate.UsageLog {
  1891. return predicate.UsageLog(sql.FieldLTE(FieldVideoResolution, v))
  1892. }
  1893. // VideoResolutionContains applies the Contains predicate on the "video_resolution" field.
  1894. func VideoResolutionContains(v string) predicate.UsageLog {
  1895. return predicate.UsageLog(sql.FieldContains(FieldVideoResolution, v))
  1896. }
  1897. // VideoResolutionHasPrefix applies the HasPrefix predicate on the "video_resolution" field.
  1898. func VideoResolutionHasPrefix(v string) predicate.UsageLog {
  1899. return predicate.UsageLog(sql.FieldHasPrefix(FieldVideoResolution, v))
  1900. }
  1901. // VideoResolutionHasSuffix applies the HasSuffix predicate on the "video_resolution" field.
  1902. func VideoResolutionHasSuffix(v string) predicate.UsageLog {
  1903. return predicate.UsageLog(sql.FieldHasSuffix(FieldVideoResolution, v))
  1904. }
  1905. // VideoResolutionIsNil applies the IsNil predicate on the "video_resolution" field.
  1906. func VideoResolutionIsNil() predicate.UsageLog {
  1907. return predicate.UsageLog(sql.FieldIsNull(FieldVideoResolution))
  1908. }
  1909. // VideoResolutionNotNil applies the NotNil predicate on the "video_resolution" field.
  1910. func VideoResolutionNotNil() predicate.UsageLog {
  1911. return predicate.UsageLog(sql.FieldNotNull(FieldVideoResolution))
  1912. }
  1913. // VideoResolutionEqualFold applies the EqualFold predicate on the "video_resolution" field.
  1914. func VideoResolutionEqualFold(v string) predicate.UsageLog {
  1915. return predicate.UsageLog(sql.FieldEqualFold(FieldVideoResolution, v))
  1916. }
  1917. // VideoResolutionContainsFold applies the ContainsFold predicate on the "video_resolution" field.
  1918. func VideoResolutionContainsFold(v string) predicate.UsageLog {
  1919. return predicate.UsageLog(sql.FieldContainsFold(FieldVideoResolution, v))
  1920. }
  1921. // VideoDurationSecondsEQ applies the EQ predicate on the "video_duration_seconds" field.
  1922. func VideoDurationSecondsEQ(v int) predicate.UsageLog {
  1923. return predicate.UsageLog(sql.FieldEQ(FieldVideoDurationSeconds, v))
  1924. }
  1925. // VideoDurationSecondsNEQ applies the NEQ predicate on the "video_duration_seconds" field.
  1926. func VideoDurationSecondsNEQ(v int) predicate.UsageLog {
  1927. return predicate.UsageLog(sql.FieldNEQ(FieldVideoDurationSeconds, v))
  1928. }
  1929. // VideoDurationSecondsIn applies the In predicate on the "video_duration_seconds" field.
  1930. func VideoDurationSecondsIn(vs ...int) predicate.UsageLog {
  1931. return predicate.UsageLog(sql.FieldIn(FieldVideoDurationSeconds, vs...))
  1932. }
  1933. // VideoDurationSecondsNotIn applies the NotIn predicate on the "video_duration_seconds" field.
  1934. func VideoDurationSecondsNotIn(vs ...int) predicate.UsageLog {
  1935. return predicate.UsageLog(sql.FieldNotIn(FieldVideoDurationSeconds, vs...))
  1936. }
  1937. // VideoDurationSecondsGT applies the GT predicate on the "video_duration_seconds" field.
  1938. func VideoDurationSecondsGT(v int) predicate.UsageLog {
  1939. return predicate.UsageLog(sql.FieldGT(FieldVideoDurationSeconds, v))
  1940. }
  1941. // VideoDurationSecondsGTE applies the GTE predicate on the "video_duration_seconds" field.
  1942. func VideoDurationSecondsGTE(v int) predicate.UsageLog {
  1943. return predicate.UsageLog(sql.FieldGTE(FieldVideoDurationSeconds, v))
  1944. }
  1945. // VideoDurationSecondsLT applies the LT predicate on the "video_duration_seconds" field.
  1946. func VideoDurationSecondsLT(v int) predicate.UsageLog {
  1947. return predicate.UsageLog(sql.FieldLT(FieldVideoDurationSeconds, v))
  1948. }
  1949. // VideoDurationSecondsLTE applies the LTE predicate on the "video_duration_seconds" field.
  1950. func VideoDurationSecondsLTE(v int) predicate.UsageLog {
  1951. return predicate.UsageLog(sql.FieldLTE(FieldVideoDurationSeconds, v))
  1952. }
  1953. // VideoDurationSecondsIsNil applies the IsNil predicate on the "video_duration_seconds" field.
  1954. func VideoDurationSecondsIsNil() predicate.UsageLog {
  1955. return predicate.UsageLog(sql.FieldIsNull(FieldVideoDurationSeconds))
  1956. }
  1957. // VideoDurationSecondsNotNil applies the NotNil predicate on the "video_duration_seconds" field.
  1958. func VideoDurationSecondsNotNil() predicate.UsageLog {
  1959. return predicate.UsageLog(sql.FieldNotNull(FieldVideoDurationSeconds))
  1960. }
  1961. // CacheTTLOverriddenEQ applies the EQ predicate on the "cache_ttl_overridden" field.
  1962. func CacheTTLOverriddenEQ(v bool) predicate.UsageLog {
  1963. return predicate.UsageLog(sql.FieldEQ(FieldCacheTTLOverridden, v))
  1964. }
  1965. // CacheTTLOverriddenNEQ applies the NEQ predicate on the "cache_ttl_overridden" field.
  1966. func CacheTTLOverriddenNEQ(v bool) predicate.UsageLog {
  1967. return predicate.UsageLog(sql.FieldNEQ(FieldCacheTTLOverridden, v))
  1968. }
  1969. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  1970. func CreatedAtEQ(v time.Time) predicate.UsageLog {
  1971. return predicate.UsageLog(sql.FieldEQ(FieldCreatedAt, v))
  1972. }
  1973. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  1974. func CreatedAtNEQ(v time.Time) predicate.UsageLog {
  1975. return predicate.UsageLog(sql.FieldNEQ(FieldCreatedAt, v))
  1976. }
  1977. // CreatedAtIn applies the In predicate on the "created_at" field.
  1978. func CreatedAtIn(vs ...time.Time) predicate.UsageLog {
  1979. return predicate.UsageLog(sql.FieldIn(FieldCreatedAt, vs...))
  1980. }
  1981. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  1982. func CreatedAtNotIn(vs ...time.Time) predicate.UsageLog {
  1983. return predicate.UsageLog(sql.FieldNotIn(FieldCreatedAt, vs...))
  1984. }
  1985. // CreatedAtGT applies the GT predicate on the "created_at" field.
  1986. func CreatedAtGT(v time.Time) predicate.UsageLog {
  1987. return predicate.UsageLog(sql.FieldGT(FieldCreatedAt, v))
  1988. }
  1989. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  1990. func CreatedAtGTE(v time.Time) predicate.UsageLog {
  1991. return predicate.UsageLog(sql.FieldGTE(FieldCreatedAt, v))
  1992. }
  1993. // CreatedAtLT applies the LT predicate on the "created_at" field.
  1994. func CreatedAtLT(v time.Time) predicate.UsageLog {
  1995. return predicate.UsageLog(sql.FieldLT(FieldCreatedAt, v))
  1996. }
  1997. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  1998. func CreatedAtLTE(v time.Time) predicate.UsageLog {
  1999. return predicate.UsageLog(sql.FieldLTE(FieldCreatedAt, v))
  2000. }
  2001. // HasUser applies the HasEdge predicate on the "user" edge.
  2002. func HasUser() predicate.UsageLog {
  2003. return predicate.UsageLog(func(s *sql.Selector) {
  2004. step := sqlgraph.NewStep(
  2005. sqlgraph.From(Table, FieldID),
  2006. sqlgraph.Edge(sqlgraph.M2O, true, UserTable, UserColumn),
  2007. )
  2008. sqlgraph.HasNeighbors(s, step)
  2009. })
  2010. }
  2011. // HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
  2012. func HasUserWith(preds ...predicate.User) predicate.UsageLog {
  2013. return predicate.UsageLog(func(s *sql.Selector) {
  2014. step := newUserStep()
  2015. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  2016. for _, p := range preds {
  2017. p(s)
  2018. }
  2019. })
  2020. })
  2021. }
  2022. // HasAPIKey applies the HasEdge predicate on the "api_key" edge.
  2023. func HasAPIKey() predicate.UsageLog {
  2024. return predicate.UsageLog(func(s *sql.Selector) {
  2025. step := sqlgraph.NewStep(
  2026. sqlgraph.From(Table, FieldID),
  2027. sqlgraph.Edge(sqlgraph.M2O, true, APIKeyTable, APIKeyColumn),
  2028. )
  2029. sqlgraph.HasNeighbors(s, step)
  2030. })
  2031. }
  2032. // HasAPIKeyWith applies the HasEdge predicate on the "api_key" edge with a given conditions (other predicates).
  2033. func HasAPIKeyWith(preds ...predicate.APIKey) predicate.UsageLog {
  2034. return predicate.UsageLog(func(s *sql.Selector) {
  2035. step := newAPIKeyStep()
  2036. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  2037. for _, p := range preds {
  2038. p(s)
  2039. }
  2040. })
  2041. })
  2042. }
  2043. // HasAccount applies the HasEdge predicate on the "account" edge.
  2044. func HasAccount() predicate.UsageLog {
  2045. return predicate.UsageLog(func(s *sql.Selector) {
  2046. step := sqlgraph.NewStep(
  2047. sqlgraph.From(Table, FieldID),
  2048. sqlgraph.Edge(sqlgraph.M2O, true, AccountTable, AccountColumn),
  2049. )
  2050. sqlgraph.HasNeighbors(s, step)
  2051. })
  2052. }
  2053. // HasAccountWith applies the HasEdge predicate on the "account" edge with a given conditions (other predicates).
  2054. func HasAccountWith(preds ...predicate.Account) predicate.UsageLog {
  2055. return predicate.UsageLog(func(s *sql.Selector) {
  2056. step := newAccountStep()
  2057. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  2058. for _, p := range preds {
  2059. p(s)
  2060. }
  2061. })
  2062. })
  2063. }
  2064. // HasGroup applies the HasEdge predicate on the "group" edge.
  2065. func HasGroup() predicate.UsageLog {
  2066. return predicate.UsageLog(func(s *sql.Selector) {
  2067. step := sqlgraph.NewStep(
  2068. sqlgraph.From(Table, FieldID),
  2069. sqlgraph.Edge(sqlgraph.M2O, true, GroupTable, GroupColumn),
  2070. )
  2071. sqlgraph.HasNeighbors(s, step)
  2072. })
  2073. }
  2074. // HasGroupWith applies the HasEdge predicate on the "group" edge with a given conditions (other predicates).
  2075. func HasGroupWith(preds ...predicate.Group) predicate.UsageLog {
  2076. return predicate.UsageLog(func(s *sql.Selector) {
  2077. step := newGroupStep()
  2078. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  2079. for _, p := range preds {
  2080. p(s)
  2081. }
  2082. })
  2083. })
  2084. }
  2085. // HasSubscription applies the HasEdge predicate on the "subscription" edge.
  2086. func HasSubscription() predicate.UsageLog {
  2087. return predicate.UsageLog(func(s *sql.Selector) {
  2088. step := sqlgraph.NewStep(
  2089. sqlgraph.From(Table, FieldID),
  2090. sqlgraph.Edge(sqlgraph.M2O, true, SubscriptionTable, SubscriptionColumn),
  2091. )
  2092. sqlgraph.HasNeighbors(s, step)
  2093. })
  2094. }
  2095. // HasSubscriptionWith applies the HasEdge predicate on the "subscription" edge with a given conditions (other predicates).
  2096. func HasSubscriptionWith(preds ...predicate.UserSubscription) predicate.UsageLog {
  2097. return predicate.UsageLog(func(s *sql.Selector) {
  2098. step := newSubscriptionStep()
  2099. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  2100. for _, p := range preds {
  2101. p(s)
  2102. }
  2103. })
  2104. })
  2105. }
  2106. // And groups predicates with the AND operator between them.
  2107. func And(predicates ...predicate.UsageLog) predicate.UsageLog {
  2108. return predicate.UsageLog(sql.AndPredicates(predicates...))
  2109. }
  2110. // Or groups predicates with the OR operator between them.
  2111. func Or(predicates ...predicate.UsageLog) predicate.UsageLog {
  2112. return predicate.UsageLog(sql.OrPredicates(predicates...))
  2113. }
  2114. // Not applies the not operator on the given predicate.
  2115. func Not(p predicate.UsageLog) predicate.UsageLog {
  2116. return predicate.UsageLog(sql.NotPredicates(p))
  2117. }