ent: github.com/facebookincubator/ent/entc/integration/ent/user Index | Files

package user

import "github.com/facebookincubator/ent/entc/integration/ent/user"

Index

Package Files

user.go where.go

Constants

const (
    // Label holds the string label denoting the user type in the database.
    Label = "user"
    // FieldID holds the string denoting the id field in the database.
    FieldID = "id"
    // FieldAge holds the string denoting the age vertex property in the database.
    FieldAge = "age"
    // FieldName holds the string denoting the name vertex property in the database.
    FieldName = "name"
    // FieldLast holds the string denoting the last vertex property in the database.
    FieldLast = "last"
    // FieldNickname holds the string denoting the nickname vertex property in the database.
    FieldNickname = "nickname"
    // FieldPhone holds the string denoting the phone vertex property in the database.
    FieldPhone = "phone"
    // FieldPassword holds the string denoting the password vertex property in the database.
    FieldPassword = "password"

    // Table holds the table name of the user in the database.
    Table = "users"
    // CardTable is the table the holds the card relation/edge.
    CardTable = "cards"
    // CardInverseTable is the table name for the Card entity.
    // It exists in this package in order to avoid circular dependency with the "card" package.
    CardInverseTable = "cards"
    // CardColumn is the table column denoting the card relation/edge.
    CardColumn = "owner_id"
    // PetsTable is the table the holds the pets relation/edge.
    PetsTable = "pets"
    // PetsInverseTable is the table name for the Pet entity.
    // It exists in this package in order to avoid circular dependency with the "pet" package.
    PetsInverseTable = "pets"
    // PetsColumn is the table column denoting the pets relation/edge.
    PetsColumn = "owner_id"
    // FilesTable is the table the holds the files relation/edge.
    FilesTable = "files"
    // FilesInverseTable is the table name for the File entity.
    // It exists in this package in order to avoid circular dependency with the "file" package.
    FilesInverseTable = "files"
    // FilesColumn is the table column denoting the files relation/edge.
    FilesColumn = "owner_id"
    // GroupsTable is the table the holds the groups relation/edge. The primary key declared below.
    GroupsTable = "user_groups"
    // GroupsInverseTable is the table name for the Group entity.
    // It exists in this package in order to avoid circular dependency with the "group" package.
    GroupsInverseTable = "groups"
    // FriendsTable is the table the holds the friends relation/edge. The primary key declared below.
    FriendsTable = "user_friends"
    // FollowersTable is the table the holds the followers relation/edge. The primary key declared below.
    FollowersTable = "user_following"
    // FollowingTable is the table the holds the following relation/edge. The primary key declared below.
    FollowingTable = "user_following"
    // TeamTable is the table the holds the team relation/edge.
    TeamTable = "pets"
    // TeamInverseTable is the table name for the Pet entity.
    // It exists in this package in order to avoid circular dependency with the "pet" package.
    TeamInverseTable = "pets"
    // TeamColumn is the table column denoting the team relation/edge.
    TeamColumn = "team_id"
    // SpouseTable is the table the holds the spouse relation/edge.
    SpouseTable = "users"
    // SpouseColumn is the table column denoting the spouse relation/edge.
    SpouseColumn = "user_spouse_id"
    // ChildrenTable is the table the holds the children relation/edge.
    ChildrenTable = "users"
    // ChildrenColumn is the table column denoting the children relation/edge.
    ChildrenColumn = "parent_id"
    // ParentTable is the table the holds the parent relation/edge.
    ParentTable = "users"
    // ParentColumn is the table column denoting the parent relation/edge.
    ParentColumn = "parent_id"

    // CardLabel holds the string label denoting the card edge type in the database.
    CardLabel = "user_card"
    // PetsLabel holds the string label denoting the pets edge type in the database.
    PetsLabel = "user_pets"
    // FilesLabel holds the string label denoting the files edge type in the database.
    FilesLabel = "user_files"
    // GroupsLabel holds the string label denoting the groups edge type in the database.
    GroupsLabel = "user_groups"
    // FriendsLabel holds the string label denoting the friends edge type in the database.
    FriendsLabel = "user_friends"
    // FollowersInverseLabel holds the string label denoting the followers inverse edge type in the database.
    FollowersInverseLabel = "user_following"
    // FollowingLabel holds the string label denoting the following edge type in the database.
    FollowingLabel = "user_following"
    // TeamLabel holds the string label denoting the team edge type in the database.
    TeamLabel = "user_team"
    // SpouseLabel holds the string label denoting the spouse edge type in the database.
    SpouseLabel = "user_spouse"
    // ChildrenInverseLabel holds the string label denoting the children inverse edge type in the database.
    ChildrenInverseLabel = "user_parent"
    // ParentLabel holds the string label denoting the parent edge type in the database.
    ParentLabel = "user_parent"
)

