add member
This commit is contained in:
@ -15,6 +15,14 @@ const (
|
||||
FieldUsername = "username"
|
||||
// FieldDid holds the string denoting the did field in the database.
|
||||
FieldDid = "did"
|
||||
// FieldMember holds the string denoting the member field in the database.
|
||||
FieldMember = "member"
|
||||
// FieldBook holds the string denoting the book field in the database.
|
||||
FieldBook = "book"
|
||||
// FieldManga holds the string denoting the manga field in the database.
|
||||
FieldManga = "manga"
|
||||
// FieldBadge holds the string denoting the badge field in the database.
|
||||
FieldBadge = "badge"
|
||||
// FieldBsky holds the string denoting the bsky field in the database.
|
||||
FieldBsky = "bsky"
|
||||
// FieldMastodon holds the string denoting the mastodon field in the database.
|
||||
@ -83,6 +91,10 @@ var Columns = []string{
|
||||
FieldID,
|
||||
FieldUsername,
|
||||
FieldDid,
|
||||
FieldMember,
|
||||
FieldBook,
|
||||
FieldManga,
|
||||
FieldBadge,
|
||||
FieldBsky,
|
||||
FieldMastodon,
|
||||
FieldDelete,
|
||||
@ -134,6 +146,14 @@ func ValidColumn(column string) bool {
|
||||
var (
|
||||
// UsernameValidator is a validator for the "username" field. It is called by the builders before save.
|
||||
UsernameValidator func(string) error
|
||||
// DefaultMember holds the default value on creation for the "member" field.
|
||||
DefaultMember bool
|
||||
// DefaultBook holds the default value on creation for the "book" field.
|
||||
DefaultBook bool
|
||||
// DefaultManga holds the default value on creation for the "manga" field.
|
||||
DefaultManga bool
|
||||
// DefaultBadge holds the default value on creation for the "badge" field.
|
||||
DefaultBadge bool
|
||||
// DefaultBsky holds the default value on creation for the "bsky" field.
|
||||
DefaultBsky bool
|
||||
// DefaultMastodon holds the default value on creation for the "mastodon" field.
|
||||
|
@ -65,6 +65,26 @@ func Did(v string) predicate.User {
|
||||
return predicate.User(sql.FieldEQ(FieldDid, v))
|
||||
}
|
||||
|
||||
// Member applies equality check predicate on the "member" field. It's identical to MemberEQ.
|
||||
func Member(v bool) predicate.User {
|
||||
return predicate.User(sql.FieldEQ(FieldMember, v))
|
||||
}
|
||||
|
||||
// Book applies equality check predicate on the "book" field. It's identical to BookEQ.
|
||||
func Book(v bool) predicate.User {
|
||||
return predicate.User(sql.FieldEQ(FieldBook, v))
|
||||
}
|
||||
|
||||
// Manga applies equality check predicate on the "manga" field. It's identical to MangaEQ.
|
||||
func Manga(v bool) predicate.User {
|
||||
return predicate.User(sql.FieldEQ(FieldManga, v))
|
||||
}
|
||||
|
||||
// Badge applies equality check predicate on the "badge" field. It's identical to BadgeEQ.
|
||||
func Badge(v bool) predicate.User {
|
||||
return predicate.User(sql.FieldEQ(FieldBadge, v))
|
||||
}
|
||||
|
||||
// Bsky applies equality check predicate on the "bsky" field. It's identical to BskyEQ.
|
||||
func Bsky(v bool) predicate.User {
|
||||
return predicate.User(sql.FieldEQ(FieldBsky, v))
|
||||
@ -330,6 +350,86 @@ func DidContainsFold(v string) predicate.User {
|
||||
return predicate.User(sql.FieldContainsFold(FieldDid, v))
|
||||
}
|
||||
|
||||
// MemberEQ applies the EQ predicate on the "member" field.
|
||||
func MemberEQ(v bool) predicate.User {
|
||||
return predicate.User(sql.FieldEQ(FieldMember, v))
|
||||
}
|
||||
|
||||
// MemberNEQ applies the NEQ predicate on the "member" field.
|
||||
func MemberNEQ(v bool) predicate.User {
|
||||
return predicate.User(sql.FieldNEQ(FieldMember, v))
|
||||
}
|
||||
|
||||
// MemberIsNil applies the IsNil predicate on the "member" field.
|
||||
func MemberIsNil() predicate.User {
|
||||
return predicate.User(sql.FieldIsNull(FieldMember))
|
||||
}
|
||||
|
||||
// MemberNotNil applies the NotNil predicate on the "member" field.
|
||||
func MemberNotNil() predicate.User {
|
||||
return predicate.User(sql.FieldNotNull(FieldMember))
|
||||
}
|
||||
|
||||
// BookEQ applies the EQ predicate on the "book" field.
|
||||
func BookEQ(v bool) predicate.User {
|
||||
return predicate.User(sql.FieldEQ(FieldBook, v))
|
||||
}
|
||||
|
||||
// BookNEQ applies the NEQ predicate on the "book" field.
|
||||
func BookNEQ(v bool) predicate.User {
|
||||
return predicate.User(sql.FieldNEQ(FieldBook, v))
|
||||
}
|
||||
|
||||
// BookIsNil applies the IsNil predicate on the "book" field.
|
||||
func BookIsNil() predicate.User {
|
||||
return predicate.User(sql.FieldIsNull(FieldBook))
|
||||
}
|
||||
|
||||
// BookNotNil applies the NotNil predicate on the "book" field.
|
||||
func BookNotNil() predicate.User {
|
||||
return predicate.User(sql.FieldNotNull(FieldBook))
|
||||
}
|
||||
|
||||
// MangaEQ applies the EQ predicate on the "manga" field.
|
||||
func MangaEQ(v bool) predicate.User {
|
||||
return predicate.User(sql.FieldEQ(FieldManga, v))
|
||||
}
|
||||
|
||||
// MangaNEQ applies the NEQ predicate on the "manga" field.
|
||||
func MangaNEQ(v bool) predicate.User {
|
||||
return predicate.User(sql.FieldNEQ(FieldManga, v))
|
||||
}
|
||||
|
||||
// MangaIsNil applies the IsNil predicate on the "manga" field.
|
||||
func MangaIsNil() predicate.User {
|
||||
return predicate.User(sql.FieldIsNull(FieldManga))
|
||||
}
|
||||
|
||||
// MangaNotNil applies the NotNil predicate on the "manga" field.
|
||||
func MangaNotNil() predicate.User {
|
||||
return predicate.User(sql.FieldNotNull(FieldManga))
|
||||
}
|
||||
|
||||
// BadgeEQ applies the EQ predicate on the "badge" field.
|
||||
func BadgeEQ(v bool) predicate.User {
|
||||
return predicate.User(sql.FieldEQ(FieldBadge, v))
|
||||
}
|
||||
|
||||
// BadgeNEQ applies the NEQ predicate on the "badge" field.
|
||||
func BadgeNEQ(v bool) predicate.User {
|
||||
return predicate.User(sql.FieldNEQ(FieldBadge, v))
|
||||
}
|
||||
|
||||
// BadgeIsNil applies the IsNil predicate on the "badge" field.
|
||||
func BadgeIsNil() predicate.User {
|
||||
return predicate.User(sql.FieldIsNull(FieldBadge))
|
||||
}
|
||||
|
||||
// BadgeNotNil applies the NotNil predicate on the "badge" field.
|
||||
func BadgeNotNil() predicate.User {
|
||||
return predicate.User(sql.FieldNotNull(FieldBadge))
|
||||
}
|
||||
|
||||
// BskyEQ applies the EQ predicate on the "bsky" field.
|
||||
func BskyEQ(v bool) predicate.User {
|
||||
return predicate.User(sql.FieldEQ(FieldBsky, v))
|
||||
|
Reference in New Issue
Block a user