|
@@ -130,6 +130,16 @@ func AgentID(v uint64) predicate.Wx {
|
|
|
return predicate.Wx(sql.FieldEQ(FieldAgentID, v))
|
|
|
}
|
|
|
|
|
|
+// APIBase applies equality check predicate on the "api_base" field. It's identical to APIBaseEQ.
|
|
|
+func APIBase(v string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldEQ(FieldAPIBase, v))
|
|
|
+}
|
|
|
+
|
|
|
+// APIKey applies equality check predicate on the "api_key" field. It's identical to APIKeyEQ.
|
|
|
+func APIKey(v string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldEQ(FieldAPIKey, v))
|
|
|
+}
|
|
|
+
|
|
|
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
|
|
func CreatedAtEQ(v time.Time) predicate.Wx {
|
|
|
return predicate.Wx(sql.FieldEQ(FieldCreatedAt, v))
|
|
@@ -930,6 +940,156 @@ func AgentIDNotIn(vs ...uint64) predicate.Wx {
|
|
|
return predicate.Wx(sql.FieldNotIn(FieldAgentID, vs...))
|
|
|
}
|
|
|
|
|
|
+// APIBaseEQ applies the EQ predicate on the "api_base" field.
|
|
|
+func APIBaseEQ(v string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldEQ(FieldAPIBase, v))
|
|
|
+}
|
|
|
+
|
|
|
+// APIBaseNEQ applies the NEQ predicate on the "api_base" field.
|
|
|
+func APIBaseNEQ(v string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldNEQ(FieldAPIBase, v))
|
|
|
+}
|
|
|
+
|
|
|
+// APIBaseIn applies the In predicate on the "api_base" field.
|
|
|
+func APIBaseIn(vs ...string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldIn(FieldAPIBase, vs...))
|
|
|
+}
|
|
|
+
|
|
|
+// APIBaseNotIn applies the NotIn predicate on the "api_base" field.
|
|
|
+func APIBaseNotIn(vs ...string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldNotIn(FieldAPIBase, vs...))
|
|
|
+}
|
|
|
+
|
|
|
+// APIBaseGT applies the GT predicate on the "api_base" field.
|
|
|
+func APIBaseGT(v string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldGT(FieldAPIBase, v))
|
|
|
+}
|
|
|
+
|
|
|
+// APIBaseGTE applies the GTE predicate on the "api_base" field.
|
|
|
+func APIBaseGTE(v string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldGTE(FieldAPIBase, v))
|
|
|
+}
|
|
|
+
|
|
|
+// APIBaseLT applies the LT predicate on the "api_base" field.
|
|
|
+func APIBaseLT(v string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldLT(FieldAPIBase, v))
|
|
|
+}
|
|
|
+
|
|
|
+// APIBaseLTE applies the LTE predicate on the "api_base" field.
|
|
|
+func APIBaseLTE(v string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldLTE(FieldAPIBase, v))
|
|
|
+}
|
|
|
+
|
|
|
+// APIBaseContains applies the Contains predicate on the "api_base" field.
|
|
|
+func APIBaseContains(v string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldContains(FieldAPIBase, v))
|
|
|
+}
|
|
|
+
|
|
|
+// APIBaseHasPrefix applies the HasPrefix predicate on the "api_base" field.
|
|
|
+func APIBaseHasPrefix(v string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldHasPrefix(FieldAPIBase, v))
|
|
|
+}
|
|
|
+
|
|
|
+// APIBaseHasSuffix applies the HasSuffix predicate on the "api_base" field.
|
|
|
+func APIBaseHasSuffix(v string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldHasSuffix(FieldAPIBase, v))
|
|
|
+}
|
|
|
+
|
|
|
+// APIBaseIsNil applies the IsNil predicate on the "api_base" field.
|
|
|
+func APIBaseIsNil() predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldIsNull(FieldAPIBase))
|
|
|
+}
|
|
|
+
|
|
|
+// APIBaseNotNil applies the NotNil predicate on the "api_base" field.
|
|
|
+func APIBaseNotNil() predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldNotNull(FieldAPIBase))
|
|
|
+}
|
|
|
+
|
|
|
+// APIBaseEqualFold applies the EqualFold predicate on the "api_base" field.
|
|
|
+func APIBaseEqualFold(v string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldEqualFold(FieldAPIBase, v))
|
|
|
+}
|
|
|
+
|
|
|
+// APIBaseContainsFold applies the ContainsFold predicate on the "api_base" field.
|
|
|
+func APIBaseContainsFold(v string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldContainsFold(FieldAPIBase, v))
|
|
|
+}
|
|
|
+
|
|
|
+// APIKeyEQ applies the EQ predicate on the "api_key" field.
|
|
|
+func APIKeyEQ(v string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldEQ(FieldAPIKey, v))
|
|
|
+}
|
|
|
+
|
|
|
+// APIKeyNEQ applies the NEQ predicate on the "api_key" field.
|
|
|
+func APIKeyNEQ(v string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldNEQ(FieldAPIKey, v))
|
|
|
+}
|
|
|
+
|
|
|
+// APIKeyIn applies the In predicate on the "api_key" field.
|
|
|
+func APIKeyIn(vs ...string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldIn(FieldAPIKey, vs...))
|
|
|
+}
|
|
|
+
|
|
|
+// APIKeyNotIn applies the NotIn predicate on the "api_key" field.
|
|
|
+func APIKeyNotIn(vs ...string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldNotIn(FieldAPIKey, vs...))
|
|
|
+}
|
|
|
+
|
|
|
+// APIKeyGT applies the GT predicate on the "api_key" field.
|
|
|
+func APIKeyGT(v string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldGT(FieldAPIKey, v))
|
|
|
+}
|
|
|
+
|
|
|
+// APIKeyGTE applies the GTE predicate on the "api_key" field.
|
|
|
+func APIKeyGTE(v string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldGTE(FieldAPIKey, v))
|
|
|
+}
|
|
|
+
|
|
|
+// APIKeyLT applies the LT predicate on the "api_key" field.
|
|
|
+func APIKeyLT(v string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldLT(FieldAPIKey, v))
|
|
|
+}
|
|
|
+
|
|
|
+// APIKeyLTE applies the LTE predicate on the "api_key" field.
|
|
|
+func APIKeyLTE(v string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldLTE(FieldAPIKey, v))
|
|
|
+}
|
|
|
+
|
|
|
+// APIKeyContains applies the Contains predicate on the "api_key" field.
|
|
|
+func APIKeyContains(v string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldContains(FieldAPIKey, v))
|
|
|
+}
|
|
|
+
|
|
|
+// APIKeyHasPrefix applies the HasPrefix predicate on the "api_key" field.
|
|
|
+func APIKeyHasPrefix(v string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldHasPrefix(FieldAPIKey, v))
|
|
|
+}
|
|
|
+
|
|
|
+// APIKeyHasSuffix applies the HasSuffix predicate on the "api_key" field.
|
|
|
+func APIKeyHasSuffix(v string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldHasSuffix(FieldAPIKey, v))
|
|
|
+}
|
|
|
+
|
|
|
+// APIKeyIsNil applies the IsNil predicate on the "api_key" field.
|
|
|
+func APIKeyIsNil() predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldIsNull(FieldAPIKey))
|
|
|
+}
|
|
|
+
|
|
|
+// APIKeyNotNil applies the NotNil predicate on the "api_key" field.
|
|
|
+func APIKeyNotNil() predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldNotNull(FieldAPIKey))
|
|
|
+}
|
|
|
+
|
|
|
+// APIKeyEqualFold applies the EqualFold predicate on the "api_key" field.
|
|
|
+func APIKeyEqualFold(v string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldEqualFold(FieldAPIKey, v))
|
|
|
+}
|
|
|
+
|
|
|
+// APIKeyContainsFold applies the ContainsFold predicate on the "api_key" field.
|
|
|
+func APIKeyContainsFold(v string) predicate.Wx {
|
|
|
+ return predicate.Wx(sql.FieldContainsFold(FieldAPIKey, v))
|
|
|
+}
|
|
|
+
|
|
|
// HasServer applies the HasEdge predicate on the "server" edge.
|
|
|
func HasServer() predicate.Wx {
|
|
|
return predicate.Wx(func(s *sql.Selector) {
|