Variables

var (
    // GroupsPrimaryKey and GroupsColumn2 are the table columns denoting the
    // primary key for the groups relation (M2M).
    GroupsPrimaryKey = []string{"user_id", "group_id"}
    // FriendsPrimaryKey and FriendsColumn2 are the table columns denoting the
    // primary key for the friends relation (M2M).
    FriendsPrimaryKey = []string{"user_id", "friend_id"}
    // FollowersPrimaryKey and FollowersColumn2 are the table columns denoting the
    // primary key for the followers relation (M2M).
    FollowersPrimaryKey = []string{"user_id", "follower_id"}
    // FollowingPrimaryKey and FollowingColumn2 are the table columns denoting the
    // primary key for the following relation (M2M).
    FollowingPrimaryKey = []string{"user_id", "follower_id"}
)
var Columns = []string{
    FieldID,
    FieldAge,
    FieldName,
    FieldLast,
    FieldNickname,
    FieldPhone,
    FieldPassword,
}

Columns holds all SQL columns are user fields.

var (

    // DefaultLast holds the default value on creation for the last field.
    DefaultLast = descLast.Default.(string)
)

func Age Uses

func Age(v int) predicate.User

Age applies equality check predicate on the "age" field. It's identical to AgeEQ.

func AgeEQ Uses

func AgeEQ(v int) predicate.User

AgeEQ applies the EQ predicate on the "age" field.

func AgeGT Uses

func AgeGT(v int) predicate.User

AgeGT applies the GT predicate on the "age" field.

func AgeGTE Uses

func AgeGTE(v int) predicate.User

AgeGTE applies the GTE predicate on the "age" field.

func AgeIn Uses

func AgeIn(vs ...int) predicate.User

AgeIn applies the In predicate on the "age" field.

func AgeLT Uses

func AgeLT(v int) predicate.User

AgeLT applies the LT predicate on the "age" field.

func AgeLTE Uses

func AgeLTE(v int) predicate.User

AgeLTE applies the LTE predicate on the "age" field.

func AgeNEQ Uses

func AgeNEQ(v int) predicate.User

AgeNEQ applies the NEQ predicate on the "age" field.

func AgeNotIn Uses

func AgeNotIn(vs ...int) predicate.User

AgeNotIn applies the NotIn predicate on the "age" field.

func And Uses

func And(predicates ...predicate.User) predicate.User

And groups list of predicates with the AND operator between them.

func HasCard Uses

func HasCard() predicate.User

HasCard applies the HasEdge predicate on the "card" edge.

func HasCardWith Uses

func HasCardWith(preds ...predicate.Card) predicate.User

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

func HasChildren Uses

func HasChildren() predicate.User

HasChildren applies the HasEdge predicate on the "children" edge.

func HasChildrenWith Uses

func HasChildrenWith(preds ...predicate.User) predicate.User

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

func HasFiles Uses

func HasFiles() predicate.User

HasFiles applies the HasEdge predicate on the "files" edge.

func HasFilesWith Uses

func HasFilesWith(preds ...predicate.File) predicate.User

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

func HasFollowers Uses

func HasFollowers() predicate.User

HasFollowers applies the HasEdge predicate on the "followers" edge.

func HasFollowersWith Uses

func HasFollowersWith(preds ...predicate.User) predicate.User

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

func HasFollowing Uses

func HasFollowing() predicate.User

HasFollowing applies the HasEdge predicate on the "following" edge.

func HasFollowingWith Uses

func HasFollowingWith(preds ...predicate.User) predicate.User

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

func HasFriends Uses

func HasFriends() predicate.User

HasFriends applies the HasEdge predicate on the "friends" edge.

func HasFriendsWith Uses

func HasFriendsWith(preds ...predicate.User) predicate.User

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

func HasGroups Uses

func HasGroups() predicate.User

HasGroups applies the HasEdge predicate on the "groups" edge.

func HasGroupsWith Uses

func HasGroupsWith(preds ...predicate.Group) predicate.User

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

func HasParent Uses

func HasParent() predicate.User

HasParent applies the HasEdge predicate on the "parent" edge.

func HasParentWith Uses

func HasParentWith(preds ...predicate.User) predicate.User

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

func HasPets Uses

func HasPets() predicate.User

HasPets applies the HasEdge predicate on the "pets" edge.

func HasPetsWith Uses

func HasPetsWith(preds ...predicate.Pet) predicate.User

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

