github.com/NpoolPlatform/chain-middleware@v0.0.0-20240228100535-eb1bcf896eb9/pkg/db/ent/entql.go (about) 1 // Code generated by ent, DO NOT EDIT. 2 3 package ent 4 5 import ( 6 "github.com/NpoolPlatform/chain-middleware/pkg/db/ent/appcoin" 7 "github.com/NpoolPlatform/chain-middleware/pkg/db/ent/chainbase" 8 "github.com/NpoolPlatform/chain-middleware/pkg/db/ent/coinbase" 9 "github.com/NpoolPlatform/chain-middleware/pkg/db/ent/coindescription" 10 "github.com/NpoolPlatform/chain-middleware/pkg/db/ent/coinextra" 11 "github.com/NpoolPlatform/chain-middleware/pkg/db/ent/coinfiat" 12 "github.com/NpoolPlatform/chain-middleware/pkg/db/ent/coinfiatcurrency" 13 "github.com/NpoolPlatform/chain-middleware/pkg/db/ent/coinfiatcurrencyhistory" 14 "github.com/NpoolPlatform/chain-middleware/pkg/db/ent/coinusedfor" 15 "github.com/NpoolPlatform/chain-middleware/pkg/db/ent/currency" 16 "github.com/NpoolPlatform/chain-middleware/pkg/db/ent/currencyfeed" 17 "github.com/NpoolPlatform/chain-middleware/pkg/db/ent/currencyhistory" 18 "github.com/NpoolPlatform/chain-middleware/pkg/db/ent/exchangerate" 19 "github.com/NpoolPlatform/chain-middleware/pkg/db/ent/fiat" 20 "github.com/NpoolPlatform/chain-middleware/pkg/db/ent/fiatcurrency" 21 "github.com/NpoolPlatform/chain-middleware/pkg/db/ent/fiatcurrencyfeed" 22 "github.com/NpoolPlatform/chain-middleware/pkg/db/ent/fiatcurrencyhistory" 23 "github.com/NpoolPlatform/chain-middleware/pkg/db/ent/setting" 24 "github.com/NpoolPlatform/chain-middleware/pkg/db/ent/tran" 25 26 "entgo.io/ent/dialect/sql" 27 "entgo.io/ent/dialect/sql/sqlgraph" 28 "entgo.io/ent/entql" 29 "entgo.io/ent/schema/field" 30 ) 31 32 // schemaGraph holds a representation of ent/schema at runtime. 33 var schemaGraph = func() *sqlgraph.Schema { 34 graph := &sqlgraph.Schema{Nodes: make([]*sqlgraph.Node, 19)} 35 graph.Nodes[0] = &sqlgraph.Node{ 36 NodeSpec: sqlgraph.NodeSpec{ 37 Table: appcoin.Table, 38 Columns: appcoin.Columns, 39 ID: &sqlgraph.FieldSpec{ 40 Type: field.TypeUint32, 41 Column: appcoin.FieldID, 42 }, 43 }, 44 Type: "AppCoin", 45 Fields: map[string]*sqlgraph.FieldSpec{ 46 appcoin.FieldCreatedAt: {Type: field.TypeUint32, Column: appcoin.FieldCreatedAt}, 47 appcoin.FieldUpdatedAt: {Type: field.TypeUint32, Column: appcoin.FieldUpdatedAt}, 48 appcoin.FieldDeletedAt: {Type: field.TypeUint32, Column: appcoin.FieldDeletedAt}, 49 appcoin.FieldEntID: {Type: field.TypeUUID, Column: appcoin.FieldEntID}, 50 appcoin.FieldAppID: {Type: field.TypeUUID, Column: appcoin.FieldAppID}, 51 appcoin.FieldCoinTypeID: {Type: field.TypeUUID, Column: appcoin.FieldCoinTypeID}, 52 appcoin.FieldName: {Type: field.TypeString, Column: appcoin.FieldName}, 53 appcoin.FieldDisplayNames: {Type: field.TypeJSON, Column: appcoin.FieldDisplayNames}, 54 appcoin.FieldLogo: {Type: field.TypeString, Column: appcoin.FieldLogo}, 55 appcoin.FieldForPay: {Type: field.TypeBool, Column: appcoin.FieldForPay}, 56 appcoin.FieldWithdrawAutoReviewAmount: {Type: field.TypeOther, Column: appcoin.FieldWithdrawAutoReviewAmount}, 57 appcoin.FieldProductPage: {Type: field.TypeString, Column: appcoin.FieldProductPage}, 58 appcoin.FieldDisabled: {Type: field.TypeBool, Column: appcoin.FieldDisabled}, 59 appcoin.FieldDailyRewardAmount: {Type: field.TypeOther, Column: appcoin.FieldDailyRewardAmount}, 60 appcoin.FieldDisplay: {Type: field.TypeBool, Column: appcoin.FieldDisplay}, 61 appcoin.FieldDisplayIndex: {Type: field.TypeUint32, Column: appcoin.FieldDisplayIndex}, 62 appcoin.FieldMaxAmountPerWithdraw: {Type: field.TypeOther, Column: appcoin.FieldMaxAmountPerWithdraw}, 63 }, 64 } 65 graph.Nodes[1] = &sqlgraph.Node{ 66 NodeSpec: sqlgraph.NodeSpec{ 67 Table: chainbase.Table, 68 Columns: chainbase.Columns, 69 ID: &sqlgraph.FieldSpec{ 70 Type: field.TypeUint32, 71 Column: chainbase.FieldID, 72 }, 73 }, 74 Type: "ChainBase", 75 Fields: map[string]*sqlgraph.FieldSpec{ 76 chainbase.FieldCreatedAt: {Type: field.TypeUint32, Column: chainbase.FieldCreatedAt}, 77 chainbase.FieldUpdatedAt: {Type: field.TypeUint32, Column: chainbase.FieldUpdatedAt}, 78 chainbase.FieldDeletedAt: {Type: field.TypeUint32, Column: chainbase.FieldDeletedAt}, 79 chainbase.FieldEntID: {Type: field.TypeUUID, Column: chainbase.FieldEntID}, 80 chainbase.FieldName: {Type: field.TypeString, Column: chainbase.FieldName}, 81 chainbase.FieldLogo: {Type: field.TypeString, Column: chainbase.FieldLogo}, 82 chainbase.FieldNativeUnit: {Type: field.TypeString, Column: chainbase.FieldNativeUnit}, 83 chainbase.FieldAtomicUnit: {Type: field.TypeString, Column: chainbase.FieldAtomicUnit}, 84 chainbase.FieldUnitExp: {Type: field.TypeUint32, Column: chainbase.FieldUnitExp}, 85 chainbase.FieldEnv: {Type: field.TypeString, Column: chainbase.FieldEnv}, 86 chainbase.FieldChainID: {Type: field.TypeString, Column: chainbase.FieldChainID}, 87 chainbase.FieldNickname: {Type: field.TypeString, Column: chainbase.FieldNickname}, 88 chainbase.FieldGasType: {Type: field.TypeString, Column: chainbase.FieldGasType}, 89 }, 90 } 91 graph.Nodes[2] = &sqlgraph.Node{ 92 NodeSpec: sqlgraph.NodeSpec{ 93 Table: coinbase.Table, 94 Columns: coinbase.Columns, 95 ID: &sqlgraph.FieldSpec{ 96 Type: field.TypeUint32, 97 Column: coinbase.FieldID, 98 }, 99 }, 100 Type: "CoinBase", 101 Fields: map[string]*sqlgraph.FieldSpec{ 102 coinbase.FieldCreatedAt: {Type: field.TypeUint32, Column: coinbase.FieldCreatedAt}, 103 coinbase.FieldUpdatedAt: {Type: field.TypeUint32, Column: coinbase.FieldUpdatedAt}, 104 coinbase.FieldDeletedAt: {Type: field.TypeUint32, Column: coinbase.FieldDeletedAt}, 105 coinbase.FieldEntID: {Type: field.TypeUUID, Column: coinbase.FieldEntID}, 106 coinbase.FieldName: {Type: field.TypeString, Column: coinbase.FieldName}, 107 coinbase.FieldLogo: {Type: field.TypeString, Column: coinbase.FieldLogo}, 108 coinbase.FieldPresale: {Type: field.TypeBool, Column: coinbase.FieldPresale}, 109 coinbase.FieldUnit: {Type: field.TypeString, Column: coinbase.FieldUnit}, 110 coinbase.FieldEnv: {Type: field.TypeString, Column: coinbase.FieldEnv}, 111 coinbase.FieldReservedAmount: {Type: field.TypeOther, Column: coinbase.FieldReservedAmount}, 112 coinbase.FieldForPay: {Type: field.TypeBool, Column: coinbase.FieldForPay}, 113 coinbase.FieldDisabled: {Type: field.TypeBool, Column: coinbase.FieldDisabled}, 114 }, 115 } 116 graph.Nodes[3] = &sqlgraph.Node{ 117 NodeSpec: sqlgraph.NodeSpec{ 118 Table: coindescription.Table, 119 Columns: coindescription.Columns, 120 ID: &sqlgraph.FieldSpec{ 121 Type: field.TypeUint32, 122 Column: coindescription.FieldID, 123 }, 124 }, 125 Type: "CoinDescription", 126 Fields: map[string]*sqlgraph.FieldSpec{ 127 coindescription.FieldCreatedAt: {Type: field.TypeUint32, Column: coindescription.FieldCreatedAt}, 128 coindescription.FieldUpdatedAt: {Type: field.TypeUint32, Column: coindescription.FieldUpdatedAt}, 129 coindescription.FieldDeletedAt: {Type: field.TypeUint32, Column: coindescription.FieldDeletedAt}, 130 coindescription.FieldEntID: {Type: field.TypeUUID, Column: coindescription.FieldEntID}, 131 coindescription.FieldAppID: {Type: field.TypeUUID, Column: coindescription.FieldAppID}, 132 coindescription.FieldCoinTypeID: {Type: field.TypeUUID, Column: coindescription.FieldCoinTypeID}, 133 coindescription.FieldUsedFor: {Type: field.TypeString, Column: coindescription.FieldUsedFor}, 134 coindescription.FieldTitle: {Type: field.TypeString, Column: coindescription.FieldTitle}, 135 coindescription.FieldMessage: {Type: field.TypeString, Column: coindescription.FieldMessage}, 136 }, 137 } 138 graph.Nodes[4] = &sqlgraph.Node{ 139 NodeSpec: sqlgraph.NodeSpec{ 140 Table: coinextra.Table, 141 Columns: coinextra.Columns, 142 ID: &sqlgraph.FieldSpec{ 143 Type: field.TypeUint32, 144 Column: coinextra.FieldID, 145 }, 146 }, 147 Type: "CoinExtra", 148 Fields: map[string]*sqlgraph.FieldSpec{ 149 coinextra.FieldCreatedAt: {Type: field.TypeUint32, Column: coinextra.FieldCreatedAt}, 150 coinextra.FieldUpdatedAt: {Type: field.TypeUint32, Column: coinextra.FieldUpdatedAt}, 151 coinextra.FieldDeletedAt: {Type: field.TypeUint32, Column: coinextra.FieldDeletedAt}, 152 coinextra.FieldEntID: {Type: field.TypeUUID, Column: coinextra.FieldEntID}, 153 coinextra.FieldCoinTypeID: {Type: field.TypeUUID, Column: coinextra.FieldCoinTypeID}, 154 coinextra.FieldHomePage: {Type: field.TypeString, Column: coinextra.FieldHomePage}, 155 coinextra.FieldSpecs: {Type: field.TypeString, Column: coinextra.FieldSpecs}, 156 coinextra.FieldStableUsd: {Type: field.TypeBool, Column: coinextra.FieldStableUsd}, 157 }, 158 } 159 graph.Nodes[5] = &sqlgraph.Node{ 160 NodeSpec: sqlgraph.NodeSpec{ 161 Table: coinfiat.Table, 162 Columns: coinfiat.Columns, 163 ID: &sqlgraph.FieldSpec{ 164 Type: field.TypeUint32, 165 Column: coinfiat.FieldID, 166 }, 167 }, 168 Type: "CoinFiat", 169 Fields: map[string]*sqlgraph.FieldSpec{ 170 coinfiat.FieldCreatedAt: {Type: field.TypeUint32, Column: coinfiat.FieldCreatedAt}, 171 coinfiat.FieldUpdatedAt: {Type: field.TypeUint32, Column: coinfiat.FieldUpdatedAt}, 172 coinfiat.FieldDeletedAt: {Type: field.TypeUint32, Column: coinfiat.FieldDeletedAt}, 173 coinfiat.FieldEntID: {Type: field.TypeUUID, Column: coinfiat.FieldEntID}, 174 coinfiat.FieldCoinTypeID: {Type: field.TypeUUID, Column: coinfiat.FieldCoinTypeID}, 175 coinfiat.FieldFiatID: {Type: field.TypeUUID, Column: coinfiat.FieldFiatID}, 176 coinfiat.FieldFeedType: {Type: field.TypeString, Column: coinfiat.FieldFeedType}, 177 }, 178 } 179 graph.Nodes[6] = &sqlgraph.Node{ 180 NodeSpec: sqlgraph.NodeSpec{ 181 Table: coinfiatcurrency.Table, 182 Columns: coinfiatcurrency.Columns, 183 ID: &sqlgraph.FieldSpec{ 184 Type: field.TypeUint32, 185 Column: coinfiatcurrency.FieldID, 186 }, 187 }, 188 Type: "CoinFiatCurrency", 189 Fields: map[string]*sqlgraph.FieldSpec{ 190 coinfiatcurrency.FieldCreatedAt: {Type: field.TypeUint32, Column: coinfiatcurrency.FieldCreatedAt}, 191 coinfiatcurrency.FieldUpdatedAt: {Type: field.TypeUint32, Column: coinfiatcurrency.FieldUpdatedAt}, 192 coinfiatcurrency.FieldDeletedAt: {Type: field.TypeUint32, Column: coinfiatcurrency.FieldDeletedAt}, 193 coinfiatcurrency.FieldEntID: {Type: field.TypeUUID, Column: coinfiatcurrency.FieldEntID}, 194 coinfiatcurrency.FieldCoinTypeID: {Type: field.TypeUUID, Column: coinfiatcurrency.FieldCoinTypeID}, 195 coinfiatcurrency.FieldFiatID: {Type: field.TypeUUID, Column: coinfiatcurrency.FieldFiatID}, 196 coinfiatcurrency.FieldFeedType: {Type: field.TypeString, Column: coinfiatcurrency.FieldFeedType}, 197 coinfiatcurrency.FieldMarketValueLow: {Type: field.TypeOther, Column: coinfiatcurrency.FieldMarketValueLow}, 198 coinfiatcurrency.FieldMarketValueHigh: {Type: field.TypeOther, Column: coinfiatcurrency.FieldMarketValueHigh}, 199 }, 200 } 201 graph.Nodes[7] = &sqlgraph.Node{ 202 NodeSpec: sqlgraph.NodeSpec{ 203 Table: coinfiatcurrencyhistory.Table, 204 Columns: coinfiatcurrencyhistory.Columns, 205 ID: &sqlgraph.FieldSpec{ 206 Type: field.TypeUint32, 207 Column: coinfiatcurrencyhistory.FieldID, 208 }, 209 }, 210 Type: "CoinFiatCurrencyHistory", 211 Fields: map[string]*sqlgraph.FieldSpec{ 212 coinfiatcurrencyhistory.FieldCreatedAt: {Type: field.TypeUint32, Column: coinfiatcurrencyhistory.FieldCreatedAt}, 213 coinfiatcurrencyhistory.FieldUpdatedAt: {Type: field.TypeUint32, Column: coinfiatcurrencyhistory.FieldUpdatedAt}, 214 coinfiatcurrencyhistory.FieldDeletedAt: {Type: field.TypeUint32, Column: coinfiatcurrencyhistory.FieldDeletedAt}, 215 coinfiatcurrencyhistory.FieldEntID: {Type: field.TypeUUID, Column: coinfiatcurrencyhistory.FieldEntID}, 216 coinfiatcurrencyhistory.FieldCoinTypeID: {Type: field.TypeUUID, Column: coinfiatcurrencyhistory.FieldCoinTypeID}, 217 coinfiatcurrencyhistory.FieldFiatID: {Type: field.TypeUUID, Column: coinfiatcurrencyhistory.FieldFiatID}, 218 coinfiatcurrencyhistory.FieldFeedType: {Type: field.TypeString, Column: coinfiatcurrencyhistory.FieldFeedType}, 219 coinfiatcurrencyhistory.FieldMarketValueLow: {Type: field.TypeOther, Column: coinfiatcurrencyhistory.FieldMarketValueLow}, 220 coinfiatcurrencyhistory.FieldMarketValueHigh: {Type: field.TypeOther, Column: coinfiatcurrencyhistory.FieldMarketValueHigh}, 221 }, 222 } 223 graph.Nodes[8] = &sqlgraph.Node{ 224 NodeSpec: sqlgraph.NodeSpec{ 225 Table: coinusedfor.Table, 226 Columns: coinusedfor.Columns, 227 ID: &sqlgraph.FieldSpec{ 228 Type: field.TypeUint32, 229 Column: coinusedfor.FieldID, 230 }, 231 }, 232 Type: "CoinUsedFor", 233 Fields: map[string]*sqlgraph.FieldSpec{ 234 coinusedfor.FieldCreatedAt: {Type: field.TypeUint32, Column: coinusedfor.FieldCreatedAt}, 235 coinusedfor.FieldUpdatedAt: {Type: field.TypeUint32, Column: coinusedfor.FieldUpdatedAt}, 236 coinusedfor.FieldDeletedAt: {Type: field.TypeUint32, Column: coinusedfor.FieldDeletedAt}, 237 coinusedfor.FieldEntID: {Type: field.TypeUUID, Column: coinusedfor.FieldEntID}, 238 coinusedfor.FieldCoinTypeID: {Type: field.TypeUUID, Column: coinusedfor.FieldCoinTypeID}, 239 coinusedfor.FieldUsedFor: {Type: field.TypeString, Column: coinusedfor.FieldUsedFor}, 240 coinusedfor.FieldPriority: {Type: field.TypeUint32, Column: coinusedfor.FieldPriority}, 241 }, 242 } 243 graph.Nodes[9] = &sqlgraph.Node{ 244 NodeSpec: sqlgraph.NodeSpec{ 245 Table: currency.Table, 246 Columns: currency.Columns, 247 ID: &sqlgraph.FieldSpec{ 248 Type: field.TypeUint32, 249 Column: currency.FieldID, 250 }, 251 }, 252 Type: "Currency", 253 Fields: map[string]*sqlgraph.FieldSpec{ 254 currency.FieldCreatedAt: {Type: field.TypeUint32, Column: currency.FieldCreatedAt}, 255 currency.FieldUpdatedAt: {Type: field.TypeUint32, Column: currency.FieldUpdatedAt}, 256 currency.FieldDeletedAt: {Type: field.TypeUint32, Column: currency.FieldDeletedAt}, 257 currency.FieldEntID: {Type: field.TypeUUID, Column: currency.FieldEntID}, 258 currency.FieldCoinTypeID: {Type: field.TypeUUID, Column: currency.FieldCoinTypeID}, 259 currency.FieldFeedType: {Type: field.TypeString, Column: currency.FieldFeedType}, 260 currency.FieldMarketValueHigh: {Type: field.TypeOther, Column: currency.FieldMarketValueHigh}, 261 currency.FieldMarketValueLow: {Type: field.TypeOther, Column: currency.FieldMarketValueLow}, 262 }, 263 } 264 graph.Nodes[10] = &sqlgraph.Node{ 265 NodeSpec: sqlgraph.NodeSpec{ 266 Table: currencyfeed.Table, 267 Columns: currencyfeed.Columns, 268 ID: &sqlgraph.FieldSpec{ 269 Type: field.TypeUint32, 270 Column: currencyfeed.FieldID, 271 }, 272 }, 273 Type: "CurrencyFeed", 274 Fields: map[string]*sqlgraph.FieldSpec{ 275 currencyfeed.FieldCreatedAt: {Type: field.TypeUint32, Column: currencyfeed.FieldCreatedAt}, 276 currencyfeed.FieldUpdatedAt: {Type: field.TypeUint32, Column: currencyfeed.FieldUpdatedAt}, 277 currencyfeed.FieldDeletedAt: {Type: field.TypeUint32, Column: currencyfeed.FieldDeletedAt}, 278 currencyfeed.FieldEntID: {Type: field.TypeUUID, Column: currencyfeed.FieldEntID}, 279 currencyfeed.FieldCoinTypeID: {Type: field.TypeUUID, Column: currencyfeed.FieldCoinTypeID}, 280 currencyfeed.FieldFeedType: {Type: field.TypeString, Column: currencyfeed.FieldFeedType}, 281 currencyfeed.FieldFeedCoinName: {Type: field.TypeString, Column: currencyfeed.FieldFeedCoinName}, 282 currencyfeed.FieldDisabled: {Type: field.TypeBool, Column: currencyfeed.FieldDisabled}, 283 }, 284 } 285 graph.Nodes[11] = &sqlgraph.Node{ 286 NodeSpec: sqlgraph.NodeSpec{ 287 Table: currencyhistory.Table, 288 Columns: currencyhistory.Columns, 289 ID: &sqlgraph.FieldSpec{ 290 Type: field.TypeUint32, 291 Column: currencyhistory.FieldID, 292 }, 293 }, 294 Type: "CurrencyHistory", 295 Fields: map[string]*sqlgraph.FieldSpec{ 296 currencyhistory.FieldCreatedAt: {Type: field.TypeUint32, Column: currencyhistory.FieldCreatedAt}, 297 currencyhistory.FieldUpdatedAt: {Type: field.TypeUint32, Column: currencyhistory.FieldUpdatedAt}, 298 currencyhistory.FieldDeletedAt: {Type: field.TypeUint32, Column: currencyhistory.FieldDeletedAt}, 299 currencyhistory.FieldEntID: {Type: field.TypeUUID, Column: currencyhistory.FieldEntID}, 300 currencyhistory.FieldCoinTypeID: {Type: field.TypeUUID, Column: currencyhistory.FieldCoinTypeID}, 301 currencyhistory.FieldFeedType: {Type: field.TypeString, Column: currencyhistory.FieldFeedType}, 302 currencyhistory.FieldMarketValueHigh: {Type: field.TypeOther, Column: currencyhistory.FieldMarketValueHigh}, 303 currencyhistory.FieldMarketValueLow: {Type: field.TypeOther, Column: currencyhistory.FieldMarketValueLow}, 304 }, 305 } 306 graph.Nodes[12] = &sqlgraph.Node{ 307 NodeSpec: sqlgraph.NodeSpec{ 308 Table: exchangerate.Table, 309 Columns: exchangerate.Columns, 310 ID: &sqlgraph.FieldSpec{ 311 Type: field.TypeUint32, 312 Column: exchangerate.FieldID, 313 }, 314 }, 315 Type: "ExchangeRate", 316 Fields: map[string]*sqlgraph.FieldSpec{ 317 exchangerate.FieldCreatedAt: {Type: field.TypeUint32, Column: exchangerate.FieldCreatedAt}, 318 exchangerate.FieldUpdatedAt: {Type: field.TypeUint32, Column: exchangerate.FieldUpdatedAt}, 319 exchangerate.FieldDeletedAt: {Type: field.TypeUint32, Column: exchangerate.FieldDeletedAt}, 320 exchangerate.FieldEntID: {Type: field.TypeUUID, Column: exchangerate.FieldEntID}, 321 exchangerate.FieldAppID: {Type: field.TypeUUID, Column: exchangerate.FieldAppID}, 322 exchangerate.FieldCoinTypeID: {Type: field.TypeUUID, Column: exchangerate.FieldCoinTypeID}, 323 exchangerate.FieldMarketValue: {Type: field.TypeOther, Column: exchangerate.FieldMarketValue}, 324 exchangerate.FieldSettleValue: {Type: field.TypeOther, Column: exchangerate.FieldSettleValue}, 325 exchangerate.FieldSettlePercent: {Type: field.TypeUint32, Column: exchangerate.FieldSettlePercent}, 326 exchangerate.FieldSettleTips: {Type: field.TypeJSON, Column: exchangerate.FieldSettleTips}, 327 exchangerate.FieldSetter: {Type: field.TypeUUID, Column: exchangerate.FieldSetter}, 328 }, 329 } 330 graph.Nodes[13] = &sqlgraph.Node{ 331 NodeSpec: sqlgraph.NodeSpec{ 332 Table: fiat.Table, 333 Columns: fiat.Columns, 334 ID: &sqlgraph.FieldSpec{ 335 Type: field.TypeUint32, 336 Column: fiat.FieldID, 337 }, 338 }, 339 Type: "Fiat", 340 Fields: map[string]*sqlgraph.FieldSpec{ 341 fiat.FieldCreatedAt: {Type: field.TypeUint32, Column: fiat.FieldCreatedAt}, 342 fiat.FieldUpdatedAt: {Type: field.TypeUint32, Column: fiat.FieldUpdatedAt}, 343 fiat.FieldDeletedAt: {Type: field.TypeUint32, Column: fiat.FieldDeletedAt}, 344 fiat.FieldEntID: {Type: field.TypeUUID, Column: fiat.FieldEntID}, 345 fiat.FieldName: {Type: field.TypeString, Column: fiat.FieldName}, 346 fiat.FieldLogo: {Type: field.TypeString, Column: fiat.FieldLogo}, 347 fiat.FieldUnit: {Type: field.TypeString, Column: fiat.FieldUnit}, 348 }, 349 } 350 graph.Nodes[14] = &sqlgraph.Node{ 351 NodeSpec: sqlgraph.NodeSpec{ 352 Table: fiatcurrency.Table, 353 Columns: fiatcurrency.Columns, 354 ID: &sqlgraph.FieldSpec{ 355 Type: field.TypeUint32, 356 Column: fiatcurrency.FieldID, 357 }, 358 }, 359 Type: "FiatCurrency", 360 Fields: map[string]*sqlgraph.FieldSpec{ 361 fiatcurrency.FieldCreatedAt: {Type: field.TypeUint32, Column: fiatcurrency.FieldCreatedAt}, 362 fiatcurrency.FieldUpdatedAt: {Type: field.TypeUint32, Column: fiatcurrency.FieldUpdatedAt}, 363 fiatcurrency.FieldDeletedAt: {Type: field.TypeUint32, Column: fiatcurrency.FieldDeletedAt}, 364 fiatcurrency.FieldEntID: {Type: field.TypeUUID, Column: fiatcurrency.FieldEntID}, 365 fiatcurrency.FieldFiatID: {Type: field.TypeUUID, Column: fiatcurrency.FieldFiatID}, 366 fiatcurrency.FieldFeedType: {Type: field.TypeString, Column: fiatcurrency.FieldFeedType}, 367 fiatcurrency.FieldMarketValueLow: {Type: field.TypeOther, Column: fiatcurrency.FieldMarketValueLow}, 368 fiatcurrency.FieldMarketValueHigh: {Type: field.TypeOther, Column: fiatcurrency.FieldMarketValueHigh}, 369 }, 370 } 371 graph.Nodes[15] = &sqlgraph.Node{ 372 NodeSpec: sqlgraph.NodeSpec{ 373 Table: fiatcurrencyfeed.Table, 374 Columns: fiatcurrencyfeed.Columns, 375 ID: &sqlgraph.FieldSpec{ 376 Type: field.TypeUint32, 377 Column: fiatcurrencyfeed.FieldID, 378 }, 379 }, 380 Type: "FiatCurrencyFeed", 381 Fields: map[string]*sqlgraph.FieldSpec{ 382 fiatcurrencyfeed.FieldCreatedAt: {Type: field.TypeUint32, Column: fiatcurrencyfeed.FieldCreatedAt}, 383 fiatcurrencyfeed.FieldUpdatedAt: {Type: field.TypeUint32, Column: fiatcurrencyfeed.FieldUpdatedAt}, 384 fiatcurrencyfeed.FieldDeletedAt: {Type: field.TypeUint32, Column: fiatcurrencyfeed.FieldDeletedAt}, 385 fiatcurrencyfeed.FieldEntID: {Type: field.TypeUUID, Column: fiatcurrencyfeed.FieldEntID}, 386 fiatcurrencyfeed.FieldFiatID: {Type: field.TypeUUID, Column: fiatcurrencyfeed.FieldFiatID}, 387 fiatcurrencyfeed.FieldFeedType: {Type: field.TypeString, Column: fiatcurrencyfeed.FieldFeedType}, 388 fiatcurrencyfeed.FieldFeedFiatName: {Type: field.TypeString, Column: fiatcurrencyfeed.FieldFeedFiatName}, 389 fiatcurrencyfeed.FieldDisabled: {Type: field.TypeBool, Column: fiatcurrencyfeed.FieldDisabled}, 390 }, 391 } 392 graph.Nodes[16] = &sqlgraph.Node{ 393 NodeSpec: sqlgraph.NodeSpec{ 394 Table: fiatcurrencyhistory.Table, 395 Columns: fiatcurrencyhistory.Columns, 396 ID: &sqlgraph.FieldSpec{ 397 Type: field.TypeUint32, 398 Column: fiatcurrencyhistory.FieldID, 399 }, 400 }, 401 Type: "FiatCurrencyHistory", 402 Fields: map[string]*sqlgraph.FieldSpec{ 403 fiatcurrencyhistory.FieldCreatedAt: {Type: field.TypeUint32, Column: fiatcurrencyhistory.FieldCreatedAt}, 404 fiatcurrencyhistory.FieldUpdatedAt: {Type: field.TypeUint32, Column: fiatcurrencyhistory.FieldUpdatedAt}, 405 fiatcurrencyhistory.FieldDeletedAt: {Type: field.TypeUint32, Column: fiatcurrencyhistory.FieldDeletedAt}, 406 fiatcurrencyhistory.FieldEntID: {Type: field.TypeUUID, Column: fiatcurrencyhistory.FieldEntID}, 407 fiatcurrencyhistory.FieldFiatID: {Type: field.TypeUUID, Column: fiatcurrencyhistory.FieldFiatID}, 408 fiatcurrencyhistory.FieldFeedType: {Type: field.TypeString, Column: fiatcurrencyhistory.FieldFeedType}, 409 fiatcurrencyhistory.FieldMarketValueLow: {Type: field.TypeOther, Column: fiatcurrencyhistory.FieldMarketValueLow}, 410 fiatcurrencyhistory.FieldMarketValueHigh: {Type: field.TypeOther, Column: fiatcurrencyhistory.FieldMarketValueHigh}, 411 }, 412 } 413 graph.Nodes[17] = &sqlgraph.Node{ 414 NodeSpec: sqlgraph.NodeSpec{ 415 Table: setting.Table, 416 Columns: setting.Columns, 417 ID: &sqlgraph.FieldSpec{ 418 Type: field.TypeUint32, 419 Column: setting.FieldID, 420 }, 421 }, 422 Type: "Setting", 423 Fields: map[string]*sqlgraph.FieldSpec{ 424 setting.FieldCreatedAt: {Type: field.TypeUint32, Column: setting.FieldCreatedAt}, 425 setting.FieldUpdatedAt: {Type: field.TypeUint32, Column: setting.FieldUpdatedAt}, 426 setting.FieldDeletedAt: {Type: field.TypeUint32, Column: setting.FieldDeletedAt}, 427 setting.FieldEntID: {Type: field.TypeUUID, Column: setting.FieldEntID}, 428 setting.FieldCoinTypeID: {Type: field.TypeUUID, Column: setting.FieldCoinTypeID}, 429 setting.FieldFeeCoinTypeID: {Type: field.TypeUUID, Column: setting.FieldFeeCoinTypeID}, 430 setting.FieldWithdrawFeeByStableUsd: {Type: field.TypeBool, Column: setting.FieldWithdrawFeeByStableUsd}, 431 setting.FieldWithdrawFeeAmount: {Type: field.TypeOther, Column: setting.FieldWithdrawFeeAmount}, 432 setting.FieldCollectFeeAmount: {Type: field.TypeOther, Column: setting.FieldCollectFeeAmount}, 433 setting.FieldHotWalletFeeAmount: {Type: field.TypeOther, Column: setting.FieldHotWalletFeeAmount}, 434 setting.FieldLowFeeAmount: {Type: field.TypeOther, Column: setting.FieldLowFeeAmount}, 435 setting.FieldHotLowFeeAmount: {Type: field.TypeOther, Column: setting.FieldHotLowFeeAmount}, 436 setting.FieldHotWalletAccountAmount: {Type: field.TypeOther, Column: setting.FieldHotWalletAccountAmount}, 437 setting.FieldPaymentAccountCollectAmount: {Type: field.TypeOther, Column: setting.FieldPaymentAccountCollectAmount}, 438 setting.FieldLeastTransferAmount: {Type: field.TypeOther, Column: setting.FieldLeastTransferAmount}, 439 setting.FieldNeedMemo: {Type: field.TypeBool, Column: setting.FieldNeedMemo}, 440 setting.FieldRefreshCurrency: {Type: field.TypeBool, Column: setting.FieldRefreshCurrency}, 441 setting.FieldCheckNewAddressBalance: {Type: field.TypeBool, Column: setting.FieldCheckNewAddressBalance}, 442 }, 443 } 444 graph.Nodes[18] = &sqlgraph.Node{ 445 NodeSpec: sqlgraph.NodeSpec{ 446 Table: tran.Table, 447 Columns: tran.Columns, 448 ID: &sqlgraph.FieldSpec{ 449 Type: field.TypeUint32, 450 Column: tran.FieldID, 451 }, 452 }, 453 Type: "Tran", 454 Fields: map[string]*sqlgraph.FieldSpec{ 455 tran.FieldCreatedAt: {Type: field.TypeUint32, Column: tran.FieldCreatedAt}, 456 tran.FieldUpdatedAt: {Type: field.TypeUint32, Column: tran.FieldUpdatedAt}, 457 tran.FieldDeletedAt: {Type: field.TypeUint32, Column: tran.FieldDeletedAt}, 458 tran.FieldEntID: {Type: field.TypeUUID, Column: tran.FieldEntID}, 459 tran.FieldCoinTypeID: {Type: field.TypeUUID, Column: tran.FieldCoinTypeID}, 460 tran.FieldFromAccountID: {Type: field.TypeUUID, Column: tran.FieldFromAccountID}, 461 tran.FieldToAccountID: {Type: field.TypeUUID, Column: tran.FieldToAccountID}, 462 tran.FieldAmount: {Type: field.TypeOther, Column: tran.FieldAmount}, 463 tran.FieldFeeAmount: {Type: field.TypeOther, Column: tran.FieldFeeAmount}, 464 tran.FieldChainTxID: {Type: field.TypeString, Column: tran.FieldChainTxID}, 465 tran.FieldState: {Type: field.TypeString, Column: tran.FieldState}, 466 tran.FieldExtra: {Type: field.TypeString, Column: tran.FieldExtra}, 467 tran.FieldType: {Type: field.TypeString, Column: tran.FieldType}, 468 }, 469 } 470 return graph 471 }() 472 473 // predicateAdder wraps the addPredicate method. 474 // All update, update-one and query builders implement this interface. 475 type predicateAdder interface { 476 addPredicate(func(s *sql.Selector)) 477 } 478 479 // addPredicate implements the predicateAdder interface. 480 func (acq *AppCoinQuery) addPredicate(pred func(s *sql.Selector)) { 481 acq.predicates = append(acq.predicates, pred) 482 } 483 484 // Filter returns a Filter implementation to apply filters on the AppCoinQuery builder. 485 func (acq *AppCoinQuery) Filter() *AppCoinFilter { 486 return &AppCoinFilter{config: acq.config, predicateAdder: acq} 487 } 488 489 // addPredicate implements the predicateAdder interface. 490 func (m *AppCoinMutation) addPredicate(pred func(s *sql.Selector)) { 491 m.predicates = append(m.predicates, pred) 492 } 493 494 // Filter returns an entql.Where implementation to apply filters on the AppCoinMutation builder. 495 func (m *AppCoinMutation) Filter() *AppCoinFilter { 496 return &AppCoinFilter{config: m.config, predicateAdder: m} 497 } 498 499 // AppCoinFilter provides a generic filtering capability at runtime for AppCoinQuery. 500 type AppCoinFilter struct { 501 predicateAdder 502 config 503 } 504 505 // Where applies the entql predicate on the query filter. 506 func (f *AppCoinFilter) Where(p entql.P) { 507 f.addPredicate(func(s *sql.Selector) { 508 if err := schemaGraph.EvalP(schemaGraph.Nodes[0].Type, p, s); err != nil { 509 s.AddError(err) 510 } 511 }) 512 } 513 514 // WhereID applies the entql uint32 predicate on the id field. 515 func (f *AppCoinFilter) WhereID(p entql.Uint32P) { 516 f.Where(p.Field(appcoin.FieldID)) 517 } 518 519 // WhereCreatedAt applies the entql uint32 predicate on the created_at field. 520 func (f *AppCoinFilter) WhereCreatedAt(p entql.Uint32P) { 521 f.Where(p.Field(appcoin.FieldCreatedAt)) 522 } 523 524 // WhereUpdatedAt applies the entql uint32 predicate on the updated_at field. 525 func (f *AppCoinFilter) WhereUpdatedAt(p entql.Uint32P) { 526 f.Where(p.Field(appcoin.FieldUpdatedAt)) 527 } 528 529 // WhereDeletedAt applies the entql uint32 predicate on the deleted_at field. 530 func (f *AppCoinFilter) WhereDeletedAt(p entql.Uint32P) { 531 f.Where(p.Field(appcoin.FieldDeletedAt)) 532 } 533 534 // WhereEntID applies the entql [16]byte predicate on the ent_id field. 535 func (f *AppCoinFilter) WhereEntID(p entql.ValueP) { 536 f.Where(p.Field(appcoin.FieldEntID)) 537 } 538 539 // WhereAppID applies the entql [16]byte predicate on the app_id field. 540 func (f *AppCoinFilter) WhereAppID(p entql.ValueP) { 541 f.Where(p.Field(appcoin.FieldAppID)) 542 } 543 544 // WhereCoinTypeID applies the entql [16]byte predicate on the coin_type_id field. 545 func (f *AppCoinFilter) WhereCoinTypeID(p entql.ValueP) { 546 f.Where(p.Field(appcoin.FieldCoinTypeID)) 547 } 548 549 // WhereName applies the entql string predicate on the name field. 550 func (f *AppCoinFilter) WhereName(p entql.StringP) { 551 f.Where(p.Field(appcoin.FieldName)) 552 } 553 554 // WhereDisplayNames applies the entql json.RawMessage predicate on the display_names field. 555 func (f *AppCoinFilter) WhereDisplayNames(p entql.BytesP) { 556 f.Where(p.Field(appcoin.FieldDisplayNames)) 557 } 558 559 // WhereLogo applies the entql string predicate on the logo field. 560 func (f *AppCoinFilter) WhereLogo(p entql.StringP) { 561 f.Where(p.Field(appcoin.FieldLogo)) 562 } 563 564 // WhereForPay applies the entql bool predicate on the for_pay field. 565 func (f *AppCoinFilter) WhereForPay(p entql.BoolP) { 566 f.Where(p.Field(appcoin.FieldForPay)) 567 } 568 569 // WhereWithdrawAutoReviewAmount applies the entql other predicate on the withdraw_auto_review_amount field. 570 func (f *AppCoinFilter) WhereWithdrawAutoReviewAmount(p entql.OtherP) { 571 f.Where(p.Field(appcoin.FieldWithdrawAutoReviewAmount)) 572 } 573 574 // WhereProductPage applies the entql string predicate on the product_page field. 575 func (f *AppCoinFilter) WhereProductPage(p entql.StringP) { 576 f.Where(p.Field(appcoin.FieldProductPage)) 577 } 578 579 // WhereDisabled applies the entql bool predicate on the disabled field. 580 func (f *AppCoinFilter) WhereDisabled(p entql.BoolP) { 581 f.Where(p.Field(appcoin.FieldDisabled)) 582 } 583 584 // WhereDailyRewardAmount applies the entql other predicate on the daily_reward_amount field. 585 func (f *AppCoinFilter) WhereDailyRewardAmount(p entql.OtherP) { 586 f.Where(p.Field(appcoin.FieldDailyRewardAmount)) 587 } 588 589 // WhereDisplay applies the entql bool predicate on the display field. 590 func (f *AppCoinFilter) WhereDisplay(p entql.BoolP) { 591 f.Where(p.Field(appcoin.FieldDisplay)) 592 } 593 594 // WhereDisplayIndex applies the entql uint32 predicate on the display_index field. 595 func (f *AppCoinFilter) WhereDisplayIndex(p entql.Uint32P) { 596 f.Where(p.Field(appcoin.FieldDisplayIndex)) 597 } 598 599 // WhereMaxAmountPerWithdraw applies the entql other predicate on the max_amount_per_withdraw field. 600 func (f *AppCoinFilter) WhereMaxAmountPerWithdraw(p entql.OtherP) { 601 f.Where(p.Field(appcoin.FieldMaxAmountPerWithdraw)) 602 } 603 604 // addPredicate implements the predicateAdder interface. 605 func (cbq *ChainBaseQuery) addPredicate(pred func(s *sql.Selector)) { 606 cbq.predicates = append(cbq.predicates, pred) 607 } 608 609 // Filter returns a Filter implementation to apply filters on the ChainBaseQuery builder. 610 func (cbq *ChainBaseQuery) Filter() *ChainBaseFilter { 611 return &ChainBaseFilter{config: cbq.config, predicateAdder: cbq} 612 } 613 614 // addPredicate implements the predicateAdder interface. 615 func (m *ChainBaseMutation) addPredicate(pred func(s *sql.Selector)) { 616 m.predicates = append(m.predicates, pred) 617 } 618 619 // Filter returns an entql.Where implementation to apply filters on the ChainBaseMutation builder. 620 func (m *ChainBaseMutation) Filter() *ChainBaseFilter { 621 return &ChainBaseFilter{config: m.config, predicateAdder: m} 622 } 623 624 // ChainBaseFilter provides a generic filtering capability at runtime for ChainBaseQuery. 625 type ChainBaseFilter struct { 626 predicateAdder 627 config 628 } 629 630 // Where applies the entql predicate on the query filter. 631 func (f *ChainBaseFilter) Where(p entql.P) { 632 f.addPredicate(func(s *sql.Selector) { 633 if err := schemaGraph.EvalP(schemaGraph.Nodes[1].Type, p, s); err != nil { 634 s.AddError(err) 635 } 636 }) 637 } 638 639 // WhereID applies the entql uint32 predicate on the id field. 640 func (f *ChainBaseFilter) WhereID(p entql.Uint32P) { 641 f.Where(p.Field(chainbase.FieldID)) 642 } 643 644 // WhereCreatedAt applies the entql uint32 predicate on the created_at field. 645 func (f *ChainBaseFilter) WhereCreatedAt(p entql.Uint32P) { 646 f.Where(p.Field(chainbase.FieldCreatedAt)) 647 } 648 649 // WhereUpdatedAt applies the entql uint32 predicate on the updated_at field. 650 func (f *ChainBaseFilter) WhereUpdatedAt(p entql.Uint32P) { 651 f.Where(p.Field(chainbase.FieldUpdatedAt)) 652 } 653 654 // WhereDeletedAt applies the entql uint32 predicate on the deleted_at field. 655 func (f *ChainBaseFilter) WhereDeletedAt(p entql.Uint32P) { 656 f.Where(p.Field(chainbase.FieldDeletedAt)) 657 } 658 659 // WhereEntID applies the entql [16]byte predicate on the ent_id field. 660 func (f *ChainBaseFilter) WhereEntID(p entql.ValueP) { 661 f.Where(p.Field(chainbase.FieldEntID)) 662 } 663 664 // WhereName applies the entql string predicate on the name field. 665 func (f *ChainBaseFilter) WhereName(p entql.StringP) { 666 f.Where(p.Field(chainbase.FieldName)) 667 } 668 669 // WhereLogo applies the entql string predicate on the logo field. 670 func (f *ChainBaseFilter) WhereLogo(p entql.StringP) { 671 f.Where(p.Field(chainbase.FieldLogo)) 672 } 673 674 // WhereNativeUnit applies the entql string predicate on the native_unit field. 675 func (f *ChainBaseFilter) WhereNativeUnit(p entql.StringP) { 676 f.Where(p.Field(chainbase.FieldNativeUnit)) 677 } 678 679 // WhereAtomicUnit applies the entql string predicate on the atomic_unit field. 680 func (f *ChainBaseFilter) WhereAtomicUnit(p entql.StringP) { 681 f.Where(p.Field(chainbase.FieldAtomicUnit)) 682 } 683 684 // WhereUnitExp applies the entql uint32 predicate on the unit_exp field. 685 func (f *ChainBaseFilter) WhereUnitExp(p entql.Uint32P) { 686 f.Where(p.Field(chainbase.FieldUnitExp)) 687 } 688 689 // WhereEnv applies the entql string predicate on the env field. 690 func (f *ChainBaseFilter) WhereEnv(p entql.StringP) { 691 f.Where(p.Field(chainbase.FieldEnv)) 692 } 693 694 // WhereChainID applies the entql string predicate on the chain_id field. 695 func (f *ChainBaseFilter) WhereChainID(p entql.StringP) { 696 f.Where(p.Field(chainbase.FieldChainID)) 697 } 698 699 // WhereNickname applies the entql string predicate on the nickname field. 700 func (f *ChainBaseFilter) WhereNickname(p entql.StringP) { 701 f.Where(p.Field(chainbase.FieldNickname)) 702 } 703 704 // WhereGasType applies the entql string predicate on the gas_type field. 705 func (f *ChainBaseFilter) WhereGasType(p entql.StringP) { 706 f.Where(p.Field(chainbase.FieldGasType)) 707 } 708 709 // addPredicate implements the predicateAdder interface. 710 func (cbq *CoinBaseQuery) addPredicate(pred func(s *sql.Selector)) { 711 cbq.predicates = append(cbq.predicates, pred) 712 } 713 714 // Filter returns a Filter implementation to apply filters on the CoinBaseQuery builder. 715 func (cbq *CoinBaseQuery) Filter() *CoinBaseFilter { 716 return &CoinBaseFilter{config: cbq.config, predicateAdder: cbq} 717 } 718 719 // addPredicate implements the predicateAdder interface. 720 func (m *CoinBaseMutation) addPredicate(pred func(s *sql.Selector)) { 721 m.predicates = append(m.predicates, pred) 722 } 723 724 // Filter returns an entql.Where implementation to apply filters on the CoinBaseMutation builder. 725 func (m *CoinBaseMutation) Filter() *CoinBaseFilter { 726 return &CoinBaseFilter{config: m.config, predicateAdder: m} 727 } 728 729 // CoinBaseFilter provides a generic filtering capability at runtime for CoinBaseQuery. 730 type CoinBaseFilter struct { 731 predicateAdder 732 config 733 } 734 735 // Where applies the entql predicate on the query filter. 736 func (f *CoinBaseFilter) Where(p entql.P) { 737 f.addPredicate(func(s *sql.Selector) { 738 if err := schemaGraph.EvalP(schemaGraph.Nodes[2].Type, p, s); err != nil { 739 s.AddError(err) 740 } 741 }) 742 } 743 744 // WhereID applies the entql uint32 predicate on the id field. 745 func (f *CoinBaseFilter) WhereID(p entql.Uint32P) { 746 f.Where(p.Field(coinbase.FieldID)) 747 } 748 749 // WhereCreatedAt applies the entql uint32 predicate on the created_at field. 750 func (f *CoinBaseFilter) WhereCreatedAt(p entql.Uint32P) { 751 f.Where(p.Field(coinbase.FieldCreatedAt)) 752 } 753 754 // WhereUpdatedAt applies the entql uint32 predicate on the updated_at field. 755 func (f *CoinBaseFilter) WhereUpdatedAt(p entql.Uint32P) { 756 f.Where(p.Field(coinbase.FieldUpdatedAt)) 757 } 758 759 // WhereDeletedAt applies the entql uint32 predicate on the deleted_at field. 760 func (f *CoinBaseFilter) WhereDeletedAt(p entql.Uint32P) { 761 f.Where(p.Field(coinbase.FieldDeletedAt)) 762 } 763 764 // WhereEntID applies the entql [16]byte predicate on the ent_id field. 765 func (f *CoinBaseFilter) WhereEntID(p entql.ValueP) { 766 f.Where(p.Field(coinbase.FieldEntID)) 767 } 768 769 // WhereName applies the entql string predicate on the name field. 770 func (f *CoinBaseFilter) WhereName(p entql.StringP) { 771 f.Where(p.Field(coinbase.FieldName)) 772 } 773 774 // WhereLogo applies the entql string predicate on the logo field. 775 func (f *CoinBaseFilter) WhereLogo(p entql.StringP) { 776 f.Where(p.Field(coinbase.FieldLogo)) 777 } 778 779 // WherePresale applies the entql bool predicate on the presale field. 780 func (f *CoinBaseFilter) WherePresale(p entql.BoolP) { 781 f.Where(p.Field(coinbase.FieldPresale)) 782 } 783 784 // WhereUnit applies the entql string predicate on the unit field. 785 func (f *CoinBaseFilter) WhereUnit(p entql.StringP) { 786 f.Where(p.Field(coinbase.FieldUnit)) 787 } 788 789 // WhereEnv applies the entql string predicate on the env field. 790 func (f *CoinBaseFilter) WhereEnv(p entql.StringP) { 791 f.Where(p.Field(coinbase.FieldEnv)) 792 } 793 794 // WhereReservedAmount applies the entql other predicate on the reserved_amount field. 795 func (f *CoinBaseFilter) WhereReservedAmount(p entql.OtherP) { 796 f.Where(p.Field(coinbase.FieldReservedAmount)) 797 } 798 799 // WhereForPay applies the entql bool predicate on the for_pay field. 800 func (f *CoinBaseFilter) WhereForPay(p entql.BoolP) { 801 f.Where(p.Field(coinbase.FieldForPay)) 802 } 803 804 // WhereDisabled applies the entql bool predicate on the disabled field. 805 func (f *CoinBaseFilter) WhereDisabled(p entql.BoolP) { 806 f.Where(p.Field(coinbase.FieldDisabled)) 807 } 808 809 // addPredicate implements the predicateAdder interface. 810 func (cdq *CoinDescriptionQuery) addPredicate(pred func(s *sql.Selector)) { 811 cdq.predicates = append(cdq.predicates, pred) 812 } 813 814 // Filter returns a Filter implementation to apply filters on the CoinDescriptionQuery builder. 815 func (cdq *CoinDescriptionQuery) Filter() *CoinDescriptionFilter { 816 return &CoinDescriptionFilter{config: cdq.config, predicateAdder: cdq} 817 } 818 819 // addPredicate implements the predicateAdder interface. 820 func (m *CoinDescriptionMutation) addPredicate(pred func(s *sql.Selector)) { 821 m.predicates = append(m.predicates, pred) 822 } 823 824 // Filter returns an entql.Where implementation to apply filters on the CoinDescriptionMutation builder. 825 func (m *CoinDescriptionMutation) Filter() *CoinDescriptionFilter { 826 return &CoinDescriptionFilter{config: m.config, predicateAdder: m} 827 } 828 829 // CoinDescriptionFilter provides a generic filtering capability at runtime for CoinDescriptionQuery. 830 type CoinDescriptionFilter struct { 831 predicateAdder 832 config 833 } 834 835 // Where applies the entql predicate on the query filter. 836 func (f *CoinDescriptionFilter) Where(p entql.P) { 837 f.addPredicate(func(s *sql.Selector) { 838 if err := schemaGraph.EvalP(schemaGraph.Nodes[3].Type, p, s); err != nil { 839 s.AddError(err) 840 } 841 }) 842 } 843 844 // WhereID applies the entql uint32 predicate on the id field. 845 func (f *CoinDescriptionFilter) WhereID(p entql.Uint32P) { 846 f.Where(p.Field(coindescription.FieldID)) 847 } 848 849 // WhereCreatedAt applies the entql uint32 predicate on the created_at field. 850 func (f *CoinDescriptionFilter) WhereCreatedAt(p entql.Uint32P) { 851 f.Where(p.Field(coindescription.FieldCreatedAt)) 852 } 853 854 // WhereUpdatedAt applies the entql uint32 predicate on the updated_at field. 855 func (f *CoinDescriptionFilter) WhereUpdatedAt(p entql.Uint32P) { 856 f.Where(p.Field(coindescription.FieldUpdatedAt)) 857 } 858 859 // WhereDeletedAt applies the entql uint32 predicate on the deleted_at field. 860 func (f *CoinDescriptionFilter) WhereDeletedAt(p entql.Uint32P) { 861 f.Where(p.Field(coindescription.FieldDeletedAt)) 862 } 863 864 // WhereEntID applies the entql [16]byte predicate on the ent_id field. 865 func (f *CoinDescriptionFilter) WhereEntID(p entql.ValueP) { 866 f.Where(p.Field(coindescription.FieldEntID)) 867 } 868 869 // WhereAppID applies the entql [16]byte predicate on the app_id field. 870 func (f *CoinDescriptionFilter) WhereAppID(p entql.ValueP) { 871 f.Where(p.Field(coindescription.FieldAppID)) 872 } 873 874 // WhereCoinTypeID applies the entql [16]byte predicate on the coin_type_id field. 875 func (f *CoinDescriptionFilter) WhereCoinTypeID(p entql.ValueP) { 876 f.Where(p.Field(coindescription.FieldCoinTypeID)) 877 } 878 879 // WhereUsedFor applies the entql string predicate on the used_for field. 880 func (f *CoinDescriptionFilter) WhereUsedFor(p entql.StringP) { 881 f.Where(p.Field(coindescription.FieldUsedFor)) 882 } 883 884 // WhereTitle applies the entql string predicate on the title field. 885 func (f *CoinDescriptionFilter) WhereTitle(p entql.StringP) { 886 f.Where(p.Field(coindescription.FieldTitle)) 887 } 888 889 // WhereMessage applies the entql string predicate on the message field. 890 func (f *CoinDescriptionFilter) WhereMessage(p entql.StringP) { 891 f.Where(p.Field(coindescription.FieldMessage)) 892 } 893 894 // addPredicate implements the predicateAdder interface. 895 func (ceq *CoinExtraQuery) addPredicate(pred func(s *sql.Selector)) { 896 ceq.predicates = append(ceq.predicates, pred) 897 } 898 899 // Filter returns a Filter implementation to apply filters on the CoinExtraQuery builder. 900 func (ceq *CoinExtraQuery) Filter() *CoinExtraFilter { 901 return &CoinExtraFilter{config: ceq.config, predicateAdder: ceq} 902 } 903 904 // addPredicate implements the predicateAdder interface. 905 func (m *CoinExtraMutation) addPredicate(pred func(s *sql.Selector)) { 906 m.predicates = append(m.predicates, pred) 907 } 908 909 // Filter returns an entql.Where implementation to apply filters on the CoinExtraMutation builder. 910 func (m *CoinExtraMutation) Filter() *CoinExtraFilter { 911 return &CoinExtraFilter{config: m.config, predicateAdder: m} 912 } 913 914 // CoinExtraFilter provides a generic filtering capability at runtime for CoinExtraQuery. 915 type CoinExtraFilter struct { 916 predicateAdder 917 config 918 } 919 920 // Where applies the entql predicate on the query filter. 921 func (f *CoinExtraFilter) Where(p entql.P) { 922 f.addPredicate(func(s *sql.Selector) { 923 if err := schemaGraph.EvalP(schemaGraph.Nodes[4].Type, p, s); err != nil { 924 s.AddError(err) 925 } 926 }) 927 } 928 929 // WhereID applies the entql uint32 predicate on the id field. 930 func (f *CoinExtraFilter) WhereID(p entql.Uint32P) { 931 f.Where(p.Field(coinextra.FieldID)) 932 } 933 934 // WhereCreatedAt applies the entql uint32 predicate on the created_at field. 935 func (f *CoinExtraFilter) WhereCreatedAt(p entql.Uint32P) { 936 f.Where(p.Field(coinextra.FieldCreatedAt)) 937 } 938 939 // WhereUpdatedAt applies the entql uint32 predicate on the updated_at field. 940 func (f *CoinExtraFilter) WhereUpdatedAt(p entql.Uint32P) { 941 f.Where(p.Field(coinextra.FieldUpdatedAt)) 942 } 943 944 // WhereDeletedAt applies the entql uint32 predicate on the deleted_at field. 945 func (f *CoinExtraFilter) WhereDeletedAt(p entql.Uint32P) { 946 f.Where(p.Field(coinextra.FieldDeletedAt)) 947 } 948 949 // WhereEntID applies the entql [16]byte predicate on the ent_id field. 950 func (f *CoinExtraFilter) WhereEntID(p entql.ValueP) { 951 f.Where(p.Field(coinextra.FieldEntID)) 952 } 953 954 // WhereCoinTypeID applies the entql [16]byte predicate on the coin_type_id field. 955 func (f *CoinExtraFilter) WhereCoinTypeID(p entql.ValueP) { 956 f.Where(p.Field(coinextra.FieldCoinTypeID)) 957 } 958 959 // WhereHomePage applies the entql string predicate on the home_page field. 960 func (f *CoinExtraFilter) WhereHomePage(p entql.StringP) { 961 f.Where(p.Field(coinextra.FieldHomePage)) 962 } 963 964 // WhereSpecs applies the entql string predicate on the specs field. 965 func (f *CoinExtraFilter) WhereSpecs(p entql.StringP) { 966 f.Where(p.Field(coinextra.FieldSpecs)) 967 } 968 969 // WhereStableUsd applies the entql bool predicate on the stable_usd field. 970 func (f *CoinExtraFilter) WhereStableUsd(p entql.BoolP) { 971 f.Where(p.Field(coinextra.FieldStableUsd)) 972 } 973 974 // addPredicate implements the predicateAdder interface. 975 func (cfq *CoinFiatQuery) addPredicate(pred func(s *sql.Selector)) { 976 cfq.predicates = append(cfq.predicates, pred) 977 } 978 979 // Filter returns a Filter implementation to apply filters on the CoinFiatQuery builder. 980 func (cfq *CoinFiatQuery) Filter() *CoinFiatFilter { 981 return &CoinFiatFilter{config: cfq.config, predicateAdder: cfq} 982 } 983 984 // addPredicate implements the predicateAdder interface. 985 func (m *CoinFiatMutation) addPredicate(pred func(s *sql.Selector)) { 986 m.predicates = append(m.predicates, pred) 987 } 988 989 // Filter returns an entql.Where implementation to apply filters on the CoinFiatMutation builder. 990 func (m *CoinFiatMutation) Filter() *CoinFiatFilter { 991 return &CoinFiatFilter{config: m.config, predicateAdder: m} 992 } 993 994 // CoinFiatFilter provides a generic filtering capability at runtime for CoinFiatQuery. 995 type CoinFiatFilter struct { 996 predicateAdder 997 config 998 } 999 1000 // Where applies the entql predicate on the query filter. 1001 func (f *CoinFiatFilter) Where(p entql.P) { 1002 f.addPredicate(func(s *sql.Selector) { 1003 if err := schemaGraph.EvalP(schemaGraph.Nodes[5].Type, p, s); err != nil { 1004 s.AddError(err) 1005 } 1006 }) 1007 } 1008 1009 // WhereID applies the entql uint32 predicate on the id field. 1010 func (f *CoinFiatFilter) WhereID(p entql.Uint32P) { 1011 f.Where(p.Field(coinfiat.FieldID)) 1012 } 1013 1014 // WhereCreatedAt applies the entql uint32 predicate on the created_at field. 1015 func (f *CoinFiatFilter) WhereCreatedAt(p entql.Uint32P) { 1016 f.Where(p.Field(coinfiat.FieldCreatedAt)) 1017 } 1018 1019 // WhereUpdatedAt applies the entql uint32 predicate on the updated_at field. 1020 func (f *CoinFiatFilter) WhereUpdatedAt(p entql.Uint32P) { 1021 f.Where(p.Field(coinfiat.FieldUpdatedAt)) 1022 } 1023 1024 // WhereDeletedAt applies the entql uint32 predicate on the deleted_at field. 1025 func (f *CoinFiatFilter) WhereDeletedAt(p entql.Uint32P) { 1026 f.Where(p.Field(coinfiat.FieldDeletedAt)) 1027 } 1028 1029 // WhereEntID applies the entql [16]byte predicate on the ent_id field. 1030 func (f *CoinFiatFilter) WhereEntID(p entql.ValueP) { 1031 f.Where(p.Field(coinfiat.FieldEntID)) 1032 } 1033 1034 // WhereCoinTypeID applies the entql [16]byte predicate on the coin_type_id field. 1035 func (f *CoinFiatFilter) WhereCoinTypeID(p entql.ValueP) { 1036 f.Where(p.Field(coinfiat.FieldCoinTypeID)) 1037 } 1038 1039 // WhereFiatID applies the entql [16]byte predicate on the fiat_id field. 1040 func (f *CoinFiatFilter) WhereFiatID(p entql.ValueP) { 1041 f.Where(p.Field(coinfiat.FieldFiatID)) 1042 } 1043 1044 // WhereFeedType applies the entql string predicate on the feed_type field. 1045 func (f *CoinFiatFilter) WhereFeedType(p entql.StringP) { 1046 f.Where(p.Field(coinfiat.FieldFeedType)) 1047 } 1048 1049 // addPredicate implements the predicateAdder interface. 1050 func (cfcq *CoinFiatCurrencyQuery) addPredicate(pred func(s *sql.Selector)) { 1051 cfcq.predicates = append(cfcq.predicates, pred) 1052 } 1053 1054 // Filter returns a Filter implementation to apply filters on the CoinFiatCurrencyQuery builder. 1055 func (cfcq *CoinFiatCurrencyQuery) Filter() *CoinFiatCurrencyFilter { 1056 return &CoinFiatCurrencyFilter{config: cfcq.config, predicateAdder: cfcq} 1057 } 1058 1059 // addPredicate implements the predicateAdder interface. 1060 func (m *CoinFiatCurrencyMutation) addPredicate(pred func(s *sql.Selector)) { 1061 m.predicates = append(m.predicates, pred) 1062 } 1063 1064 // Filter returns an entql.Where implementation to apply filters on the CoinFiatCurrencyMutation builder. 1065 func (m *CoinFiatCurrencyMutation) Filter() *CoinFiatCurrencyFilter { 1066 return &CoinFiatCurrencyFilter{config: m.config, predicateAdder: m} 1067 } 1068 1069 // CoinFiatCurrencyFilter provides a generic filtering capability at runtime for CoinFiatCurrencyQuery. 1070 type CoinFiatCurrencyFilter struct { 1071 predicateAdder 1072 config 1073 } 1074 1075 // Where applies the entql predicate on the query filter. 1076 func (f *CoinFiatCurrencyFilter) Where(p entql.P) { 1077 f.addPredicate(func(s *sql.Selector) { 1078 if err := schemaGraph.EvalP(schemaGraph.Nodes[6].Type, p, s); err != nil { 1079 s.AddError(err) 1080 } 1081 }) 1082 } 1083 1084 // WhereID applies the entql uint32 predicate on the id field. 1085 func (f *CoinFiatCurrencyFilter) WhereID(p entql.Uint32P) { 1086 f.Where(p.Field(coinfiatcurrency.FieldID)) 1087 } 1088 1089 // WhereCreatedAt applies the entql uint32 predicate on the created_at field. 1090 func (f *CoinFiatCurrencyFilter) WhereCreatedAt(p entql.Uint32P) { 1091 f.Where(p.Field(coinfiatcurrency.FieldCreatedAt)) 1092 } 1093 1094 // WhereUpdatedAt applies the entql uint32 predicate on the updated_at field. 1095 func (f *CoinFiatCurrencyFilter) WhereUpdatedAt(p entql.Uint32P) { 1096 f.Where(p.Field(coinfiatcurrency.FieldUpdatedAt)) 1097 } 1098 1099 // WhereDeletedAt applies the entql uint32 predicate on the deleted_at field. 1100 func (f *CoinFiatCurrencyFilter) WhereDeletedAt(p entql.Uint32P) { 1101 f.Where(p.Field(coinfiatcurrency.FieldDeletedAt)) 1102 } 1103 1104 // WhereEntID applies the entql [16]byte predicate on the ent_id field. 1105 func (f *CoinFiatCurrencyFilter) WhereEntID(p entql.ValueP) { 1106 f.Where(p.Field(coinfiatcurrency.FieldEntID)) 1107 } 1108 1109 // WhereCoinTypeID applies the entql [16]byte predicate on the coin_type_id field. 1110 func (f *CoinFiatCurrencyFilter) WhereCoinTypeID(p entql.ValueP) { 1111 f.Where(p.Field(coinfiatcurrency.FieldCoinTypeID)) 1112 } 1113 1114 // WhereFiatID applies the entql [16]byte predicate on the fiat_id field. 1115 func (f *CoinFiatCurrencyFilter) WhereFiatID(p entql.ValueP) { 1116 f.Where(p.Field(coinfiatcurrency.FieldFiatID)) 1117 } 1118 1119 // WhereFeedType applies the entql string predicate on the feed_type field. 1120 func (f *CoinFiatCurrencyFilter) WhereFeedType(p entql.StringP) { 1121 f.Where(p.Field(coinfiatcurrency.FieldFeedType)) 1122 } 1123 1124 // WhereMarketValueLow applies the entql other predicate on the market_value_low field. 1125 func (f *CoinFiatCurrencyFilter) WhereMarketValueLow(p entql.OtherP) { 1126 f.Where(p.Field(coinfiatcurrency.FieldMarketValueLow)) 1127 } 1128 1129 // WhereMarketValueHigh applies the entql other predicate on the market_value_high field. 1130 func (f *CoinFiatCurrencyFilter) WhereMarketValueHigh(p entql.OtherP) { 1131 f.Where(p.Field(coinfiatcurrency.FieldMarketValueHigh)) 1132 } 1133 1134 // addPredicate implements the predicateAdder interface. 1135 func (cfchq *CoinFiatCurrencyHistoryQuery) addPredicate(pred func(s *sql.Selector)) { 1136 cfchq.predicates = append(cfchq.predicates, pred) 1137 } 1138 1139 // Filter returns a Filter implementation to apply filters on the CoinFiatCurrencyHistoryQuery builder. 1140 func (cfchq *CoinFiatCurrencyHistoryQuery) Filter() *CoinFiatCurrencyHistoryFilter { 1141 return &CoinFiatCurrencyHistoryFilter{config: cfchq.config, predicateAdder: cfchq} 1142 } 1143 1144 // addPredicate implements the predicateAdder interface. 1145 func (m *CoinFiatCurrencyHistoryMutation) addPredicate(pred func(s *sql.Selector)) { 1146 m.predicates = append(m.predicates, pred) 1147 } 1148 1149 // Filter returns an entql.Where implementation to apply filters on the CoinFiatCurrencyHistoryMutation builder. 1150 func (m *CoinFiatCurrencyHistoryMutation) Filter() *CoinFiatCurrencyHistoryFilter { 1151 return &CoinFiatCurrencyHistoryFilter{config: m.config, predicateAdder: m} 1152 } 1153 1154 // CoinFiatCurrencyHistoryFilter provides a generic filtering capability at runtime for CoinFiatCurrencyHistoryQuery. 1155 type CoinFiatCurrencyHistoryFilter struct { 1156 predicateAdder 1157 config 1158 } 1159 1160 // Where applies the entql predicate on the query filter. 1161 func (f *CoinFiatCurrencyHistoryFilter) Where(p entql.P) { 1162 f.addPredicate(func(s *sql.Selector) { 1163 if err := schemaGraph.EvalP(schemaGraph.Nodes[7].Type, p, s); err != nil { 1164 s.AddError(err) 1165 } 1166 }) 1167 } 1168 1169 // WhereID applies the entql uint32 predicate on the id field. 1170 func (f *CoinFiatCurrencyHistoryFilter) WhereID(p entql.Uint32P) { 1171 f.Where(p.Field(coinfiatcurrencyhistory.FieldID)) 1172 } 1173 1174 // WhereCreatedAt applies the entql uint32 predicate on the created_at field. 1175 func (f *CoinFiatCurrencyHistoryFilter) WhereCreatedAt(p entql.Uint32P) { 1176 f.Where(p.Field(coinfiatcurrencyhistory.FieldCreatedAt)) 1177 } 1178 1179 // WhereUpdatedAt applies the entql uint32 predicate on the updated_at field. 1180 func (f *CoinFiatCurrencyHistoryFilter) WhereUpdatedAt(p entql.Uint32P) { 1181 f.Where(p.Field(coinfiatcurrencyhistory.FieldUpdatedAt)) 1182 } 1183 1184 // WhereDeletedAt applies the entql uint32 predicate on the deleted_at field. 1185 func (f *CoinFiatCurrencyHistoryFilter) WhereDeletedAt(p entql.Uint32P) { 1186 f.Where(p.Field(coinfiatcurrencyhistory.FieldDeletedAt)) 1187 } 1188 1189 // WhereEntID applies the entql [16]byte predicate on the ent_id field. 1190 func (f *CoinFiatCurrencyHistoryFilter) WhereEntID(p entql.ValueP) { 1191 f.Where(p.Field(coinfiatcurrencyhistory.FieldEntID)) 1192 } 1193 1194 // WhereCoinTypeID applies the entql [16]byte predicate on the coin_type_id field. 1195 func (f *CoinFiatCurrencyHistoryFilter) WhereCoinTypeID(p entql.ValueP) { 1196 f.Where(p.Field(coinfiatcurrencyhistory.FieldCoinTypeID)) 1197 } 1198 1199 // WhereFiatID applies the entql [16]byte predicate on the fiat_id field. 1200 func (f *CoinFiatCurrencyHistoryFilter) WhereFiatID(p entql.ValueP) { 1201 f.Where(p.Field(coinfiatcurrencyhistory.FieldFiatID)) 1202 } 1203 1204 // WhereFeedType applies the entql string predicate on the feed_type field. 1205 func (f *CoinFiatCurrencyHistoryFilter) WhereFeedType(p entql.StringP) { 1206 f.Where(p.Field(coinfiatcurrencyhistory.FieldFeedType)) 1207 } 1208 1209 // WhereMarketValueLow applies the entql other predicate on the market_value_low field. 1210 func (f *CoinFiatCurrencyHistoryFilter) WhereMarketValueLow(p entql.OtherP) { 1211 f.Where(p.Field(coinfiatcurrencyhistory.FieldMarketValueLow)) 1212 } 1213 1214 // WhereMarketValueHigh applies the entql other predicate on the market_value_high field. 1215 func (f *CoinFiatCurrencyHistoryFilter) WhereMarketValueHigh(p entql.OtherP) { 1216 f.Where(p.Field(coinfiatcurrencyhistory.FieldMarketValueHigh)) 1217 } 1218 1219 // addPredicate implements the predicateAdder interface. 1220 func (cufq *CoinUsedForQuery) addPredicate(pred func(s *sql.Selector)) { 1221 cufq.predicates = append(cufq.predicates, pred) 1222 } 1223 1224 // Filter returns a Filter implementation to apply filters on the CoinUsedForQuery builder. 1225 func (cufq *CoinUsedForQuery) Filter() *CoinUsedForFilter { 1226 return &CoinUsedForFilter{config: cufq.config, predicateAdder: cufq} 1227 } 1228 1229 // addPredicate implements the predicateAdder interface. 1230 func (m *CoinUsedForMutation) addPredicate(pred func(s *sql.Selector)) { 1231 m.predicates = append(m.predicates, pred) 1232 } 1233 1234 // Filter returns an entql.Where implementation to apply filters on the CoinUsedForMutation builder. 1235 func (m *CoinUsedForMutation) Filter() *CoinUsedForFilter { 1236 return &CoinUsedForFilter{config: m.config, predicateAdder: m} 1237 } 1238 1239 // CoinUsedForFilter provides a generic filtering capability at runtime for CoinUsedForQuery. 1240 type CoinUsedForFilter struct { 1241 predicateAdder 1242 config 1243 } 1244 1245 // Where applies the entql predicate on the query filter. 1246 func (f *CoinUsedForFilter) Where(p entql.P) { 1247 f.addPredicate(func(s *sql.Selector) { 1248 if err := schemaGraph.EvalP(schemaGraph.Nodes[8].Type, p, s); err != nil { 1249 s.AddError(err) 1250 } 1251 }) 1252 } 1253 1254 // WhereID applies the entql uint32 predicate on the id field. 1255 func (f *CoinUsedForFilter) WhereID(p entql.Uint32P) { 1256 f.Where(p.Field(coinusedfor.FieldID)) 1257 } 1258 1259 // WhereCreatedAt applies the entql uint32 predicate on the created_at field. 1260 func (f *CoinUsedForFilter) WhereCreatedAt(p entql.Uint32P) { 1261 f.Where(p.Field(coinusedfor.FieldCreatedAt)) 1262 } 1263 1264 // WhereUpdatedAt applies the entql uint32 predicate on the updated_at field. 1265 func (f *CoinUsedForFilter) WhereUpdatedAt(p entql.Uint32P) { 1266 f.Where(p.Field(coinusedfor.FieldUpdatedAt)) 1267 } 1268 1269 // WhereDeletedAt applies the entql uint32 predicate on the deleted_at field. 1270 func (f *CoinUsedForFilter) WhereDeletedAt(p entql.Uint32P) { 1271 f.Where(p.Field(coinusedfor.FieldDeletedAt)) 1272 } 1273 1274 // WhereEntID applies the entql [16]byte predicate on the ent_id field. 1275 func (f *CoinUsedForFilter) WhereEntID(p entql.ValueP) { 1276 f.Where(p.Field(coinusedfor.FieldEntID)) 1277 } 1278 1279 // WhereCoinTypeID applies the entql [16]byte predicate on the coin_type_id field. 1280 func (f *CoinUsedForFilter) WhereCoinTypeID(p entql.ValueP) { 1281 f.Where(p.Field(coinusedfor.FieldCoinTypeID)) 1282 } 1283 1284 // WhereUsedFor applies the entql string predicate on the used_for field. 1285 func (f *CoinUsedForFilter) WhereUsedFor(p entql.StringP) { 1286 f.Where(p.Field(coinusedfor.FieldUsedFor)) 1287 } 1288 1289 // WherePriority applies the entql uint32 predicate on the priority field. 1290 func (f *CoinUsedForFilter) WherePriority(p entql.Uint32P) { 1291 f.Where(p.Field(coinusedfor.FieldPriority)) 1292 } 1293 1294 // addPredicate implements the predicateAdder interface. 1295 func (cq *CurrencyQuery) addPredicate(pred func(s *sql.Selector)) { 1296 cq.predicates = append(cq.predicates, pred) 1297 } 1298 1299 // Filter returns a Filter implementation to apply filters on the CurrencyQuery builder. 1300 func (cq *CurrencyQuery) Filter() *CurrencyFilter { 1301 return &CurrencyFilter{config: cq.config, predicateAdder: cq} 1302 } 1303 1304 // addPredicate implements the predicateAdder interface. 1305 func (m *CurrencyMutation) addPredicate(pred func(s *sql.Selector)) { 1306 m.predicates = append(m.predicates, pred) 1307 } 1308 1309 // Filter returns an entql.Where implementation to apply filters on the CurrencyMutation builder. 1310 func (m *CurrencyMutation) Filter() *CurrencyFilter { 1311 return &CurrencyFilter{config: m.config, predicateAdder: m} 1312 } 1313 1314 // CurrencyFilter provides a generic filtering capability at runtime for CurrencyQuery. 1315 type CurrencyFilter struct { 1316 predicateAdder 1317 config 1318 } 1319 1320 // Where applies the entql predicate on the query filter. 1321 func (f *CurrencyFilter) Where(p entql.P) { 1322 f.addPredicate(func(s *sql.Selector) { 1323 if err := schemaGraph.EvalP(schemaGraph.Nodes[9].Type, p, s); err != nil { 1324 s.AddError(err) 1325 } 1326 }) 1327 } 1328 1329 // WhereID applies the entql uint32 predicate on the id field. 1330 func (f *CurrencyFilter) WhereID(p entql.Uint32P) { 1331 f.Where(p.Field(currency.FieldID)) 1332 } 1333 1334 // WhereCreatedAt applies the entql uint32 predicate on the created_at field. 1335 func (f *CurrencyFilter) WhereCreatedAt(p entql.Uint32P) { 1336 f.Where(p.Field(currency.FieldCreatedAt)) 1337 } 1338 1339 // WhereUpdatedAt applies the entql uint32 predicate on the updated_at field. 1340 func (f *CurrencyFilter) WhereUpdatedAt(p entql.Uint32P) { 1341 f.Where(p.Field(currency.FieldUpdatedAt)) 1342 } 1343 1344 // WhereDeletedAt applies the entql uint32 predicate on the deleted_at field. 1345 func (f *CurrencyFilter) WhereDeletedAt(p entql.Uint32P) { 1346 f.Where(p.Field(currency.FieldDeletedAt)) 1347 } 1348 1349 // WhereEntID applies the entql [16]byte predicate on the ent_id field. 1350 func (f *CurrencyFilter) WhereEntID(p entql.ValueP) { 1351 f.Where(p.Field(currency.FieldEntID)) 1352 } 1353 1354 // WhereCoinTypeID applies the entql [16]byte predicate on the coin_type_id field. 1355 func (f *CurrencyFilter) WhereCoinTypeID(p entql.ValueP) { 1356 f.Where(p.Field(currency.FieldCoinTypeID)) 1357 } 1358 1359 // WhereFeedType applies the entql string predicate on the feed_type field. 1360 func (f *CurrencyFilter) WhereFeedType(p entql.StringP) { 1361 f.Where(p.Field(currency.FieldFeedType)) 1362 } 1363 1364 // WhereMarketValueHigh applies the entql other predicate on the market_value_high field. 1365 func (f *CurrencyFilter) WhereMarketValueHigh(p entql.OtherP) { 1366 f.Where(p.Field(currency.FieldMarketValueHigh)) 1367 } 1368 1369 // WhereMarketValueLow applies the entql other predicate on the market_value_low field. 1370 func (f *CurrencyFilter) WhereMarketValueLow(p entql.OtherP) { 1371 f.Where(p.Field(currency.FieldMarketValueLow)) 1372 } 1373 1374 // addPredicate implements the predicateAdder interface. 1375 func (cfq *CurrencyFeedQuery) addPredicate(pred func(s *sql.Selector)) { 1376 cfq.predicates = append(cfq.predicates, pred) 1377 } 1378 1379 // Filter returns a Filter implementation to apply filters on the CurrencyFeedQuery builder. 1380 func (cfq *CurrencyFeedQuery) Filter() *CurrencyFeedFilter { 1381 return &CurrencyFeedFilter{config: cfq.config, predicateAdder: cfq} 1382 } 1383 1384 // addPredicate implements the predicateAdder interface. 1385 func (m *CurrencyFeedMutation) addPredicate(pred func(s *sql.Selector)) { 1386 m.predicates = append(m.predicates, pred) 1387 } 1388 1389 // Filter returns an entql.Where implementation to apply filters on the CurrencyFeedMutation builder. 1390 func (m *CurrencyFeedMutation) Filter() *CurrencyFeedFilter { 1391 return &CurrencyFeedFilter{config: m.config, predicateAdder: m} 1392 } 1393 1394 // CurrencyFeedFilter provides a generic filtering capability at runtime for CurrencyFeedQuery. 1395 type CurrencyFeedFilter struct { 1396 predicateAdder 1397 config 1398 } 1399 1400 // Where applies the entql predicate on the query filter. 1401 func (f *CurrencyFeedFilter) Where(p entql.P) { 1402 f.addPredicate(func(s *sql.Selector) { 1403 if err := schemaGraph.EvalP(schemaGraph.Nodes[10].Type, p, s); err != nil { 1404 s.AddError(err) 1405 } 1406 }) 1407 } 1408 1409 // WhereID applies the entql uint32 predicate on the id field. 1410 func (f *CurrencyFeedFilter) WhereID(p entql.Uint32P) { 1411 f.Where(p.Field(currencyfeed.FieldID)) 1412 } 1413 1414 // WhereCreatedAt applies the entql uint32 predicate on the created_at field. 1415 func (f *CurrencyFeedFilter) WhereCreatedAt(p entql.Uint32P) { 1416 f.Where(p.Field(currencyfeed.FieldCreatedAt)) 1417 } 1418 1419 // WhereUpdatedAt applies the entql uint32 predicate on the updated_at field. 1420 func (f *CurrencyFeedFilter) WhereUpdatedAt(p entql.Uint32P) { 1421 f.Where(p.Field(currencyfeed.FieldUpdatedAt)) 1422 } 1423 1424 // WhereDeletedAt applies the entql uint32 predicate on the deleted_at field. 1425 func (f *CurrencyFeedFilter) WhereDeletedAt(p entql.Uint32P) { 1426 f.Where(p.Field(currencyfeed.FieldDeletedAt)) 1427 } 1428 1429 // WhereEntID applies the entql [16]byte predicate on the ent_id field. 1430 func (f *CurrencyFeedFilter) WhereEntID(p entql.ValueP) { 1431 f.Where(p.Field(currencyfeed.FieldEntID)) 1432 } 1433 1434 // WhereCoinTypeID applies the entql [16]byte predicate on the coin_type_id field. 1435 func (f *CurrencyFeedFilter) WhereCoinTypeID(p entql.ValueP) { 1436 f.Where(p.Field(currencyfeed.FieldCoinTypeID)) 1437 } 1438 1439 // WhereFeedType applies the entql string predicate on the feed_type field. 1440 func (f *CurrencyFeedFilter) WhereFeedType(p entql.StringP) { 1441 f.Where(p.Field(currencyfeed.FieldFeedType)) 1442 } 1443 1444 // WhereFeedCoinName applies the entql string predicate on the feed_coin_name field. 1445 func (f *CurrencyFeedFilter) WhereFeedCoinName(p entql.StringP) { 1446 f.Where(p.Field(currencyfeed.FieldFeedCoinName)) 1447 } 1448 1449 // WhereDisabled applies the entql bool predicate on the disabled field. 1450 func (f *CurrencyFeedFilter) WhereDisabled(p entql.BoolP) { 1451 f.Where(p.Field(currencyfeed.FieldDisabled)) 1452 } 1453 1454 // addPredicate implements the predicateAdder interface. 1455 func (chq *CurrencyHistoryQuery) addPredicate(pred func(s *sql.Selector)) { 1456 chq.predicates = append(chq.predicates, pred) 1457 } 1458 1459 // Filter returns a Filter implementation to apply filters on the CurrencyHistoryQuery builder. 1460 func (chq *CurrencyHistoryQuery) Filter() *CurrencyHistoryFilter { 1461 return &CurrencyHistoryFilter{config: chq.config, predicateAdder: chq} 1462 } 1463 1464 // addPredicate implements the predicateAdder interface. 1465 func (m *CurrencyHistoryMutation) addPredicate(pred func(s *sql.Selector)) { 1466 m.predicates = append(m.predicates, pred) 1467 } 1468 1469 // Filter returns an entql.Where implementation to apply filters on the CurrencyHistoryMutation builder. 1470 func (m *CurrencyHistoryMutation) Filter() *CurrencyHistoryFilter { 1471 return &CurrencyHistoryFilter{config: m.config, predicateAdder: m} 1472 } 1473 1474 // CurrencyHistoryFilter provides a generic filtering capability at runtime for CurrencyHistoryQuery. 1475 type CurrencyHistoryFilter struct { 1476 predicateAdder 1477 config 1478 } 1479 1480 // Where applies the entql predicate on the query filter. 1481 func (f *CurrencyHistoryFilter) Where(p entql.P) { 1482 f.addPredicate(func(s *sql.Selector) { 1483 if err := schemaGraph.EvalP(schemaGraph.Nodes[11].Type, p, s); err != nil { 1484 s.AddError(err) 1485 } 1486 }) 1487 } 1488 1489 // WhereID applies the entql uint32 predicate on the id field. 1490 func (f *CurrencyHistoryFilter) WhereID(p entql.Uint32P) { 1491 f.Where(p.Field(currencyhistory.FieldID)) 1492 } 1493 1494 // WhereCreatedAt applies the entql uint32 predicate on the created_at field. 1495 func (f *CurrencyHistoryFilter) WhereCreatedAt(p entql.Uint32P) { 1496 f.Where(p.Field(currencyhistory.FieldCreatedAt)) 1497 } 1498 1499 // WhereUpdatedAt applies the entql uint32 predicate on the updated_at field. 1500 func (f *CurrencyHistoryFilter) WhereUpdatedAt(p entql.Uint32P) { 1501 f.Where(p.Field(currencyhistory.FieldUpdatedAt)) 1502 } 1503 1504 // WhereDeletedAt applies the entql uint32 predicate on the deleted_at field. 1505 func (f *CurrencyHistoryFilter) WhereDeletedAt(p entql.Uint32P) { 1506 f.Where(p.Field(currencyhistory.FieldDeletedAt)) 1507 } 1508 1509 // WhereEntID applies the entql [16]byte predicate on the ent_id field. 1510 func (f *CurrencyHistoryFilter) WhereEntID(p entql.ValueP) { 1511 f.Where(p.Field(currencyhistory.FieldEntID)) 1512 } 1513 1514 // WhereCoinTypeID applies the entql [16]byte predicate on the coin_type_id field. 1515 func (f *CurrencyHistoryFilter) WhereCoinTypeID(p entql.ValueP) { 1516 f.Where(p.Field(currencyhistory.FieldCoinTypeID)) 1517 } 1518 1519 // WhereFeedType applies the entql string predicate on the feed_type field. 1520 func (f *CurrencyHistoryFilter) WhereFeedType(p entql.StringP) { 1521 f.Where(p.Field(currencyhistory.FieldFeedType)) 1522 } 1523 1524 // WhereMarketValueHigh applies the entql other predicate on the market_value_high field. 1525 func (f *CurrencyHistoryFilter) WhereMarketValueHigh(p entql.OtherP) { 1526 f.Where(p.Field(currencyhistory.FieldMarketValueHigh)) 1527 } 1528 1529 // WhereMarketValueLow applies the entql other predicate on the market_value_low field. 1530 func (f *CurrencyHistoryFilter) WhereMarketValueLow(p entql.OtherP) { 1531 f.Where(p.Field(currencyhistory.FieldMarketValueLow)) 1532 } 1533 1534 // addPredicate implements the predicateAdder interface. 1535 func (erq *ExchangeRateQuery) addPredicate(pred func(s *sql.Selector)) { 1536 erq.predicates = append(erq.predicates, pred) 1537 } 1538 1539 // Filter returns a Filter implementation to apply filters on the ExchangeRateQuery builder. 1540 func (erq *ExchangeRateQuery) Filter() *ExchangeRateFilter { 1541 return &ExchangeRateFilter{config: erq.config, predicateAdder: erq} 1542 } 1543 1544 // addPredicate implements the predicateAdder interface. 1545 func (m *ExchangeRateMutation) addPredicate(pred func(s *sql.Selector)) { 1546 m.predicates = append(m.predicates, pred) 1547 } 1548 1549 // Filter returns an entql.Where implementation to apply filters on the ExchangeRateMutation builder. 1550 func (m *ExchangeRateMutation) Filter() *ExchangeRateFilter { 1551 return &ExchangeRateFilter{config: m.config, predicateAdder: m} 1552 } 1553 1554 // ExchangeRateFilter provides a generic filtering capability at runtime for ExchangeRateQuery. 1555 type ExchangeRateFilter struct { 1556 predicateAdder 1557 config 1558 } 1559 1560 // Where applies the entql predicate on the query filter. 1561 func (f *ExchangeRateFilter) Where(p entql.P) { 1562 f.addPredicate(func(s *sql.Selector) { 1563 if err := schemaGraph.EvalP(schemaGraph.Nodes[12].Type, p, s); err != nil { 1564 s.AddError(err) 1565 } 1566 }) 1567 } 1568 1569 // WhereID applies the entql uint32 predicate on the id field. 1570 func (f *ExchangeRateFilter) WhereID(p entql.Uint32P) { 1571 f.Where(p.Field(exchangerate.FieldID)) 1572 } 1573 1574 // WhereCreatedAt applies the entql uint32 predicate on the created_at field. 1575 func (f *ExchangeRateFilter) WhereCreatedAt(p entql.Uint32P) { 1576 f.Where(p.Field(exchangerate.FieldCreatedAt)) 1577 } 1578 1579 // WhereUpdatedAt applies the entql uint32 predicate on the updated_at field. 1580 func (f *ExchangeRateFilter) WhereUpdatedAt(p entql.Uint32P) { 1581 f.Where(p.Field(exchangerate.FieldUpdatedAt)) 1582 } 1583 1584 // WhereDeletedAt applies the entql uint32 predicate on the deleted_at field. 1585 func (f *ExchangeRateFilter) WhereDeletedAt(p entql.Uint32P) { 1586 f.Where(p.Field(exchangerate.FieldDeletedAt)) 1587 } 1588 1589 // WhereEntID applies the entql [16]byte predicate on the ent_id field. 1590 func (f *ExchangeRateFilter) WhereEntID(p entql.ValueP) { 1591 f.Where(p.Field(exchangerate.FieldEntID)) 1592 } 1593 1594 // WhereAppID applies the entql [16]byte predicate on the app_id field. 1595 func (f *ExchangeRateFilter) WhereAppID(p entql.ValueP) { 1596 f.Where(p.Field(exchangerate.FieldAppID)) 1597 } 1598 1599 // WhereCoinTypeID applies the entql [16]byte predicate on the coin_type_id field. 1600 func (f *ExchangeRateFilter) WhereCoinTypeID(p entql.ValueP) { 1601 f.Where(p.Field(exchangerate.FieldCoinTypeID)) 1602 } 1603 1604 // WhereMarketValue applies the entql other predicate on the market_value field. 1605 func (f *ExchangeRateFilter) WhereMarketValue(p entql.OtherP) { 1606 f.Where(p.Field(exchangerate.FieldMarketValue)) 1607 } 1608 1609 // WhereSettleValue applies the entql other predicate on the settle_value field. 1610 func (f *ExchangeRateFilter) WhereSettleValue(p entql.OtherP) { 1611 f.Where(p.Field(exchangerate.FieldSettleValue)) 1612 } 1613 1614 // WhereSettlePercent applies the entql uint32 predicate on the settle_percent field. 1615 func (f *ExchangeRateFilter) WhereSettlePercent(p entql.Uint32P) { 1616 f.Where(p.Field(exchangerate.FieldSettlePercent)) 1617 } 1618 1619 // WhereSettleTips applies the entql json.RawMessage predicate on the settle_tips field. 1620 func (f *ExchangeRateFilter) WhereSettleTips(p entql.BytesP) { 1621 f.Where(p.Field(exchangerate.FieldSettleTips)) 1622 } 1623 1624 // WhereSetter applies the entql [16]byte predicate on the setter field. 1625 func (f *ExchangeRateFilter) WhereSetter(p entql.ValueP) { 1626 f.Where(p.Field(exchangerate.FieldSetter)) 1627 } 1628 1629 // addPredicate implements the predicateAdder interface. 1630 func (fq *FiatQuery) addPredicate(pred func(s *sql.Selector)) { 1631 fq.predicates = append(fq.predicates, pred) 1632 } 1633 1634 // Filter returns a Filter implementation to apply filters on the FiatQuery builder. 1635 func (fq *FiatQuery) Filter() *FiatFilter { 1636 return &FiatFilter{config: fq.config, predicateAdder: fq} 1637 } 1638 1639 // addPredicate implements the predicateAdder interface. 1640 func (m *FiatMutation) addPredicate(pred func(s *sql.Selector)) { 1641 m.predicates = append(m.predicates, pred) 1642 } 1643 1644 // Filter returns an entql.Where implementation to apply filters on the FiatMutation builder. 1645 func (m *FiatMutation) Filter() *FiatFilter { 1646 return &FiatFilter{config: m.config, predicateAdder: m} 1647 } 1648 1649 // FiatFilter provides a generic filtering capability at runtime for FiatQuery. 1650 type FiatFilter struct { 1651 predicateAdder 1652 config 1653 } 1654 1655 // Where applies the entql predicate on the query filter. 1656 func (f *FiatFilter) Where(p entql.P) { 1657 f.addPredicate(func(s *sql.Selector) { 1658 if err := schemaGraph.EvalP(schemaGraph.Nodes[13].Type, p, s); err != nil { 1659 s.AddError(err) 1660 } 1661 }) 1662 } 1663 1664 // WhereID applies the entql uint32 predicate on the id field. 1665 func (f *FiatFilter) WhereID(p entql.Uint32P) { 1666 f.Where(p.Field(fiat.FieldID)) 1667 } 1668 1669 // WhereCreatedAt applies the entql uint32 predicate on the created_at field. 1670 func (f *FiatFilter) WhereCreatedAt(p entql.Uint32P) { 1671 f.Where(p.Field(fiat.FieldCreatedAt)) 1672 } 1673 1674 // WhereUpdatedAt applies the entql uint32 predicate on the updated_at field. 1675 func (f *FiatFilter) WhereUpdatedAt(p entql.Uint32P) { 1676 f.Where(p.Field(fiat.FieldUpdatedAt)) 1677 } 1678 1679 // WhereDeletedAt applies the entql uint32 predicate on the deleted_at field. 1680 func (f *FiatFilter) WhereDeletedAt(p entql.Uint32P) { 1681 f.Where(p.Field(fiat.FieldDeletedAt)) 1682 } 1683 1684 // WhereEntID applies the entql [16]byte predicate on the ent_id field. 1685 func (f *FiatFilter) WhereEntID(p entql.ValueP) { 1686 f.Where(p.Field(fiat.FieldEntID)) 1687 } 1688 1689 // WhereName applies the entql string predicate on the name field. 1690 func (f *FiatFilter) WhereName(p entql.StringP) { 1691 f.Where(p.Field(fiat.FieldName)) 1692 } 1693 1694 // WhereLogo applies the entql string predicate on the logo field. 1695 func (f *FiatFilter) WhereLogo(p entql.StringP) { 1696 f.Where(p.Field(fiat.FieldLogo)) 1697 } 1698 1699 // WhereUnit applies the entql string predicate on the unit field. 1700 func (f *FiatFilter) WhereUnit(p entql.StringP) { 1701 f.Where(p.Field(fiat.FieldUnit)) 1702 } 1703 1704 // addPredicate implements the predicateAdder interface. 1705 func (fcq *FiatCurrencyQuery) addPredicate(pred func(s *sql.Selector)) { 1706 fcq.predicates = append(fcq.predicates, pred) 1707 } 1708 1709 // Filter returns a Filter implementation to apply filters on the FiatCurrencyQuery builder. 1710 func (fcq *FiatCurrencyQuery) Filter() *FiatCurrencyFilter { 1711 return &FiatCurrencyFilter{config: fcq.config, predicateAdder: fcq} 1712 } 1713 1714 // addPredicate implements the predicateAdder interface. 1715 func (m *FiatCurrencyMutation) addPredicate(pred func(s *sql.Selector)) { 1716 m.predicates = append(m.predicates, pred) 1717 } 1718 1719 // Filter returns an entql.Where implementation to apply filters on the FiatCurrencyMutation builder. 1720 func (m *FiatCurrencyMutation) Filter() *FiatCurrencyFilter { 1721 return &FiatCurrencyFilter{config: m.config, predicateAdder: m} 1722 } 1723 1724 // FiatCurrencyFilter provides a generic filtering capability at runtime for FiatCurrencyQuery. 1725 type FiatCurrencyFilter struct { 1726 predicateAdder 1727 config 1728 } 1729 1730 // Where applies the entql predicate on the query filter. 1731 func (f *FiatCurrencyFilter) Where(p entql.P) { 1732 f.addPredicate(func(s *sql.Selector) { 1733 if err := schemaGraph.EvalP(schemaGraph.Nodes[14].Type, p, s); err != nil { 1734 s.AddError(err) 1735 } 1736 }) 1737 } 1738 1739 // WhereID applies the entql uint32 predicate on the id field. 1740 func (f *FiatCurrencyFilter) WhereID(p entql.Uint32P) { 1741 f.Where(p.Field(fiatcurrency.FieldID)) 1742 } 1743 1744 // WhereCreatedAt applies the entql uint32 predicate on the created_at field. 1745 func (f *FiatCurrencyFilter) WhereCreatedAt(p entql.Uint32P) { 1746 f.Where(p.Field(fiatcurrency.FieldCreatedAt)) 1747 } 1748 1749 // WhereUpdatedAt applies the entql uint32 predicate on the updated_at field. 1750 func (f *FiatCurrencyFilter) WhereUpdatedAt(p entql.Uint32P) { 1751 f.Where(p.Field(fiatcurrency.FieldUpdatedAt)) 1752 } 1753 1754 // WhereDeletedAt applies the entql uint32 predicate on the deleted_at field. 1755 func (f *FiatCurrencyFilter) WhereDeletedAt(p entql.Uint32P) { 1756 f.Where(p.Field(fiatcurrency.FieldDeletedAt)) 1757 } 1758 1759 // WhereEntID applies the entql [16]byte predicate on the ent_id field. 1760 func (f *FiatCurrencyFilter) WhereEntID(p entql.ValueP) { 1761 f.Where(p.Field(fiatcurrency.FieldEntID)) 1762 } 1763 1764 // WhereFiatID applies the entql [16]byte predicate on the fiat_id field. 1765 func (f *FiatCurrencyFilter) WhereFiatID(p entql.ValueP) { 1766 f.Where(p.Field(fiatcurrency.FieldFiatID)) 1767 } 1768 1769 // WhereFeedType applies the entql string predicate on the feed_type field. 1770 func (f *FiatCurrencyFilter) WhereFeedType(p entql.StringP) { 1771 f.Where(p.Field(fiatcurrency.FieldFeedType)) 1772 } 1773 1774 // WhereMarketValueLow applies the entql other predicate on the market_value_low field. 1775 func (f *FiatCurrencyFilter) WhereMarketValueLow(p entql.OtherP) { 1776 f.Where(p.Field(fiatcurrency.FieldMarketValueLow)) 1777 } 1778 1779 // WhereMarketValueHigh applies the entql other predicate on the market_value_high field. 1780 func (f *FiatCurrencyFilter) WhereMarketValueHigh(p entql.OtherP) { 1781 f.Where(p.Field(fiatcurrency.FieldMarketValueHigh)) 1782 } 1783 1784 // addPredicate implements the predicateAdder interface. 1785 func (fcfq *FiatCurrencyFeedQuery) addPredicate(pred func(s *sql.Selector)) { 1786 fcfq.predicates = append(fcfq.predicates, pred) 1787 } 1788 1789 // Filter returns a Filter implementation to apply filters on the FiatCurrencyFeedQuery builder. 1790 func (fcfq *FiatCurrencyFeedQuery) Filter() *FiatCurrencyFeedFilter { 1791 return &FiatCurrencyFeedFilter{config: fcfq.config, predicateAdder: fcfq} 1792 } 1793 1794 // addPredicate implements the predicateAdder interface. 1795 func (m *FiatCurrencyFeedMutation) addPredicate(pred func(s *sql.Selector)) { 1796 m.predicates = append(m.predicates, pred) 1797 } 1798 1799 // Filter returns an entql.Where implementation to apply filters on the FiatCurrencyFeedMutation builder. 1800 func (m *FiatCurrencyFeedMutation) Filter() *FiatCurrencyFeedFilter { 1801 return &FiatCurrencyFeedFilter{config: m.config, predicateAdder: m} 1802 } 1803 1804 // FiatCurrencyFeedFilter provides a generic filtering capability at runtime for FiatCurrencyFeedQuery. 1805 type FiatCurrencyFeedFilter struct { 1806 predicateAdder 1807 config 1808 } 1809 1810 // Where applies the entql predicate on the query filter. 1811 func (f *FiatCurrencyFeedFilter) Where(p entql.P) { 1812 f.addPredicate(func(s *sql.Selector) { 1813 if err := schemaGraph.EvalP(schemaGraph.Nodes[15].Type, p, s); err != nil { 1814 s.AddError(err) 1815 } 1816 }) 1817 } 1818 1819 // WhereID applies the entql uint32 predicate on the id field. 1820 func (f *FiatCurrencyFeedFilter) WhereID(p entql.Uint32P) { 1821 f.Where(p.Field(fiatcurrencyfeed.FieldID)) 1822 } 1823 1824 // WhereCreatedAt applies the entql uint32 predicate on the created_at field. 1825 func (f *FiatCurrencyFeedFilter) WhereCreatedAt(p entql.Uint32P) { 1826 f.Where(p.Field(fiatcurrencyfeed.FieldCreatedAt)) 1827 } 1828 1829 // WhereUpdatedAt applies the entql uint32 predicate on the updated_at field. 1830 func (f *FiatCurrencyFeedFilter) WhereUpdatedAt(p entql.Uint32P) { 1831 f.Where(p.Field(fiatcurrencyfeed.FieldUpdatedAt)) 1832 } 1833 1834 // WhereDeletedAt applies the entql uint32 predicate on the deleted_at field. 1835 func (f *FiatCurrencyFeedFilter) WhereDeletedAt(p entql.Uint32P) { 1836 f.Where(p.Field(fiatcurrencyfeed.FieldDeletedAt)) 1837 } 1838 1839 // WhereEntID applies the entql [16]byte predicate on the ent_id field. 1840 func (f *FiatCurrencyFeedFilter) WhereEntID(p entql.ValueP) { 1841 f.Where(p.Field(fiatcurrencyfeed.FieldEntID)) 1842 } 1843 1844 // WhereFiatID applies the entql [16]byte predicate on the fiat_id field. 1845 func (f *FiatCurrencyFeedFilter) WhereFiatID(p entql.ValueP) { 1846 f.Where(p.Field(fiatcurrencyfeed.FieldFiatID)) 1847 } 1848 1849 // WhereFeedType applies the entql string predicate on the feed_type field. 1850 func (f *FiatCurrencyFeedFilter) WhereFeedType(p entql.StringP) { 1851 f.Where(p.Field(fiatcurrencyfeed.FieldFeedType)) 1852 } 1853 1854 // WhereFeedFiatName applies the entql string predicate on the feed_fiat_name field. 1855 func (f *FiatCurrencyFeedFilter) WhereFeedFiatName(p entql.StringP) { 1856 f.Where(p.Field(fiatcurrencyfeed.FieldFeedFiatName)) 1857 } 1858 1859 // WhereDisabled applies the entql bool predicate on the disabled field. 1860 func (f *FiatCurrencyFeedFilter) WhereDisabled(p entql.BoolP) { 1861 f.Where(p.Field(fiatcurrencyfeed.FieldDisabled)) 1862 } 1863 1864 // addPredicate implements the predicateAdder interface. 1865 func (fchq *FiatCurrencyHistoryQuery) addPredicate(pred func(s *sql.Selector)) { 1866 fchq.predicates = append(fchq.predicates, pred) 1867 } 1868 1869 // Filter returns a Filter implementation to apply filters on the FiatCurrencyHistoryQuery builder. 1870 func (fchq *FiatCurrencyHistoryQuery) Filter() *FiatCurrencyHistoryFilter { 1871 return &FiatCurrencyHistoryFilter{config: fchq.config, predicateAdder: fchq} 1872 } 1873 1874 // addPredicate implements the predicateAdder interface. 1875 func (m *FiatCurrencyHistoryMutation) addPredicate(pred func(s *sql.Selector)) { 1876 m.predicates = append(m.predicates, pred) 1877 } 1878 1879 // Filter returns an entql.Where implementation to apply filters on the FiatCurrencyHistoryMutation builder. 1880 func (m *FiatCurrencyHistoryMutation) Filter() *FiatCurrencyHistoryFilter { 1881 return &FiatCurrencyHistoryFilter{config: m.config, predicateAdder: m} 1882 } 1883 1884 // FiatCurrencyHistoryFilter provides a generic filtering capability at runtime for FiatCurrencyHistoryQuery. 1885 type FiatCurrencyHistoryFilter struct { 1886 predicateAdder 1887 config 1888 } 1889 1890 // Where applies the entql predicate on the query filter. 1891 func (f *FiatCurrencyHistoryFilter) Where(p entql.P) { 1892 f.addPredicate(func(s *sql.Selector) { 1893 if err := schemaGraph.EvalP(schemaGraph.Nodes[16].Type, p, s); err != nil { 1894 s.AddError(err) 1895 } 1896 }) 1897 } 1898 1899 // WhereID applies the entql uint32 predicate on the id field. 1900 func (f *FiatCurrencyHistoryFilter) WhereID(p entql.Uint32P) { 1901 f.Where(p.Field(fiatcurrencyhistory.FieldID)) 1902 } 1903 1904 // WhereCreatedAt applies the entql uint32 predicate on the created_at field. 1905 func (f *FiatCurrencyHistoryFilter) WhereCreatedAt(p entql.Uint32P) { 1906 f.Where(p.Field(fiatcurrencyhistory.FieldCreatedAt)) 1907 } 1908 1909 // WhereUpdatedAt applies the entql uint32 predicate on the updated_at field. 1910 func (f *FiatCurrencyHistoryFilter) WhereUpdatedAt(p entql.Uint32P) { 1911 f.Where(p.Field(fiatcurrencyhistory.FieldUpdatedAt)) 1912 } 1913 1914 // WhereDeletedAt applies the entql uint32 predicate on the deleted_at field. 1915 func (f *FiatCurrencyHistoryFilter) WhereDeletedAt(p entql.Uint32P) { 1916 f.Where(p.Field(fiatcurrencyhistory.FieldDeletedAt)) 1917 } 1918 1919 // WhereEntID applies the entql [16]byte predicate on the ent_id field. 1920 func (f *FiatCurrencyHistoryFilter) WhereEntID(p entql.ValueP) { 1921 f.Where(p.Field(fiatcurrencyhistory.FieldEntID)) 1922 } 1923 1924 // WhereFiatID applies the entql [16]byte predicate on the fiat_id field. 1925 func (f *FiatCurrencyHistoryFilter) WhereFiatID(p entql.ValueP) { 1926 f.Where(p.Field(fiatcurrencyhistory.FieldFiatID)) 1927 } 1928 1929 // WhereFeedType applies the entql string predicate on the feed_type field. 1930 func (f *FiatCurrencyHistoryFilter) WhereFeedType(p entql.StringP) { 1931 f.Where(p.Field(fiatcurrencyhistory.FieldFeedType)) 1932 } 1933 1934 // WhereMarketValueLow applies the entql other predicate on the market_value_low field. 1935 func (f *FiatCurrencyHistoryFilter) WhereMarketValueLow(p entql.OtherP) { 1936 f.Where(p.Field(fiatcurrencyhistory.FieldMarketValueLow)) 1937 } 1938 1939 // WhereMarketValueHigh applies the entql other predicate on the market_value_high field. 1940 func (f *FiatCurrencyHistoryFilter) WhereMarketValueHigh(p entql.OtherP) { 1941 f.Where(p.Field(fiatcurrencyhistory.FieldMarketValueHigh)) 1942 } 1943 1944 // addPredicate implements the predicateAdder interface. 1945 func (sq *SettingQuery) addPredicate(pred func(s *sql.Selector)) { 1946 sq.predicates = append(sq.predicates, pred) 1947 } 1948 1949 // Filter returns a Filter implementation to apply filters on the SettingQuery builder. 1950 func (sq *SettingQuery) Filter() *SettingFilter { 1951 return &SettingFilter{config: sq.config, predicateAdder: sq} 1952 } 1953 1954 // addPredicate implements the predicateAdder interface. 1955 func (m *SettingMutation) addPredicate(pred func(s *sql.Selector)) { 1956 m.predicates = append(m.predicates, pred) 1957 } 1958 1959 // Filter returns an entql.Where implementation to apply filters on the SettingMutation builder. 1960 func (m *SettingMutation) Filter() *SettingFilter { 1961 return &SettingFilter{config: m.config, predicateAdder: m} 1962 } 1963 1964 // SettingFilter provides a generic filtering capability at runtime for SettingQuery. 1965 type SettingFilter struct { 1966 predicateAdder 1967 config 1968 } 1969 1970 // Where applies the entql predicate on the query filter. 1971 func (f *SettingFilter) Where(p entql.P) { 1972 f.addPredicate(func(s *sql.Selector) { 1973 if err := schemaGraph.EvalP(schemaGraph.Nodes[17].Type, p, s); err != nil { 1974 s.AddError(err) 1975 } 1976 }) 1977 } 1978 1979 // WhereID applies the entql uint32 predicate on the id field. 1980 func (f *SettingFilter) WhereID(p entql.Uint32P) { 1981 f.Where(p.Field(setting.FieldID)) 1982 } 1983 1984 // WhereCreatedAt applies the entql uint32 predicate on the created_at field. 1985 func (f *SettingFilter) WhereCreatedAt(p entql.Uint32P) { 1986 f.Where(p.Field(setting.FieldCreatedAt)) 1987 } 1988 1989 // WhereUpdatedAt applies the entql uint32 predicate on the updated_at field. 1990 func (f *SettingFilter) WhereUpdatedAt(p entql.Uint32P) { 1991 f.Where(p.Field(setting.FieldUpdatedAt)) 1992 } 1993 1994 // WhereDeletedAt applies the entql uint32 predicate on the deleted_at field. 1995 func (f *SettingFilter) WhereDeletedAt(p entql.Uint32P) { 1996 f.Where(p.Field(setting.FieldDeletedAt)) 1997 } 1998 1999 // WhereEntID applies the entql [16]byte predicate on the ent_id field. 2000 func (f *SettingFilter) WhereEntID(p entql.ValueP) { 2001 f.Where(p.Field(setting.FieldEntID)) 2002 } 2003 2004 // WhereCoinTypeID applies the entql [16]byte predicate on the coin_type_id field. 2005 func (f *SettingFilter) WhereCoinTypeID(p entql.ValueP) { 2006 f.Where(p.Field(setting.FieldCoinTypeID)) 2007 } 2008 2009 // WhereFeeCoinTypeID applies the entql [16]byte predicate on the fee_coin_type_id field. 2010 func (f *SettingFilter) WhereFeeCoinTypeID(p entql.ValueP) { 2011 f.Where(p.Field(setting.FieldFeeCoinTypeID)) 2012 } 2013 2014 // WhereWithdrawFeeByStableUsd applies the entql bool predicate on the withdraw_fee_by_stable_usd field. 2015 func (f *SettingFilter) WhereWithdrawFeeByStableUsd(p entql.BoolP) { 2016 f.Where(p.Field(setting.FieldWithdrawFeeByStableUsd)) 2017 } 2018 2019 // WhereWithdrawFeeAmount applies the entql other predicate on the withdraw_fee_amount field. 2020 func (f *SettingFilter) WhereWithdrawFeeAmount(p entql.OtherP) { 2021 f.Where(p.Field(setting.FieldWithdrawFeeAmount)) 2022 } 2023 2024 // WhereCollectFeeAmount applies the entql other predicate on the collect_fee_amount field. 2025 func (f *SettingFilter) WhereCollectFeeAmount(p entql.OtherP) { 2026 f.Where(p.Field(setting.FieldCollectFeeAmount)) 2027 } 2028 2029 // WhereHotWalletFeeAmount applies the entql other predicate on the hot_wallet_fee_amount field. 2030 func (f *SettingFilter) WhereHotWalletFeeAmount(p entql.OtherP) { 2031 f.Where(p.Field(setting.FieldHotWalletFeeAmount)) 2032 } 2033 2034 // WhereLowFeeAmount applies the entql other predicate on the low_fee_amount field. 2035 func (f *SettingFilter) WhereLowFeeAmount(p entql.OtherP) { 2036 f.Where(p.Field(setting.FieldLowFeeAmount)) 2037 } 2038 2039 // WhereHotLowFeeAmount applies the entql other predicate on the hot_low_fee_amount field. 2040 func (f *SettingFilter) WhereHotLowFeeAmount(p entql.OtherP) { 2041 f.Where(p.Field(setting.FieldHotLowFeeAmount)) 2042 } 2043 2044 // WhereHotWalletAccountAmount applies the entql other predicate on the hot_wallet_account_amount field. 2045 func (f *SettingFilter) WhereHotWalletAccountAmount(p entql.OtherP) { 2046 f.Where(p.Field(setting.FieldHotWalletAccountAmount)) 2047 } 2048 2049 // WherePaymentAccountCollectAmount applies the entql other predicate on the payment_account_collect_amount field. 2050 func (f *SettingFilter) WherePaymentAccountCollectAmount(p entql.OtherP) { 2051 f.Where(p.Field(setting.FieldPaymentAccountCollectAmount)) 2052 } 2053 2054 // WhereLeastTransferAmount applies the entql other predicate on the least_transfer_amount field. 2055 func (f *SettingFilter) WhereLeastTransferAmount(p entql.OtherP) { 2056 f.Where(p.Field(setting.FieldLeastTransferAmount)) 2057 } 2058 2059 // WhereNeedMemo applies the entql bool predicate on the need_memo field. 2060 func (f *SettingFilter) WhereNeedMemo(p entql.BoolP) { 2061 f.Where(p.Field(setting.FieldNeedMemo)) 2062 } 2063 2064 // WhereRefreshCurrency applies the entql bool predicate on the refresh_currency field. 2065 func (f *SettingFilter) WhereRefreshCurrency(p entql.BoolP) { 2066 f.Where(p.Field(setting.FieldRefreshCurrency)) 2067 } 2068 2069 // WhereCheckNewAddressBalance applies the entql bool predicate on the check_new_address_balance field. 2070 func (f *SettingFilter) WhereCheckNewAddressBalance(p entql.BoolP) { 2071 f.Where(p.Field(setting.FieldCheckNewAddressBalance)) 2072 } 2073 2074 // addPredicate implements the predicateAdder interface. 2075 func (tq *TranQuery) addPredicate(pred func(s *sql.Selector)) { 2076 tq.predicates = append(tq.predicates, pred) 2077 } 2078 2079 // Filter returns a Filter implementation to apply filters on the TranQuery builder. 2080 func (tq *TranQuery) Filter() *TranFilter { 2081 return &TranFilter{config: tq.config, predicateAdder: tq} 2082 } 2083 2084 // addPredicate implements the predicateAdder interface. 2085 func (m *TranMutation) addPredicate(pred func(s *sql.Selector)) { 2086 m.predicates = append(m.predicates, pred) 2087 } 2088 2089 // Filter returns an entql.Where implementation to apply filters on the TranMutation builder. 2090 func (m *TranMutation) Filter() *TranFilter { 2091 return &TranFilter{config: m.config, predicateAdder: m} 2092 } 2093 2094 // TranFilter provides a generic filtering capability at runtime for TranQuery. 2095 type TranFilter struct { 2096 predicateAdder 2097 config 2098 } 2099 2100 // Where applies the entql predicate on the query filter. 2101 func (f *TranFilter) Where(p entql.P) { 2102 f.addPredicate(func(s *sql.Selector) { 2103 if err := schemaGraph.EvalP(schemaGraph.Nodes[18].Type, p, s); err != nil { 2104 s.AddError(err) 2105 } 2106 }) 2107 } 2108 2109 // WhereID applies the entql uint32 predicate on the id field. 2110 func (f *TranFilter) WhereID(p entql.Uint32P) { 2111 f.Where(p.Field(tran.FieldID)) 2112 } 2113 2114 // WhereCreatedAt applies the entql uint32 predicate on the created_at field. 2115 func (f *TranFilter) WhereCreatedAt(p entql.Uint32P) { 2116 f.Where(p.Field(tran.FieldCreatedAt)) 2117 } 2118 2119 // WhereUpdatedAt applies the entql uint32 predicate on the updated_at field. 2120 func (f *TranFilter) WhereUpdatedAt(p entql.Uint32P) { 2121 f.Where(p.Field(tran.FieldUpdatedAt)) 2122 } 2123 2124 // WhereDeletedAt applies the entql uint32 predicate on the deleted_at field. 2125 func (f *TranFilter) WhereDeletedAt(p entql.Uint32P) { 2126 f.Where(p.Field(tran.FieldDeletedAt)) 2127 } 2128 2129 // WhereEntID applies the entql [16]byte predicate on the ent_id field. 2130 func (f *TranFilter) WhereEntID(p entql.ValueP) { 2131 f.Where(p.Field(tran.FieldEntID)) 2132 } 2133 2134 // WhereCoinTypeID applies the entql [16]byte predicate on the coin_type_id field. 2135 func (f *TranFilter) WhereCoinTypeID(p entql.ValueP) { 2136 f.Where(p.Field(tran.FieldCoinTypeID)) 2137 } 2138 2139 // WhereFromAccountID applies the entql [16]byte predicate on the from_account_id field. 2140 func (f *TranFilter) WhereFromAccountID(p entql.ValueP) { 2141 f.Where(p.Field(tran.FieldFromAccountID)) 2142 } 2143 2144 // WhereToAccountID applies the entql [16]byte predicate on the to_account_id field. 2145 func (f *TranFilter) WhereToAccountID(p entql.ValueP) { 2146 f.Where(p.Field(tran.FieldToAccountID)) 2147 } 2148 2149 // WhereAmount applies the entql other predicate on the amount field. 2150 func (f *TranFilter) WhereAmount(p entql.OtherP) { 2151 f.Where(p.Field(tran.FieldAmount)) 2152 } 2153 2154 // WhereFeeAmount applies the entql other predicate on the fee_amount field. 2155 func (f *TranFilter) WhereFeeAmount(p entql.OtherP) { 2156 f.Where(p.Field(tran.FieldFeeAmount)) 2157 } 2158 2159 // WhereChainTxID applies the entql string predicate on the chain_tx_id field. 2160 func (f *TranFilter) WhereChainTxID(p entql.StringP) { 2161 f.Where(p.Field(tran.FieldChainTxID)) 2162 } 2163 2164 // WhereState applies the entql string predicate on the state field. 2165 func (f *TranFilter) WhereState(p entql.StringP) { 2166 f.Where(p.Field(tran.FieldState)) 2167 } 2168 2169 // WhereExtra applies the entql string predicate on the extra field. 2170 func (f *TranFilter) WhereExtra(p entql.StringP) { 2171 f.Where(p.Field(tran.FieldExtra)) 2172 } 2173 2174 // WhereType applies the entql string predicate on the type field. 2175 func (f *TranFilter) WhereType(p entql.StringP) { 2176 f.Where(p.Field(tran.FieldType)) 2177 }