student

package
v0.0.0-...-1cc1a95 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the student type in the database.
	Label = "student"
	// 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"
	// FieldAge holds the string denoting the age field in the database.
	FieldAge = "age"
	// FieldSex holds the string denoting the sex field in the database.
	FieldSex = "sex"
	// FieldCode holds the string denoting the code field in the database.
	FieldCode = "code"
	// FieldAvatar holds the string denoting the avatar field in the database.
	FieldAvatar = "avatar"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeDepartment holds the string denoting the department edge name in mutations.
	EdgeDepartment = "department"
	// EdgeMajor holds the string denoting the major edge name in mutations.
	EdgeMajor = "major"
	// EdgeClass holds the string denoting the class edge name in mutations.
	EdgeClass = "class"
	// EdgeClassLeader holds the string denoting the class_leader edge name in mutations.
	EdgeClassLeader = "class_leader"
	// EdgeTutor holds the string denoting the tutor edge name in mutations.
	EdgeTutor = "tutor"
	// EdgeCertificate holds the string denoting the certificate edge name in mutations.
	EdgeCertificate = "certificate"
	// EdgeEducationLevel holds the string denoting the education_level edge name in mutations.
	EdgeEducationLevel = "education_level"
	// EdgeEnrollmentStatus holds the string denoting the enrollment_status edge name in mutations.
	EdgeEnrollmentStatus = "enrollment_status"
	// EdgeFamilyInfo holds the string denoting the family_info edge name in mutations.
	EdgeFamilyInfo = "family_info"
	// EdgePracticalExperience holds the string denoting the practical_experience edge name in mutations.
	EdgePracticalExperience = "practical_experience"
	// Table holds the table name of the student in the database.
	Table = "students"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "users"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "student_user"
	// DepartmentTable is the table that holds the department relation/edge.
	DepartmentTable = "students"
	// DepartmentInverseTable is the table name for the Department entity.
	// It exists in this package in order to avoid circular dependency with the "department" package.
	DepartmentInverseTable = "departments"
	// DepartmentColumn is the table column denoting the department relation/edge.
	DepartmentColumn = "student_department"
	// MajorTable is the table that holds the major relation/edge.
	MajorTable = "students"
	// MajorInverseTable is the table name for the Major entity.
	// It exists in this package in order to avoid circular dependency with the "major" package.
	MajorInverseTable = "majors"
	// MajorColumn is the table column denoting the major relation/edge.
	MajorColumn = "student_major"
	// ClassTable is the table that holds the class relation/edge.
	ClassTable = "students"
	// ClassInverseTable is the table name for the Class entity.
	// It exists in this package in order to avoid circular dependency with the "class" package.
	ClassInverseTable = "classes"
	// ClassColumn is the table column denoting the class relation/edge.
	ClassColumn = "student_class"
	// ClassLeaderTable is the table that holds the class_leader relation/edge.
	ClassLeaderTable = "students"
	// ClassLeaderInverseTable is the table name for the ClassLeader entity.
	// It exists in this package in order to avoid circular dependency with the "classleader" package.
	ClassLeaderInverseTable = "class_leaders"
	// ClassLeaderColumn is the table column denoting the class_leader relation/edge.
	ClassLeaderColumn = "class_leader_student"
	// TutorTable is the table that holds the tutor relation/edge.
	TutorTable = "students"
	// TutorInverseTable is the table name for the Tutor entity.
	// It exists in this package in order to avoid circular dependency with the "tutor" package.
	TutorInverseTable = "tutors"
	// TutorColumn is the table column denoting the tutor relation/edge.
	TutorColumn = "tutor_student"
	// CertificateTable is the table that holds the certificate relation/edge.
	CertificateTable = "certificates"
	// CertificateInverseTable is the table name for the Certificate entity.
	// It exists in this package in order to avoid circular dependency with the "certificate" package.
	CertificateInverseTable = "certificates"
	// CertificateColumn is the table column denoting the certificate relation/edge.
	CertificateColumn = "certificate_student"
	// EducationLevelTable is the table that holds the education_level relation/edge.
	EducationLevelTable = "education_levels"
	// EducationLevelInverseTable is the table name for the EducationLevel entity.
	// It exists in this package in order to avoid circular dependency with the "educationlevel" package.
	EducationLevelInverseTable = "education_levels"
	// EducationLevelColumn is the table column denoting the education_level relation/edge.
	EducationLevelColumn = "education_level_student"
	// EnrollmentStatusTable is the table that holds the enrollment_status relation/edge.
	EnrollmentStatusTable = "enrollment_status"
	// EnrollmentStatusInverseTable is the table name for the EnrollmentStatus entity.
	// It exists in this package in order to avoid circular dependency with the "enrollmentstatus" package.
	EnrollmentStatusInverseTable = "enrollment_status"
	// EnrollmentStatusColumn is the table column denoting the enrollment_status relation/edge.
	EnrollmentStatusColumn = "enrollment_status_student"
	// FamilyInfoTable is the table that holds the family_info relation/edge.
	FamilyInfoTable = "family_infos"
	// FamilyInfoInverseTable is the table name for the FamilyInfo entity.
	// It exists in this package in order to avoid circular dependency with the "familyinfo" package.
	FamilyInfoInverseTable = "family_infos"
	// FamilyInfoColumn is the table column denoting the family_info relation/edge.
	FamilyInfoColumn = "family_info_student"
	// PracticalExperienceTable is the table that holds the practical_experience relation/edge.
	PracticalExperienceTable = "practical_experiences"
	// PracticalExperienceInverseTable is the table name for the PracticalExperience entity.
	// It exists in this package in order to avoid circular dependency with the "practicalexperience" package.
	PracticalExperienceInverseTable = "practical_experiences"
	// PracticalExperienceColumn is the table column denoting the practical_experience relation/edge.
	PracticalExperienceColumn = "practical_experience_student"
)

