// Code generated by ent, DO NOT EDIT.

package ent

import (
	"time"

	"github.com/crowdsecurity/crowdsec/pkg/database/ent/alert"
	"github.com/crowdsecurity/crowdsec/pkg/database/ent/allowlist"
	"github.com/crowdsecurity/crowdsec/pkg/database/ent/allowlistitem"
	"github.com/crowdsecurity/crowdsec/pkg/database/ent/bouncer"
	"github.com/crowdsecurity/crowdsec/pkg/database/ent/configitem"
	"github.com/crowdsecurity/crowdsec/pkg/database/ent/decision"
	"github.com/crowdsecurity/crowdsec/pkg/database/ent/event"
	"github.com/crowdsecurity/crowdsec/pkg/database/ent/lock"
	"github.com/crowdsecurity/crowdsec/pkg/database/ent/machine"
	"github.com/crowdsecurity/crowdsec/pkg/database/ent/meta"
	"github.com/crowdsecurity/crowdsec/pkg/database/ent/schema"
)

// The init function reads all schema descriptors with runtime code
// (default values, validators, hooks and policies) and stitches it
// to their package variables.
func init() {
	alertFields := schema.Alert{}.Fields()
	_ = alertFields
	// alertDescCreatedAt is the schema descriptor for created_at field.
	alertDescCreatedAt := alertFields[0].Descriptor()
	// alert.DefaultCreatedAt holds the default value on creation for the created_at field.
	alert.DefaultCreatedAt = alertDescCreatedAt.Default.(func() time.Time)
	// alertDescUpdatedAt is the schema descriptor for updated_at field.
	alertDescUpdatedAt := alertFields[1].Descriptor()
	// alert.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	alert.DefaultUpdatedAt = alertDescUpdatedAt.Default.(func() time.Time)
	// alert.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	alert.UpdateDefaultUpdatedAt = alertDescUpdatedAt.UpdateDefault.(func() time.Time)
	// alertDescBucketId is the schema descriptor for bucketId field.
	alertDescBucketId := alertFields[3].Descriptor()
	// alert.DefaultBucketId holds the default value on creation for the bucketId field.
	alert.DefaultBucketId = alertDescBucketId.Default.(string)
	// alertDescMessage is the schema descriptor for message field.
	alertDescMessage := alertFields[4].Descriptor()
	// alert.DefaultMessage holds the default value on creation for the message field.
	alert.DefaultMessage = alertDescMessage.Default.(string)
	// alertDescEventsCount is the schema descriptor for eventsCount field.
	alertDescEventsCount := alertFields[5].Descriptor()
	// alert.DefaultEventsCount holds the default value on creation for the eventsCount field.
	alert.DefaultEventsCount = alertDescEventsCount.Default.(int32)
	// alertDescStartedAt is the schema descriptor for startedAt field.
	alertDescStartedAt := alertFields[6].Descriptor()
	// alert.DefaultStartedAt holds the default value on creation for the startedAt field.
	alert.DefaultStartedAt = alertDescStartedAt.Default.(func() time.Time)
	// alertDescStoppedAt is the schema descriptor for stoppedAt field.
	alertDescStoppedAt := alertFields[7].Descriptor()
	// alert.DefaultStoppedAt holds the default value on creation for the stoppedAt field.
	alert.DefaultStoppedAt = alertDescStoppedAt.Default.(func() time.Time)
	// alertDescSimulated is the schema descriptor for simulated field.
	alertDescSimulated := alertFields[21].Descriptor()
	// alert.DefaultSimulated holds the default value on creation for the simulated field.
	alert.DefaultSimulated = alertDescSimulated.Default.(bool)
	allowlistFields := schema.AllowList{}.Fields()
	_ = allowlistFields
	// allowlistDescCreatedAt is the schema descriptor for created_at field.
	allowlistDescCreatedAt := allowlistFields[0].Descriptor()
	// allowlist.DefaultCreatedAt holds the default value on creation for the created_at field.
	allowlist.DefaultCreatedAt = allowlistDescCreatedAt.Default.(func() time.Time)
	// allowlistDescUpdatedAt is the schema descriptor for updated_at field.
	allowlistDescUpdatedAt := allowlistFields[1].Descriptor()
	// allowlist.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	allowlist.DefaultUpdatedAt = allowlistDescUpdatedAt.Default.(func() time.Time)
	// allowlist.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	allowlist.UpdateDefaultUpdatedAt = allowlistDescUpdatedAt.UpdateDefault.(func() time.Time)
	allowlistitemFields := schema.AllowListItem{}.Fields()
	_ = allowlistitemFields
	// allowlistitemDescCreatedAt is the schema descriptor for created_at field.
	allowlistitemDescCreatedAt := allowlistitemFields[0].Descriptor()
	// allowlistitem.DefaultCreatedAt holds the default value on creation for the created_at field.
	allowlistitem.DefaultCreatedAt = allowlistitemDescCreatedAt.Default.(func() time.Time)
	// allowlistitemDescUpdatedAt is the schema descriptor for updated_at field.
	allowlistitemDescUpdatedAt := allowlistitemFields[1].Descriptor()
	// allowlistitem.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	allowlistitem.DefaultUpdatedAt = allowlistitemDescUpdatedAt.Default.(func() time.Time)
	// allowlistitem.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	allowlistitem.UpdateDefaultUpdatedAt = allowlistitemDescUpdatedAt.UpdateDefault.(func() time.Time)
	bouncerFields := schema.Bouncer{}.Fields()
	_ = bouncerFields
	// bouncerDescCreatedAt is the schema descriptor for created_at field.
	bouncerDescCreatedAt := bouncerFields[0].Descriptor()
	// bouncer.DefaultCreatedAt holds the default value on creation for the created_at field.
	bouncer.DefaultCreatedAt = bouncerDescCreatedAt.Default.(func() time.Time)
	// bouncerDescUpdatedAt is the schema descriptor for updated_at field.
	bouncerDescUpdatedAt := bouncerFields[1].Descriptor()
	// bouncer.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	bouncer.DefaultUpdatedAt = bouncerDescUpdatedAt.Default.(func() time.Time)
	// bouncer.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	bouncer.UpdateDefaultUpdatedAt = bouncerDescUpdatedAt.UpdateDefault.(func() time.Time)
	// bouncerDescIPAddress is the schema descriptor for ip_address field.
	bouncerDescIPAddress := bouncerFields[5].Descriptor()
	// bouncer.DefaultIPAddress holds the default value on creation for the ip_address field.
	bouncer.DefaultIPAddress = bouncerDescIPAddress.Default.(string)
	// bouncerDescAuthType is the schema descriptor for auth_type field.
	bouncerDescAuthType := bouncerFields[9].Descriptor()
	// bouncer.DefaultAuthType holds the default value on creation for the auth_type field.
	bouncer.DefaultAuthType = bouncerDescAuthType.Default.(string)
	// bouncerDescAutoCreated is the schema descriptor for auto_created field.
	bouncerDescAutoCreated := bouncerFields[14].Descriptor()
	// bouncer.DefaultAutoCreated holds the default value on creation for the auto_created field.
	bouncer.DefaultAutoCreated = bouncerDescAutoCreated.Default.(bool)
	configitemFields := schema.ConfigItem{}.Fields()
	_ = configitemFields
	// configitemDescCreatedAt is the schema descriptor for created_at field.
	configitemDescCreatedAt := configitemFields[0].Descriptor()
	// configitem.DefaultCreatedAt holds the default value on creation for the created_at field.
	configitem.DefaultCreatedAt = configitemDescCreatedAt.Default.(func() time.Time)
	// configitemDescUpdatedAt is the schema descriptor for updated_at field.
	configitemDescUpdatedAt := configitemFields[1].Descriptor()
	// configitem.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	configitem.DefaultUpdatedAt = configitemDescUpdatedAt.Default.(func() time.Time)
	// configitem.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	configitem.UpdateDefaultUpdatedAt = configitemDescUpdatedAt.UpdateDefault.(func() time.Time)
	decisionFields := schema.Decision{}.Fields()
	_ = decisionFields
	// decisionDescCreatedAt is the schema descriptor for created_at field.
	decisionDescCreatedAt := decisionFields[0].Descriptor()
	// decision.DefaultCreatedAt holds the default value on creation for the created_at field.
	decision.DefaultCreatedAt = decisionDescCreatedAt.Default.(func() time.Time)
	// decisionDescUpdatedAt is the schema descriptor for updated_at field.
	decisionDescUpdatedAt := decisionFields[1].Descriptor()
	// decision.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	decision.DefaultUpdatedAt = decisionDescUpdatedAt.Default.(func() time.Time)
	// decision.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	decision.UpdateDefaultUpdatedAt = decisionDescUpdatedAt.UpdateDefault.(func() time.Time)
	// decisionDescSimulated is the schema descriptor for simulated field.
	decisionDescSimulated := decisionFields[13].Descriptor()
	// decision.DefaultSimulated holds the default value on creation for the simulated field.
	decision.DefaultSimulated = decisionDescSimulated.Default.(bool)
	eventFields := schema.Event{}.Fields()
	_ = eventFields
	// eventDescCreatedAt is the schema descriptor for created_at field.
	eventDescCreatedAt := eventFields[0].Descriptor()
	// event.DefaultCreatedAt holds the default value on creation for the created_at field.
	event.DefaultCreatedAt = eventDescCreatedAt.Default.(func() time.Time)
	// eventDescUpdatedAt is the schema descriptor for updated_at field.
	eventDescUpdatedAt := eventFields[1].Descriptor()
	// event.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	event.DefaultUpdatedAt = eventDescUpdatedAt.Default.(func() time.Time)
	// event.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	event.UpdateDefaultUpdatedAt = eventDescUpdatedAt.UpdateDefault.(func() time.Time)
	// eventDescSerialized is the schema descriptor for serialized field.
	eventDescSerialized := eventFields[3].Descriptor()
	// event.SerializedValidator is a validator for the "serialized" field. It is called by the builders before save.
	event.SerializedValidator = eventDescSerialized.Validators[0].(func(string) error)
	lockFields := schema.Lock{}.Fields()
	_ = lockFields
	// lockDescCreatedAt is the schema descriptor for created_at field.
	lockDescCreatedAt := lockFields[1].Descriptor()
	// lock.DefaultCreatedAt holds the default value on creation for the created_at field.
	lock.DefaultCreatedAt = lockDescCreatedAt.Default.(func() time.Time)
	machineFields := schema.Machine{}.Fields()
	_ = machineFields
	// machineDescCreatedAt is the schema descriptor for created_at field.
	machineDescCreatedAt := machineFields[0].Descriptor()
	// machine.DefaultCreatedAt holds the default value on creation for the created_at field.
	machine.DefaultCreatedAt = machineDescCreatedAt.Default.(func() time.Time)
	// machineDescUpdatedAt is the schema descriptor for updated_at field.
	machineDescUpdatedAt := machineFields[1].Descriptor()
	// machine.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	machine.DefaultUpdatedAt = machineDescUpdatedAt.Default.(func() time.Time)
	// machine.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	machine.UpdateDefaultUpdatedAt = machineDescUpdatedAt.UpdateDefault.(func() time.Time)
	// machineDescLastPush is the schema descriptor for last_push field.
	machineDescLastPush := machineFields[2].Descriptor()
	// machine.DefaultLastPush holds the default value on creation for the last_push field.
	machine.DefaultLastPush = machineDescLastPush.Default.(func() time.Time)
	// machineDescScenarios is the schema descriptor for scenarios field.
	machineDescScenarios := machineFields[7].Descriptor()
	// machine.ScenariosValidator is a validator for the "scenarios" field. It is called by the builders before save.
	machine.ScenariosValidator = machineDescScenarios.Validators[0].(func(string) error)
	// machineDescIsValidated is the schema descriptor for isValidated field.
	machineDescIsValidated := machineFields[9].Descriptor()
	// machine.DefaultIsValidated holds the default value on creation for the isValidated field.
	machine.DefaultIsValidated = machineDescIsValidated.Default.(bool)
	// machineDescAuthType is the schema descriptor for auth_type field.
	machineDescAuthType := machineFields[10].Descriptor()
	// machine.DefaultAuthType holds the default value on creation for the auth_type field.
	machine.DefaultAuthType = machineDescAuthType.Default.(string)
	metaFields := schema.Meta{}.Fields()
	_ = metaFields
	// metaDescCreatedAt is the schema descriptor for created_at field.
	metaDescCreatedAt := metaFields[0].Descriptor()
	// meta.DefaultCreatedAt holds the default value on creation for the created_at field.
	meta.DefaultCreatedAt = metaDescCreatedAt.Default.(func() time.Time)
	// metaDescUpdatedAt is the schema descriptor for updated_at field.
	metaDescUpdatedAt := metaFields[1].Descriptor()
	// meta.DefaultUpdatedAt holds the default value on creation for the updated_at field.
	meta.DefaultUpdatedAt = metaDescUpdatedAt.Default.(func() time.Time)
	// meta.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	meta.UpdateDefaultUpdatedAt = metaDescUpdatedAt.UpdateDefault.(func() time.Time)
	// metaDescValue is the schema descriptor for value field.
	metaDescValue := metaFields[3].Descriptor()
	// meta.ValueValidator is a validator for the "value" field. It is called by the builders before save.
	meta.ValueValidator = metaDescValue.Validators[0].(func(string) error)
}
