classroom

package
v0.0.0-...-7d6f566 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the classroom type in the database.
	Label = "classroom"
	// FieldID holds the string denoting the id field in the database.
	FieldID        = "id"         // FieldCreatedAt holds the string denoting the created_at vertex property in the database.
	FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at vertex property in the database.
	FieldUpdatedAt = "updated_at"

	// EdgeTeacher holds the string denoting the teacher edge name in mutations.
	EdgeTeacher = "teacher"
	// EdgeStudents holds the string denoting the students edge name in mutations.
	EdgeStudents = "students"
	// EdgeLevel holds the string denoting the level edge name in mutations.
	EdgeLevel = "level"

	// Table holds the table name of the classroom in the database.
	Table = "classrooms"
	// TeacherTable is the table the holds the teacher relation/edge.
	TeacherTable = "classrooms"
	// TeacherInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	TeacherInverseTable = "users"
	// TeacherColumn is the table column denoting the teacher relation/edge.
	TeacherColumn = "classroom_teacher"
	// StudentsTable is the table the holds the students relation/edge.
	StudentsTable = "users"
	// StudentsInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	StudentsInverseTable = "users"
	// StudentsColumn is the table column denoting the students relation/edge.
	StudentsColumn = "classroom_students"
	// LevelTable is the table the holds the level relation/edge.
	LevelTable = "classrooms"
	// LevelInverseTable is the table name for the Level entity.
	// It exists in this package in order to avoid circular dependency with the "level" package.
	LevelInverseTable = "levels"
	// LevelColumn is the table column denoting the level relation/edge.
	LevelColumn = "classroom_level"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the created_at field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the updated_at field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	UpdateDefaultUpdatedAt func() time.Time
)

Columns holds all SQL columns for classroom fields.

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

ForeignKeys holds the SQL foreign-keys that are owned by the Classroom type.

Functions

func And

func And(predicates ...predicate.Classroom) predicate.Classroom

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

func CreatedAt

func CreatedAt(v time.Time) predicate.Classroom

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Classroom

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Classroom

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Classroom

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Classroom

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Classroom

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Classroom

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Classroom

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Classroom

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasLevel

func HasLevel() predicate.Classroom

HasLevel applies the HasEdge predicate on the "level" edge.

func HasLevelWith

func HasLevelWith(preds ...predicate.Level) predicate.Classroom

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

func HasStudents

func HasStudents() predicate.Classroom

HasStudents applies the HasEdge predicate on the "students" edge.

func HasStudentsWith

func HasStudentsWith(preds ...predicate.User) predicate.Classroom

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

func HasTeacher

func HasTeacher() predicate.Classroom

HasTeacher applies the HasEdge predicate on the "teacher" edge.

func HasTeacherWith

func HasTeacherWith(preds ...predicate.User) predicate.Classroom

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

func ID

func ID(id uint) predicate.Classroom

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id uint) predicate.Classroom

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint) predicate.Classroom

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint) predicate.Classroom

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint) predicate.Classroom

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint) predicate.Classroom

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint) predicate.Classroom

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint) predicate.Classroom

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint) predicate.Classroom

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Classroom) predicate.Classroom

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Classroom

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Classroom

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Classroom

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Classroom

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Classroom

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Classroom

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Classroom

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Classroom

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Classroom

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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