func HasSpouse Uses

func HasSpouse() predicate.User

HasSpouse applies the HasEdge predicate on the "spouse" edge.

func HasSpouseWith Uses

func HasSpouseWith(preds ...predicate.User) predicate.User

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

func HasTeam Uses

func HasTeam() predicate.User

HasTeam applies the HasEdge predicate on the "team" edge.

func HasTeamWith Uses

func HasTeamWith(preds ...predicate.Pet) predicate.User

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

func ID Uses

func ID(id string) predicate.User

ID filters vertices based on their identifier.

func IDEQ Uses

func IDEQ(id string) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT Uses

func IDGT(id string) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE Uses

func IDGTE(id string) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn Uses

func IDIn(ids ...string) predicate.User

IDIn applies the In predicate on the ID field.

func IDLT Uses

func IDLT(id string) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE Uses

func IDLTE(id string) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ Uses

func IDNEQ(id string) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn Uses

func IDNotIn(ids ...string) predicate.User

IDNotIn applies the NotIn predicate on the ID field.

func Last Uses

func Last(v string) predicate.User

Last applies equality check predicate on the "last" field. It's identical to LastEQ.

func LastContains Uses

func LastContains(v string) predicate.User

LastContains applies the Contains predicate on the "last" field.

func LastEQ Uses

func LastEQ(v string) predicate.User

LastEQ applies the EQ predicate on the "last" field.

func LastGT Uses

func LastGT(v string) predicate.User

LastGT applies the GT predicate on the "last" field.

func LastGTE Uses

func LastGTE(v string) predicate.User

LastGTE applies the GTE predicate on the "last" field.

func LastHasPrefix Uses

func LastHasPrefix(v string) predicate.User

LastHasPrefix applies the HasPrefix predicate on the "last" field.

func LastHasSuffix Uses

func LastHasSuffix(v string) predicate.User

LastHasSuffix applies the HasSuffix predicate on the "last" field.

func LastIn Uses

func LastIn(vs ...string) predicate.User

LastIn applies the In predicate on the "last" field.

func LastLT Uses

func LastLT(v string) predicate.User

LastLT applies the LT predicate on the "last" field.

func LastLTE Uses

func LastLTE(v string) predicate.User

LastLTE applies the LTE predicate on the "last" field.

func LastNEQ Uses

func LastNEQ(v string) predicate.User

LastNEQ applies the NEQ predicate on the "last" field.

func LastNotIn Uses

func LastNotIn(vs ...string) predicate.User

LastNotIn applies the NotIn predicate on the "last" field.

func Name Uses

func Name(v string) predicate.User

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

func NameContains Uses

func NameContains(v string) predicate.User

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

func NameEQ Uses

func NameEQ(v string) predicate.User

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

func NameGT Uses

func NameGT(v string) predicate.User

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

func NameGTE Uses

func NameGTE(v string) predicate.User

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

func NameHasPrefix Uses

func NameHasPrefix(v string) predicate.User

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

func NameHasSuffix Uses

func NameHasSuffix(v string) predicate.User

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

func NameIn Uses

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

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

func NameLT Uses

func NameLT(v string) predicate.User

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

func NameLTE Uses

func NameLTE(v string) predicate.User

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

func NameNEQ Uses

func NameNEQ(v string) predicate.User

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

func NameNotIn Uses

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

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

func Nickname Uses

func Nickname(v string) predicate.User

Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.

func NicknameContains Uses

func NicknameContains(v string) predicate.User

NicknameContains applies the Contains predicate on the "nickname" field.

func NicknameEQ Uses

func NicknameEQ(v string) predicate.User

NicknameEQ applies the EQ predicate on the "nickname" field.

func NicknameGT Uses

func NicknameGT(v string) predicate.User

NicknameGT applies the GT predicate on the "nickname" field.

func NicknameGTE Uses

func NicknameGTE(v string) predicate.User

NicknameGTE applies the GTE predicate on the "nickname" field.

func NicknameHasPrefix Uses

func NicknameHasPrefix(v string) predicate.User

NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.

func NicknameHasSuffix Uses

func NicknameHasSuffix(v string) predicate.User

NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.

func NicknameIn Uses

func NicknameIn(vs ...string) predicate.User

NicknameIn applies the In predicate on the "nickname" field.

func NicknameIsNil Uses

func NicknameIsNil() predicate.User

NicknameIsNil applies the IsNil predicate on the "nickname" field.

func NicknameLT Uses

func NicknameLT(v string) predicate.User

NicknameLT applies the LT predicate on the "nickname" field.