Variables

Columns holds all SQL columns for student fields.

View Source
var ForeignKeys = []string{
	"class_leader_student",
	"student_department",
	"student_major",
	"student_class",
	"tutor_student",
}

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

Functions

func Age

func Age(v int) predicate.Student

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

func AgeEQ

func AgeEQ(v int) predicate.Student

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

func AgeGT

func AgeGT(v int) predicate.Student

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

func AgeGTE

func AgeGTE(v int) predicate.Student

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

func AgeIn

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

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

func AgeLT

func AgeLT(v int) predicate.Student

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

func AgeLTE

func AgeLTE(v int) predicate.Student

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

func AgeNEQ

func AgeNEQ(v int) predicate.Student

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

func AgeNotIn

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

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

func And

func And(predicates ...predicate.Student) predicate.Student

And groups predicates with the AND operator between them.

func Avatar

func Avatar(v []byte) predicate.Student

Avatar applies equality check predicate on the "avatar" field. It's identical to AvatarEQ.

func AvatarEQ

func AvatarEQ(v []byte) predicate.Student

AvatarEQ applies the EQ predicate on the "avatar" field.

func AvatarGT

func AvatarGT(v []byte) predicate.Student

AvatarGT applies the GT predicate on the "avatar" field.

func AvatarGTE

func AvatarGTE(v []byte) predicate.Student

AvatarGTE applies the GTE predicate on the "avatar" field.

func AvatarIn

func AvatarIn(vs ...[]byte) predicate.Student

AvatarIn applies the In predicate on the "avatar" field.

func AvatarLT

func AvatarLT(v []byte) predicate.Student

AvatarLT applies the LT predicate on the "avatar" field.

func AvatarLTE

func AvatarLTE(v []byte) predicate.Student

AvatarLTE applies the LTE predicate on the "avatar" field.

func AvatarNEQ

func AvatarNEQ(v []byte) predicate.Student

AvatarNEQ applies the NEQ predicate on the "avatar" field.

func AvatarNotIn

func AvatarNotIn(vs ...[]byte) predicate.Student

AvatarNotIn applies the NotIn predicate on the "avatar" field.

func Code

func Code(v string) predicate.Student

Code applies equality check predicate on the "code" field. It's identical to CodeEQ.

func CodeContains

func CodeContains(v string) predicate.Student

CodeContains applies the Contains predicate on the "code" field.

func CodeContainsFold

func CodeContainsFold(v string) predicate.Student

CodeContainsFold applies the ContainsFold predicate on the "code" field.

func CodeEQ

func CodeEQ(v string) predicate.Student

CodeEQ applies the EQ predicate on the "code" field.

func CodeEqualFold

func CodeEqualFold(v string) predicate.Student

CodeEqualFold applies the EqualFold predicate on the "code" field.

func CodeGT

func CodeGT(v string) predicate.Student

CodeGT applies the GT predicate on the "code" field.

func CodeGTE

func CodeGTE(v string) predicate.Student

CodeGTE applies the GTE predicate on the "code" field.

func CodeHasPrefix

func CodeHasPrefix(v string) predicate.Student

CodeHasPrefix applies the HasPrefix predicate on the "code" field.

func CodeHasSuffix

func CodeHasSuffix(v string) predicate.Student

CodeHasSuffix applies the HasSuffix predicate on the "code" field.

func CodeIn

func CodeIn(vs ...string) predicate.Student

CodeIn applies the In predicate on the "code" field.

func CodeLT

func CodeLT(v string) predicate.Student

CodeLT applies the LT predicate on the "code" field.

func CodeLTE

func CodeLTE(v string) predicate.Student

CodeLTE applies the LTE predicate on the "code" field.

func CodeNEQ

func CodeNEQ(v string) predicate.Student

CodeNEQ applies the NEQ predicate on the "code" field.

func CodeNotIn

func CodeNotIn(vs ...string) predicate.Student

CodeNotIn applies the NotIn predicate on the "code" field.

func HasCertificate

func HasCertificate() predicate.Student

HasCertificate applies the HasEdge predicate on the "certificate" edge.

