added chat messages

This commit is contained in:
2022-01-29 19:32:13 +01:00
parent 2e6c94de81
commit b036275665
48 changed files with 4167 additions and 353 deletions

View File

@@ -177,6 +177,13 @@ func GamebanPresent(v bool) predicate.Match {
})
}
// DecryptionKey applies equality check predicate on the "decryption_key" field. It's identical to DecryptionKeyEQ.
func DecryptionKey(v []byte) predicate.Match {
return predicate.Match(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldDecryptionKey), v))
})
}
// ShareCodeEQ applies the EQ predicate on the "share_code" field.
func ShareCodeEQ(v string) predicate.Match {
return predicate.Match(func(s *sql.Selector) {
@@ -1036,6 +1043,96 @@ func GamebanPresentNEQ(v bool) predicate.Match {
})
}
// DecryptionKeyEQ applies the EQ predicate on the "decryption_key" field.
func DecryptionKeyEQ(v []byte) predicate.Match {
return predicate.Match(func(s *sql.Selector) {
s.Where(sql.EQ(s.C(FieldDecryptionKey), v))
})
}
// DecryptionKeyNEQ applies the NEQ predicate on the "decryption_key" field.
func DecryptionKeyNEQ(v []byte) predicate.Match {
return predicate.Match(func(s *sql.Selector) {
s.Where(sql.NEQ(s.C(FieldDecryptionKey), v))
})
}
// DecryptionKeyIn applies the In predicate on the "decryption_key" field.
func DecryptionKeyIn(vs ...[]byte) predicate.Match {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.Match(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
s.Where(sql.False())
return
}
s.Where(sql.In(s.C(FieldDecryptionKey), v...))
})
}
// DecryptionKeyNotIn applies the NotIn predicate on the "decryption_key" field.
func DecryptionKeyNotIn(vs ...[]byte) predicate.Match {
v := make([]interface{}, len(vs))
for i := range v {
v[i] = vs[i]
}
return predicate.Match(func(s *sql.Selector) {
// if not arguments were provided, append the FALSE constants,
// since we can't apply "IN ()". This will make this predicate falsy.
if len(v) == 0 {
s.Where(sql.False())
return
}
s.Where(sql.NotIn(s.C(FieldDecryptionKey), v...))
})
}
// DecryptionKeyGT applies the GT predicate on the "decryption_key" field.
func DecryptionKeyGT(v []byte) predicate.Match {
return predicate.Match(func(s *sql.Selector) {
s.Where(sql.GT(s.C(FieldDecryptionKey), v))
})
}
// DecryptionKeyGTE applies the GTE predicate on the "decryption_key" field.
func DecryptionKeyGTE(v []byte) predicate.Match {
return predicate.Match(func(s *sql.Selector) {
s.Where(sql.GTE(s.C(FieldDecryptionKey), v))
})
}
// DecryptionKeyLT applies the LT predicate on the "decryption_key" field.
func DecryptionKeyLT(v []byte) predicate.Match {
return predicate.Match(func(s *sql.Selector) {
s.Where(sql.LT(s.C(FieldDecryptionKey), v))
})
}
// DecryptionKeyLTE applies the LTE predicate on the "decryption_key" field.
func DecryptionKeyLTE(v []byte) predicate.Match {
return predicate.Match(func(s *sql.Selector) {
s.Where(sql.LTE(s.C(FieldDecryptionKey), v))
})
}
// DecryptionKeyIsNil applies the IsNil predicate on the "decryption_key" field.
func DecryptionKeyIsNil() predicate.Match {
return predicate.Match(func(s *sql.Selector) {
s.Where(sql.IsNull(s.C(FieldDecryptionKey)))
})
}
// DecryptionKeyNotNil applies the NotNil predicate on the "decryption_key" field.
func DecryptionKeyNotNil() predicate.Match {
return predicate.Match(func(s *sql.Selector) {
s.Where(sql.NotNull(s.C(FieldDecryptionKey)))
})
}
// HasStats applies the HasEdge predicate on the "stats" edge.
func HasStats() predicate.Match {
return predicate.Match(func(s *sql.Selector) {