func NicknameLTE Uses

func NicknameLTE(v string) predicate.User

NicknameLTE applies the LTE predicate on the "nickname" field.

func NicknameNEQ Uses

func NicknameNEQ(v string) predicate.User

NicknameNEQ applies the NEQ predicate on the "nickname" field.

func NicknameNotIn Uses

func NicknameNotIn(vs ...string) predicate.User

NicknameNotIn applies the NotIn predicate on the "nickname" field.

func NicknameNotNil Uses

func NicknameNotNil() predicate.User

NicknameNotNil applies the NotNil predicate on the "nickname" field.

func Not Uses

func Not(p predicate.User) predicate.User

Not applies the not operator on the given predicate.

func Or Uses

func Or(predicates ...predicate.User) predicate.User

Or groups list of predicates with the OR operator between them.

func Password Uses

func Password(v string) predicate.User

Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.

func PasswordContains Uses

func PasswordContains(v string) predicate.User

PasswordContains applies the Contains predicate on the "password" field.

func PasswordEQ Uses

func PasswordEQ(v string) predicate.User

PasswordEQ applies the EQ predicate on the "password" field.

func PasswordGT Uses

func PasswordGT(v string) predicate.User

PasswordGT applies the GT predicate on the "password" field.

func PasswordGTE Uses

func PasswordGTE(v string) predicate.User

PasswordGTE applies the GTE predicate on the "password" field.

func PasswordHasPrefix Uses

func PasswordHasPrefix(v string) predicate.User

PasswordHasPrefix applies the HasPrefix predicate on the "password" field.

func PasswordHasSuffix Uses

func PasswordHasSuffix(v string) predicate.User

PasswordHasSuffix applies the HasSuffix predicate on the "password" field.

func PasswordIn Uses

func PasswordIn(vs ...string) predicate.User

PasswordIn applies the In predicate on the "password" field.

func PasswordIsNil Uses

func PasswordIsNil() predicate.User

PasswordIsNil applies the IsNil predicate on the "password" field.

func PasswordLT Uses

func PasswordLT(v string) predicate.User

PasswordLT applies the LT predicate on the "password" field.

func PasswordLTE Uses

func PasswordLTE(v string) predicate.User

PasswordLTE applies the LTE predicate on the "password" field.

func PasswordNEQ Uses

func PasswordNEQ(v string) predicate.User

PasswordNEQ applies the NEQ predicate on the "password" field.

func PasswordNotIn Uses

func PasswordNotIn(vs ...string) predicate.User

PasswordNotIn applies the NotIn predicate on the "password" field.

func PasswordNotNil Uses

func PasswordNotNil() predicate.User

PasswordNotNil applies the NotNil predicate on the "password" field.

func Phone Uses

func Phone(v string) predicate.User

Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.

func PhoneContains Uses

func PhoneContains(v string) predicate.User

PhoneContains applies the Contains predicate on the "phone" field.

func PhoneEQ Uses

func PhoneEQ(v string) predicate.User

PhoneEQ applies the EQ predicate on the "phone" field.

func PhoneGT Uses

func PhoneGT(v string) predicate.User

PhoneGT applies the GT predicate on the "phone" field.

func PhoneGTE Uses

func PhoneGTE(v string) predicate.User

PhoneGTE applies the GTE predicate on the "phone" field.

func PhoneHasPrefix Uses

func PhoneHasPrefix(v string) predicate.User

PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.

func PhoneHasSuffix Uses

func PhoneHasSuffix(v string) predicate.User

PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.

func PhoneIn Uses

func PhoneIn(vs ...string) predicate.User

PhoneIn applies the In predicate on the "phone" field.

func PhoneIsNil Uses

func PhoneIsNil() predicate.User

PhoneIsNil applies the IsNil predicate on the "phone" field.

func PhoneLT Uses

func PhoneLT(v string) predicate.User

PhoneLT applies the LT predicate on the "phone" field.

func PhoneLTE Uses

func PhoneLTE(v string) predicate.User

PhoneLTE applies the LTE predicate on the "phone" field.

func PhoneNEQ Uses

func PhoneNEQ(v string) predicate.User

PhoneNEQ applies the NEQ predicate on the "phone" field.

func PhoneNotIn Uses

func PhoneNotIn(vs ...string) predicate.User

PhoneNotIn applies the NotIn predicate on the "phone" field.

func PhoneNotNil Uses

func PhoneNotNil() predicate.User

PhoneNotNil applies the NotNil predicate on the "phone" field.

Package user imports 7 packages (graph) and is imported by 2 packages. Updated 2019-11-15. Refresh now. Tools for package owners.