// Code generated by ent, DO NOT EDIT.

package models

import (
	"juwan-backend/app/review/rpc/internal/models/reviews"
	"juwan-backend/app/review/rpc/internal/models/schema"
	"time"
)

// 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() {
	reviewsFields := schema.Reviews{}.Fields()
	_ = reviewsFields
	// reviewsDescFromUserName is the schema descriptor for from_user_name field.
	reviewsDescFromUserName := reviewsFields[3].Descriptor()
	// reviews.FromUserNameValidator is a validator for the "from_user_name" field. It is called by the builders before save.
	reviews.FromUserNameValidator = reviewsDescFromUserName.Validators[0].(func(string) error)
	// reviewsDescFromUserAvatar is the schema descriptor for from_user_avatar field.
	reviewsDescFromUserAvatar := reviewsFields[4].Descriptor()
	// reviews.DefaultFromUserAvatar holds the default value on creation for the from_user_avatar field.
	reviews.DefaultFromUserAvatar = reviewsDescFromUserAvatar.Default.(string)
	// reviewsDescContent is the schema descriptor for content field.
	reviewsDescContent := reviewsFields[7].Descriptor()
	// reviews.DefaultContent holds the default value on creation for the content field.
	reviews.DefaultContent = reviewsDescContent.Default.(string)
	// reviewsDescSealed is the schema descriptor for sealed field.
	reviewsDescSealed := reviewsFields[8].Descriptor()
	// reviews.DefaultSealed holds the default value on creation for the sealed field.
	reviews.DefaultSealed = reviewsDescSealed.Default.(bool)
	// reviewsDescCreatedAt is the schema descriptor for created_at field.
	reviewsDescCreatedAt := reviewsFields[9].Descriptor()
	// reviews.DefaultCreatedAt holds the default value on creation for the created_at field.
	reviews.DefaultCreatedAt = reviewsDescCreatedAt.Default.(func() time.Time)
}
