// Code generated by ent, DO NOT EDIT. package ent import ( "code.gurenya.net/carlsmei/muninn-aio/ent/link" "code.gurenya.net/carlsmei/muninn-aio/ent/schema" "code.gurenya.net/carlsmei/muninn-aio/ent/user" "github.com/google/uuid" ) // 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() { linkFields := schema.Link{}.Fields() _ = linkFields // linkDescOriginalURL is the schema descriptor for original_url field. linkDescOriginalURL := linkFields[2].Descriptor() // link.OriginalURLValidator is a validator for the "original_url" field. It is called by the builders before save. link.OriginalURLValidator = linkDescOriginalURL.Validators[0].(func(string) error) // linkDescID is the schema descriptor for id field. linkDescID := linkFields[0].Descriptor() // link.DefaultID holds the default value on creation for the id field. link.DefaultID = linkDescID.Default.(func() uuid.UUID) userFields := schema.User{}.Fields() _ = userFields // userDescID is the schema descriptor for id field. userDescID := userFields[0].Descriptor() // user.DefaultID holds the default value on creation for the id field. user.DefaultID = userDescID.Default.(func() uuid.UUID) }