backend api, swagger, tooling, frontend skeleton
This commit is contained in:
164
backend/internal/data/ent/champpersonnalise/champpersonnalise.go
Normal file
164
backend/internal/data/ent/champpersonnalise/champpersonnalise.go
Normal file
@@ -0,0 +1,164 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package champpersonnalise
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the champpersonnalise type in the database.
|
||||
Label = "champ_personnalise"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldObjetID holds the string denoting the objet_id field in the database.
|
||||
FieldObjetID = "objet_id"
|
||||
// FieldNomChamp holds the string denoting the nom_champ field in the database.
|
||||
FieldNomChamp = "nom_champ"
|
||||
// FieldTypeChamp holds the string denoting the type_champ field in the database.
|
||||
FieldTypeChamp = "type_champ"
|
||||
// FieldValeur holds the string denoting the valeur field in the database.
|
||||
FieldValeur = "valeur"
|
||||
// FieldUnite holds the string denoting the unite field in the database.
|
||||
FieldUnite = "unite"
|
||||
// FieldCreatedAt holds the string denoting the created_at field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// FieldUpdatedAt holds the string denoting the updated_at field in the database.
|
||||
FieldUpdatedAt = "updated_at"
|
||||
// EdgeObjet holds the string denoting the objet edge name in mutations.
|
||||
EdgeObjet = "objet"
|
||||
// Table holds the table name of the champpersonnalise in the database.
|
||||
Table = "champ_personnalise"
|
||||
// ObjetTable is the table that holds the objet relation/edge.
|
||||
ObjetTable = "champ_personnalise"
|
||||
// ObjetInverseTable is the table name for the Objet entity.
|
||||
// It exists in this package in order to avoid circular dependency with the "objet" package.
|
||||
ObjetInverseTable = "objet"
|
||||
// ObjetColumn is the table column denoting the objet relation/edge.
|
||||
ObjetColumn = "objet_id"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for champpersonnalise fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldObjetID,
|
||||
FieldNomChamp,
|
||||
FieldTypeChamp,
|
||||
FieldValeur,
|
||||
FieldUnite,
|
||||
FieldCreatedAt,
|
||||
FieldUpdatedAt,
|
||||
}
|
||||
|
||||
// ValidColumn reports if the column name is valid (part of the table columns).
|
||||
func ValidColumn(column string) bool {
|
||||
for i := range Columns {
|
||||
if column == Columns[i] {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var (
|
||||
// NomChampValidator is a validator for the "nom_champ" field. It is called by the builders before save.
|
||||
NomChampValidator func(string) error
|
||||
// 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
|
||||
// DefaultID holds the default value on creation for the "id" field.
|
||||
DefaultID func() uuid.UUID
|
||||
)
|
||||
|
||||
// TypeChamp defines the type for the "type_champ" enum field.
|
||||
type TypeChamp string
|
||||
|
||||
// TypeChampString is the default value of the TypeChamp enum.
|
||||
const DefaultTypeChamp = TypeChampString
|
||||
|
||||
// TypeChamp values.
|
||||
const (
|
||||
TypeChampString TypeChamp = "string"
|
||||
TypeChampInt TypeChamp = "int"
|
||||
TypeChampBool TypeChamp = "bool"
|
||||
TypeChampDate TypeChamp = "date"
|
||||
)
|
||||
|
||||
func (tc TypeChamp) String() string {
|
||||
return string(tc)
|
||||
}
|
||||
|
||||
// TypeChampValidator is a validator for the "type_champ" field enum values. It is called by the builders before save.
|
||||
func TypeChampValidator(tc TypeChamp) error {
|
||||
switch tc {
|
||||
case TypeChampString, TypeChampInt, TypeChampBool, TypeChampDate:
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("champpersonnalise: invalid enum value for type_champ field: %q", tc)
|
||||
}
|
||||
}
|
||||
|
||||
// OrderOption defines the ordering options for the ChampPersonnalise queries.
|
||||
type OrderOption func(*sql.Selector)
|
||||
|
||||
// ByID orders the results by the id field.
|
||||
func ByID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByObjetID orders the results by the objet_id field.
|
||||
func ByObjetID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldObjetID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByNomChamp orders the results by the nom_champ field.
|
||||
func ByNomChamp(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldNomChamp, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByTypeChamp orders the results by the type_champ field.
|
||||
func ByTypeChamp(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldTypeChamp, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByValeur orders the results by the valeur field.
|
||||
func ByValeur(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldValeur, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByUnite orders the results by the unite field.
|
||||
func ByUnite(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUnite, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the created_at field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByUpdatedAt orders the results by the updated_at field.
|
||||
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByObjetField orders the results by objet field.
|
||||
func ByObjetField(field string, opts ...sql.OrderTermOption) OrderOption {
|
||||
return func(s *sql.Selector) {
|
||||
sqlgraph.OrderByNeighborTerms(s, newObjetStep(), sql.OrderByField(field, opts...))
|
||||
}
|
||||
}
|
||||
func newObjetStep() *sqlgraph.Step {
|
||||
return sqlgraph.NewStep(
|
||||
sqlgraph.From(Table, FieldID),
|
||||
sqlgraph.To(ObjetInverseTable, FieldID),
|
||||
sqlgraph.Edge(sqlgraph.M2O, true, ObjetTable, ObjetColumn),
|
||||
)
|
||||
}
|
||||
460
backend/internal/data/ent/champpersonnalise/where.go
Normal file
460
backend/internal/data/ent/champpersonnalise/where.go
Normal file
@@ -0,0 +1,460 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package champpersonnalise
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||
"gitea.maison43.duckdns.org/gilles/matosbox/internal/data/ent/predicate"
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
func ID(id uuid.UUID) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id uuid.UUID) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id uuid.UUID) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...uuid.UUID) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...uuid.UUID) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id uuid.UUID) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id uuid.UUID) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id uuid.UUID) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id uuid.UUID) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// ObjetID applies equality check predicate on the "objet_id" field. It's identical to ObjetIDEQ.
|
||||
func ObjetID(v uuid.UUID) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldEQ(FieldObjetID, v))
|
||||
}
|
||||
|
||||
// NomChamp applies equality check predicate on the "nom_champ" field. It's identical to NomChampEQ.
|
||||
func NomChamp(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldEQ(FieldNomChamp, v))
|
||||
}
|
||||
|
||||
// Valeur applies equality check predicate on the "valeur" field. It's identical to ValeurEQ.
|
||||
func Valeur(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldEQ(FieldValeur, v))
|
||||
}
|
||||
|
||||
// Unite applies equality check predicate on the "unite" field. It's identical to UniteEQ.
|
||||
func Unite(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldEQ(FieldUnite, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v time.Time) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
|
||||
func UpdatedAt(v time.Time) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// ObjetIDEQ applies the EQ predicate on the "objet_id" field.
|
||||
func ObjetIDEQ(v uuid.UUID) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldEQ(FieldObjetID, v))
|
||||
}
|
||||
|
||||
// ObjetIDNEQ applies the NEQ predicate on the "objet_id" field.
|
||||
func ObjetIDNEQ(v uuid.UUID) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldNEQ(FieldObjetID, v))
|
||||
}
|
||||
|
||||
// ObjetIDIn applies the In predicate on the "objet_id" field.
|
||||
func ObjetIDIn(vs ...uuid.UUID) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldIn(FieldObjetID, vs...))
|
||||
}
|
||||
|
||||
// ObjetIDNotIn applies the NotIn predicate on the "objet_id" field.
|
||||
func ObjetIDNotIn(vs ...uuid.UUID) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldNotIn(FieldObjetID, vs...))
|
||||
}
|
||||
|
||||
// NomChampEQ applies the EQ predicate on the "nom_champ" field.
|
||||
func NomChampEQ(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldEQ(FieldNomChamp, v))
|
||||
}
|
||||
|
||||
// NomChampNEQ applies the NEQ predicate on the "nom_champ" field.
|
||||
func NomChampNEQ(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldNEQ(FieldNomChamp, v))
|
||||
}
|
||||
|
||||
// NomChampIn applies the In predicate on the "nom_champ" field.
|
||||
func NomChampIn(vs ...string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldIn(FieldNomChamp, vs...))
|
||||
}
|
||||
|
||||
// NomChampNotIn applies the NotIn predicate on the "nom_champ" field.
|
||||
func NomChampNotIn(vs ...string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldNotIn(FieldNomChamp, vs...))
|
||||
}
|
||||
|
||||
// NomChampGT applies the GT predicate on the "nom_champ" field.
|
||||
func NomChampGT(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldGT(FieldNomChamp, v))
|
||||
}
|
||||
|
||||
// NomChampGTE applies the GTE predicate on the "nom_champ" field.
|
||||
func NomChampGTE(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldGTE(FieldNomChamp, v))
|
||||
}
|
||||
|
||||
// NomChampLT applies the LT predicate on the "nom_champ" field.
|
||||
func NomChampLT(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldLT(FieldNomChamp, v))
|
||||
}
|
||||
|
||||
// NomChampLTE applies the LTE predicate on the "nom_champ" field.
|
||||
func NomChampLTE(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldLTE(FieldNomChamp, v))
|
||||
}
|
||||
|
||||
// NomChampContains applies the Contains predicate on the "nom_champ" field.
|
||||
func NomChampContains(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldContains(FieldNomChamp, v))
|
||||
}
|
||||
|
||||
// NomChampHasPrefix applies the HasPrefix predicate on the "nom_champ" field.
|
||||
func NomChampHasPrefix(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldHasPrefix(FieldNomChamp, v))
|
||||
}
|
||||
|
||||
// NomChampHasSuffix applies the HasSuffix predicate on the "nom_champ" field.
|
||||
func NomChampHasSuffix(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldHasSuffix(FieldNomChamp, v))
|
||||
}
|
||||
|
||||
// NomChampEqualFold applies the EqualFold predicate on the "nom_champ" field.
|
||||
func NomChampEqualFold(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldEqualFold(FieldNomChamp, v))
|
||||
}
|
||||
|
||||
// NomChampContainsFold applies the ContainsFold predicate on the "nom_champ" field.
|
||||
func NomChampContainsFold(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldContainsFold(FieldNomChamp, v))
|
||||
}
|
||||
|
||||
// TypeChampEQ applies the EQ predicate on the "type_champ" field.
|
||||
func TypeChampEQ(v TypeChamp) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldEQ(FieldTypeChamp, v))
|
||||
}
|
||||
|
||||
// TypeChampNEQ applies the NEQ predicate on the "type_champ" field.
|
||||
func TypeChampNEQ(v TypeChamp) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldNEQ(FieldTypeChamp, v))
|
||||
}
|
||||
|
||||
// TypeChampIn applies the In predicate on the "type_champ" field.
|
||||
func TypeChampIn(vs ...TypeChamp) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldIn(FieldTypeChamp, vs...))
|
||||
}
|
||||
|
||||
// TypeChampNotIn applies the NotIn predicate on the "type_champ" field.
|
||||
func TypeChampNotIn(vs ...TypeChamp) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldNotIn(FieldTypeChamp, vs...))
|
||||
}
|
||||
|
||||
// ValeurEQ applies the EQ predicate on the "valeur" field.
|
||||
func ValeurEQ(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldEQ(FieldValeur, v))
|
||||
}
|
||||
|
||||
// ValeurNEQ applies the NEQ predicate on the "valeur" field.
|
||||
func ValeurNEQ(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldNEQ(FieldValeur, v))
|
||||
}
|
||||
|
||||
// ValeurIn applies the In predicate on the "valeur" field.
|
||||
func ValeurIn(vs ...string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldIn(FieldValeur, vs...))
|
||||
}
|
||||
|
||||
// ValeurNotIn applies the NotIn predicate on the "valeur" field.
|
||||
func ValeurNotIn(vs ...string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldNotIn(FieldValeur, vs...))
|
||||
}
|
||||
|
||||
// ValeurGT applies the GT predicate on the "valeur" field.
|
||||
func ValeurGT(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldGT(FieldValeur, v))
|
||||
}
|
||||
|
||||
// ValeurGTE applies the GTE predicate on the "valeur" field.
|
||||
func ValeurGTE(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldGTE(FieldValeur, v))
|
||||
}
|
||||
|
||||
// ValeurLT applies the LT predicate on the "valeur" field.
|
||||
func ValeurLT(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldLT(FieldValeur, v))
|
||||
}
|
||||
|
||||
// ValeurLTE applies the LTE predicate on the "valeur" field.
|
||||
func ValeurLTE(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldLTE(FieldValeur, v))
|
||||
}
|
||||
|
||||
// ValeurContains applies the Contains predicate on the "valeur" field.
|
||||
func ValeurContains(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldContains(FieldValeur, v))
|
||||
}
|
||||
|
||||
// ValeurHasPrefix applies the HasPrefix predicate on the "valeur" field.
|
||||
func ValeurHasPrefix(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldHasPrefix(FieldValeur, v))
|
||||
}
|
||||
|
||||
// ValeurHasSuffix applies the HasSuffix predicate on the "valeur" field.
|
||||
func ValeurHasSuffix(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldHasSuffix(FieldValeur, v))
|
||||
}
|
||||
|
||||
// ValeurIsNil applies the IsNil predicate on the "valeur" field.
|
||||
func ValeurIsNil() predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldIsNull(FieldValeur))
|
||||
}
|
||||
|
||||
// ValeurNotNil applies the NotNil predicate on the "valeur" field.
|
||||
func ValeurNotNil() predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldNotNull(FieldValeur))
|
||||
}
|
||||
|
||||
// ValeurEqualFold applies the EqualFold predicate on the "valeur" field.
|
||||
func ValeurEqualFold(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldEqualFold(FieldValeur, v))
|
||||
}
|
||||
|
||||
// ValeurContainsFold applies the ContainsFold predicate on the "valeur" field.
|
||||
func ValeurContainsFold(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldContainsFold(FieldValeur, v))
|
||||
}
|
||||
|
||||
// UniteEQ applies the EQ predicate on the "unite" field.
|
||||
func UniteEQ(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldEQ(FieldUnite, v))
|
||||
}
|
||||
|
||||
// UniteNEQ applies the NEQ predicate on the "unite" field.
|
||||
func UniteNEQ(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldNEQ(FieldUnite, v))
|
||||
}
|
||||
|
||||
// UniteIn applies the In predicate on the "unite" field.
|
||||
func UniteIn(vs ...string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldIn(FieldUnite, vs...))
|
||||
}
|
||||
|
||||
// UniteNotIn applies the NotIn predicate on the "unite" field.
|
||||
func UniteNotIn(vs ...string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldNotIn(FieldUnite, vs...))
|
||||
}
|
||||
|
||||
// UniteGT applies the GT predicate on the "unite" field.
|
||||
func UniteGT(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldGT(FieldUnite, v))
|
||||
}
|
||||
|
||||
// UniteGTE applies the GTE predicate on the "unite" field.
|
||||
func UniteGTE(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldGTE(FieldUnite, v))
|
||||
}
|
||||
|
||||
// UniteLT applies the LT predicate on the "unite" field.
|
||||
func UniteLT(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldLT(FieldUnite, v))
|
||||
}
|
||||
|
||||
// UniteLTE applies the LTE predicate on the "unite" field.
|
||||
func UniteLTE(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldLTE(FieldUnite, v))
|
||||
}
|
||||
|
||||
// UniteContains applies the Contains predicate on the "unite" field.
|
||||
func UniteContains(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldContains(FieldUnite, v))
|
||||
}
|
||||
|
||||
// UniteHasPrefix applies the HasPrefix predicate on the "unite" field.
|
||||
func UniteHasPrefix(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldHasPrefix(FieldUnite, v))
|
||||
}
|
||||
|
||||
// UniteHasSuffix applies the HasSuffix predicate on the "unite" field.
|
||||
func UniteHasSuffix(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldHasSuffix(FieldUnite, v))
|
||||
}
|
||||
|
||||
// UniteIsNil applies the IsNil predicate on the "unite" field.
|
||||
func UniteIsNil() predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldIsNull(FieldUnite))
|
||||
}
|
||||
|
||||
// UniteNotNil applies the NotNil predicate on the "unite" field.
|
||||
func UniteNotNil() predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldNotNull(FieldUnite))
|
||||
}
|
||||
|
||||
// UniteEqualFold applies the EqualFold predicate on the "unite" field.
|
||||
func UniteEqualFold(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldEqualFold(FieldUnite, v))
|
||||
}
|
||||
|
||||
// UniteContainsFold applies the ContainsFold predicate on the "unite" field.
|
||||
func UniteContainsFold(v string) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldContainsFold(FieldUnite, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
||||
func CreatedAtEQ(v time.Time) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
||||
func CreatedAtNEQ(v time.Time) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "created_at" field.
|
||||
func CreatedAtIn(vs ...time.Time) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
||||
func CreatedAtNotIn(vs ...time.Time) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
||||
func CreatedAtGT(v time.Time) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
||||
func CreatedAtGTE(v time.Time) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
||||
func CreatedAtLT(v time.Time) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
||||
func CreatedAtLTE(v time.Time) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
|
||||
func UpdatedAtEQ(v time.Time) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
|
||||
func UpdatedAtNEQ(v time.Time) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldNEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtIn applies the In predicate on the "updated_at" field.
|
||||
func UpdatedAtIn(vs ...time.Time) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
|
||||
func UpdatedAtNotIn(vs ...time.Time) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
|
||||
func UpdatedAtGT(v time.Time) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldGT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
|
||||
func UpdatedAtGTE(v time.Time) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldGTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
|
||||
func UpdatedAtLT(v time.Time) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldLT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
|
||||
func UpdatedAtLTE(v time.Time) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.FieldLTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// HasObjet applies the HasEdge predicate on the "objet" edge.
|
||||
func HasObjet() predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(func(s *sql.Selector) {
|
||||
step := sqlgraph.NewStep(
|
||||
sqlgraph.From(Table, FieldID),
|
||||
sqlgraph.Edge(sqlgraph.M2O, true, ObjetTable, ObjetColumn),
|
||||
)
|
||||
sqlgraph.HasNeighbors(s, step)
|
||||
})
|
||||
}
|
||||
|
||||
// HasObjetWith applies the HasEdge predicate on the "objet" edge with a given conditions (other predicates).
|
||||
func HasObjetWith(preds ...predicate.Objet) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(func(s *sql.Selector) {
|
||||
step := newObjetStep()
|
||||
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
||||
for _, p := range preds {
|
||||
p(s)
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.ChampPersonnalise) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.ChampPersonnalise) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.ChampPersonnalise) predicate.ChampPersonnalise {
|
||||
return predicate.ChampPersonnalise(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user