Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Classroom) predicate.Classroom
- func CreatedAt(v time.Time) predicate.Classroom
- func CreatedAtEQ(v time.Time) predicate.Classroom
- func CreatedAtGT(v time.Time) predicate.Classroom
- func CreatedAtGTE(v time.Time) predicate.Classroom
- func CreatedAtIn(vs ...time.Time) predicate.Classroom
- func CreatedAtLT(v time.Time) predicate.Classroom
- func CreatedAtLTE(v time.Time) predicate.Classroom
- func CreatedAtNEQ(v time.Time) predicate.Classroom
- func CreatedAtNotIn(vs ...time.Time) predicate.Classroom
- func HasLevel() predicate.Classroom
- func HasLevelWith(preds ...predicate.Level) predicate.Classroom
- func HasStudents() predicate.Classroom
- func HasStudentsWith(preds ...predicate.User) predicate.Classroom
- func HasTeacher() predicate.Classroom
- func HasTeacherWith(preds ...predicate.User) predicate.Classroom
- func ID(id uint) predicate.Classroom
- func IDEQ(id uint) predicate.Classroom
- func IDGT(id uint) predicate.Classroom
- func IDGTE(id uint) predicate.Classroom
- func IDIn(ids ...uint) predicate.Classroom
- func IDLT(id uint) predicate.Classroom
- func IDLTE(id uint) predicate.Classroom
- func IDNEQ(id uint) predicate.Classroom
- func IDNotIn(ids ...uint) predicate.Classroom
- func Not(p predicate.Classroom) predicate.Classroom
- func Or(predicates ...predicate.Classroom) predicate.Classroom
- func UpdatedAt(v time.Time) predicate.Classroom
- func UpdatedAtEQ(v time.Time) predicate.Classroom
- func UpdatedAtGT(v time.Time) predicate.Classroom
- func UpdatedAtGTE(v time.Time) predicate.Classroom
- func UpdatedAtIn(vs ...time.Time) predicate.Classroom
- func UpdatedAtLT(v time.Time) predicate.Classroom
- func UpdatedAtLTE(v time.Time) predicate.Classroom
- func UpdatedAtNEQ(v time.Time) predicate.Classroom
- func UpdatedAtNotIn(vs ...time.Time) predicate.Classroom
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for classroom fields.
var ForeignKeys = []string{
"classroom_teacher",
"classroom_level",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Classroom type.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasLevelWith ¶
HasLevelWith applies the HasEdge predicate on the "level" edge with a given conditions (other predicates).
func HasStudents ¶
HasStudents applies the HasEdge predicate on the "students" edge.
func HasStudentsWith ¶
HasStudentsWith applies the HasEdge predicate on the "students" edge with a given conditions (other predicates).
func HasTeacher ¶
HasTeacher applies the HasEdge predicate on the "teacher" edge.
func HasTeacherWith ¶
HasTeacherWith applies the HasEdge predicate on the "teacher" edge with a given conditions (other predicates).
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
Types ¶
This section is empty.