func HasCertificateWith

func HasCertificateWith(preds ...predicate.Certificate) predicate.Student

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

func HasClass

func HasClass() predicate.Student

HasClass applies the HasEdge predicate on the "class" edge.

func HasClassLeader

func HasClassLeader() predicate.Student

HasClassLeader applies the HasEdge predicate on the "class_leader" edge.

func HasClassLeaderWith

func HasClassLeaderWith(preds ...predicate.ClassLeader) predicate.Student

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

func HasClassWith

func HasClassWith(preds ...predicate.Class) predicate.Student

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

func HasDepartment

func HasDepartment() predicate.Student

HasDepartment applies the HasEdge predicate on the "department" edge.

func HasDepartmentWith

func HasDepartmentWith(preds ...predicate.Department) predicate.Student

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

func HasEducationLevel

func HasEducationLevel() predicate.Student

HasEducationLevel applies the HasEdge predicate on the "education_level" edge.

func HasEducationLevelWith

func HasEducationLevelWith(preds ...predicate.EducationLevel) predicate.Student

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

func HasEnrollmentStatus

func HasEnrollmentStatus() predicate.Student

HasEnrollmentStatus applies the HasEdge predicate on the "enrollment_status" edge.

func HasEnrollmentStatusWith

func HasEnrollmentStatusWith(preds ...predicate.EnrollmentStatus) predicate.Student

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

func HasFamilyInfo

func HasFamilyInfo() predicate.Student

HasFamilyInfo applies the HasEdge predicate on the "family_info" edge.

func HasFamilyInfoWith

func HasFamilyInfoWith(preds ...predicate.FamilyInfo) predicate.Student

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

func HasMajor

func HasMajor() predicate.Student

HasMajor applies the HasEdge predicate on the "major" edge.

func HasMajorWith

func HasMajorWith(preds ...predicate.Major) predicate.Student

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

func HasPracticalExperience

func HasPracticalExperience() predicate.Student

HasPracticalExperience applies the HasEdge predicate on the "practical_experience" edge.

func HasPracticalExperienceWith

func HasPracticalExperienceWith(preds ...predicate.PracticalExperience) predicate.Student

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

func HasTutor

func HasTutor() predicate.Student

HasTutor applies the HasEdge predicate on the "tutor" edge.

func HasTutorWith

func HasTutorWith(preds ...predicate.Tutor) predicate.Student

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

func HasUser

func HasUser() predicate.Student

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Student

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

func ID

func ID(id int) predicate.Student

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Student

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Student

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Student

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Student

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Student

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Student

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Student

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Student

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Student

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

func NameContains

func NameContains(v string) predicate.Student

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

func NameContainsFold

func NameContainsFold(v string) predicate.Student

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

func NameEQ

func NameEQ(v string) predicate.Student

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

func NameEqualFold

func NameEqualFold(v string) predicate.Student

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

func NameGT

func NameGT(v string) predicate.Student

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

func NameGTE

func NameGTE(v string) predicate.Student

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Student

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Student

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Student

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

func NameLTE

func NameLTE(v string) predicate.Student

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

func NameNEQ

func NameNEQ(v string) predicate.Student

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

func NameNotIn

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

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.Student) predicate.Student

Or groups predicates with the OR operator between them.

func Sex

func Sex(v string) predicate.Student

Sex applies equality check predicate on the "sex" field. It's identical to SexEQ.

func SexContains

func SexContains(v string) predicate.Student

SexContains applies the Contains predicate on the "sex" field.

func SexContainsFold

func SexContainsFold(v string) predicate.Student

SexContainsFold applies the ContainsFold predicate on the "sex" field.

func SexEQ

func SexEQ(v string) predicate.Student

SexEQ applies the EQ predicate on the "sex" field.

func SexEqualFold

func SexEqualFold(v string) predicate.Student

SexEqualFold applies the EqualFold predicate on the "sex" field.

func SexGT

func SexGT(v string) predicate.Student

SexGT applies the GT predicate on the "sex" field.

func SexGTE

func SexGTE(v string) predicate.Student

SexGTE applies the GTE predicate on the "sex" field.

func SexHasPrefix

func SexHasPrefix(v string) predicate.Student

SexHasPrefix applies the HasPrefix predicate on the "sex" field.

func SexHasSuffix

func SexHasSuffix(v string) predicate.Student

SexHasSuffix applies the HasSuffix predicate on the "sex" field.

func SexIn

func SexIn(vs ...string) predicate.Student

SexIn applies the In predicate on the "sex" field.

func SexLT

func SexLT(v string) predicate.Student

SexLT applies the LT predicate on the "sex" field.

func SexLTE

func SexLTE(v string) predicate.Student

SexLTE applies the LTE predicate on the "sex" field.

func SexNEQ

func SexNEQ(v string) predicate.Student

SexNEQ applies the NEQ predicate on the "sex" field.

func SexNotIn

func SexNotIn(vs ...string) predicate.Student

SexNotIn applies the NotIn predicate on the "sex" 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