team

package
v0.0.0-...-52a3571 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the team type in the database.
	Label = "team"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldCreatedTime holds the string denoting the created_time field in the database.
	FieldCreatedTime = "created_time"
	// FieldPrivate holds the string denoting the private field in the database.
	FieldPrivate = "private"
	// EdgeMembers holds the string denoting the members edge name in mutations.
	EdgeMembers = "members"
	// EdgeAnnouncements holds the string denoting the announcements edge name in mutations.
	EdgeAnnouncements = "announcements"
	// EdgeCreator holds the string denoting the creator edge name in mutations.
	EdgeCreator = "creator"
	// EdgeAdmins holds the string denoting the admins edge name in mutations.
	EdgeAdmins = "admins"
	// Table holds the table name of the team in the database.
	Table = "teams"
	// MembersTable is the table that holds the members relation/edge. The primary key declared below.
	MembersTable = "team_members"
	// MembersInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	MembersInverseTable = "users"
	// AnnouncementsTable is the table that holds the announcements relation/edge.
	AnnouncementsTable = "announcements"
	// AnnouncementsInverseTable is the table name for the Announcement entity.
	// It exists in this package in order to avoid circular dependency with the "announcement" package.
	AnnouncementsInverseTable = "announcements"
	// AnnouncementsColumn is the table column denoting the announcements relation/edge.
	AnnouncementsColumn = "announcement_team"
	// CreatorTable is the table that holds the creator relation/edge.
	CreatorTable = "teams"
	// CreatorInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	CreatorInverseTable = "users"
	// CreatorColumn is the table column denoting the creator relation/edge.
	CreatorColumn = "team_creator"
	// AdminsTable is the table that holds the admins relation/edge. The primary key declared below.
	AdminsTable = "team_admins"
	// AdminsInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	AdminsInverseTable = "users"
)

Variables

View Source
var (
	// MembersPrimaryKey and MembersColumn2 are the table columns denoting the
	// primary key for the members relation (M2M).
	MembersPrimaryKey = []string{"team_id", "user_id"}
	// AdminsPrimaryKey and AdminsColumn2 are the table columns denoting the
	// primary key for the admins relation (M2M).
	AdminsPrimaryKey = []string{"team_id", "user_id"}
)
View Source
var (
	// DefaultCreatedTime holds the default value on creation for the "created_time" field.
	DefaultCreatedTime time.Time
	// DefaultPrivate holds the default value on creation for the "private" field.
	DefaultPrivate bool
)

Columns holds all SQL columns for team fields.

View Source
var ForeignKeys = []string{
	"team_creator",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "teams" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Team) predicate.Team

And groups predicates with the AND operator between them.

func CreatedTime

func CreatedTime(v time.Time) predicate.Team

CreatedTime applies equality check predicate on the "created_time" field. It's identical to CreatedTimeEQ.

func CreatedTimeEQ

func CreatedTimeEQ(v time.Time) predicate.Team

CreatedTimeEQ applies the EQ predicate on the "created_time" field.

func CreatedTimeGT

func CreatedTimeGT(v time.Time) predicate.Team

CreatedTimeGT applies the GT predicate on the "created_time" field.

func CreatedTimeGTE

func CreatedTimeGTE(v time.Time) predicate.Team

CreatedTimeGTE applies the GTE predicate on the "created_time" field.

func CreatedTimeIn

func CreatedTimeIn(vs ...time.Time) predicate.Team

CreatedTimeIn applies the In predicate on the "created_time" field.

func CreatedTimeLT

func CreatedTimeLT(v time.Time) predicate.Team

CreatedTimeLT applies the LT predicate on the "created_time" field.

func CreatedTimeLTE

func CreatedTimeLTE(v time.Time) predicate.Team

CreatedTimeLTE applies the LTE predicate on the "created_time" field.

func CreatedTimeNEQ

func CreatedTimeNEQ(v time.Time) predicate.Team

CreatedTimeNEQ applies the NEQ predicate on the "created_time" field.

func CreatedTimeNotIn

func CreatedTimeNotIn(vs ...time.Time) predicate.Team

CreatedTimeNotIn applies the NotIn predicate on the "created_time" field.

func Description

func Description(v string) predicate.Team

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Team

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Team

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Team

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Team

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Team

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Team

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Team

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Team

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Team

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Team

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Team

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Team

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Team

DescriptionNotIn applies the NotIn predicate on the "description" field.

func HasAdmins

func HasAdmins() predicate.Team

HasAdmins applies the HasEdge predicate on the "admins" edge.

func HasAdminsWith

func HasAdminsWith(preds ...predicate.User) predicate.Team

HasAdminsWith applies the HasEdge predicate on the "admins" edge with a given conditions (other predicates).

func HasAnnouncements

func HasAnnouncements() predicate.Team

HasAnnouncements applies the HasEdge predicate on the "announcements" edge.

func HasAnnouncementsWith

func HasAnnouncementsWith(preds ...predicate.Announcement) predicate.Team

HasAnnouncementsWith applies the HasEdge predicate on the "announcements" edge with a given conditions (other predicates).

func HasCreator

func HasCreator() predicate.Team

HasCreator applies the HasEdge predicate on the "creator" edge.

func HasCreatorWith

func HasCreatorWith(preds ...predicate.User) predicate.Team

HasCreatorWith applies the HasEdge predicate on the "creator" edge with a given conditions (other predicates).

func HasMembers

func HasMembers() predicate.Team

HasMembers applies the HasEdge predicate on the "members" edge.

func HasMembersWith

func HasMembersWith(preds ...predicate.User) predicate.Team

HasMembersWith applies the HasEdge predicate on the "members" edge with a given conditions (other predicates).

func ID

func ID(id int64) predicate.Team

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Team

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Team

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Team

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.Team

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Team

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Team

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Team

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.Team

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Team

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Team

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Team

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Team

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Team

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Team

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Team

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Team

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Team

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Team

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Team

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Team

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Team

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Team

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Team) predicate.Team

Or groups predicates with the OR operator between them.

func Private

func Private(v bool) predicate.Team

Private applies equality check predicate on the "private" field. It's identical to PrivateEQ.

func PrivateEQ

func PrivateEQ(v bool) predicate.Team

PrivateEQ applies the EQ predicate on the "private" field.

func PrivateNEQ

func PrivateNEQ(v bool) predicate.Team

PrivateNEQ applies the NEQ predicate on the "private" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL