generate code

This commit is contained in:
Hayden 2023-03-22 20:29:23 -08:00
parent e5d8b098f1
commit 7fe9ae4f51
No known key found for this signature in database
GPG key ID: 17CF79474E257545
8 changed files with 19 additions and 170 deletions

View file

@ -29,8 +29,6 @@ const (
FieldDescription = "description"
// FieldCost holds the string denoting the cost field in the database.
FieldCost = "cost"
// FieldRemindersEnabled holds the string denoting the reminders_enabled field in the database.
FieldRemindersEnabled = "reminders_enabled"
// EdgeItem holds the string denoting the item edge name in mutations.
EdgeItem = "item"
// Table holds the table name of the maintenanceentry in the database.
@ -55,7 +53,6 @@ var Columns = []string{
FieldName,
FieldDescription,
FieldCost,
FieldRemindersEnabled,
}
// ValidColumn reports if the column name is valid (part of the table columns).
@ -81,8 +78,6 @@ var (
DescriptionValidator func(string) error
// DefaultCost holds the default value on creation for the "cost" field.
DefaultCost float64
// DefaultRemindersEnabled holds the default value on creation for the "reminders_enabled" field.
DefaultRemindersEnabled bool
// DefaultID holds the default value on creation for the "id" field.
DefaultID func() uuid.UUID
)

View file

@ -96,11 +96,6 @@ func Cost(v float64) predicate.MaintenanceEntry {
return predicate.MaintenanceEntry(sql.FieldEQ(FieldCost, v))
}
// RemindersEnabled applies equality check predicate on the "reminders_enabled" field. It's identical to RemindersEnabledEQ.
func RemindersEnabled(v bool) predicate.MaintenanceEntry {
return predicate.MaintenanceEntry(sql.FieldEQ(FieldRemindersEnabled, v))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.MaintenanceEntry {
return predicate.MaintenanceEntry(sql.FieldEQ(FieldCreatedAt, v))
@ -481,16 +476,6 @@ func CostLTE(v float64) predicate.MaintenanceEntry {
return predicate.MaintenanceEntry(sql.FieldLTE(FieldCost, v))
}
// RemindersEnabledEQ applies the EQ predicate on the "reminders_enabled" field.
func RemindersEnabledEQ(v bool) predicate.MaintenanceEntry {
return predicate.MaintenanceEntry(sql.FieldEQ(FieldRemindersEnabled, v))
}
// RemindersEnabledNEQ applies the NEQ predicate on the "reminders_enabled" field.
func RemindersEnabledNEQ(v bool) predicate.MaintenanceEntry {
return predicate.MaintenanceEntry(sql.FieldNEQ(FieldRemindersEnabled, v))
}
// HasItem applies the HasEdge predicate on the "item" edge.
func HasItem() predicate.MaintenanceEntry {
return predicate.MaintenanceEntry(func(s *sql.Selector) {