// Code generated by ent, DO NOT EDIT. package ent import ( "time" "leafdev.top/leaf/rag/ent/document" "leafdev.top/leaf/rag/ent/documentblock" "leafdev.top/leaf/rag/ent/library" "leafdev.top/leaf/rag/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() { documentFields := schema.Document{}.Fields() _ = documentFields // documentDescCreatedAt is the schema descriptor for created_at field. documentDescCreatedAt := documentFields[3].Descriptor() // document.DefaultCreatedAt holds the default value on creation for the created_at field. document.DefaultCreatedAt = documentDescCreatedAt.Default.(func() time.Time) // documentDescUpdatedAt is the schema descriptor for updated_at field. documentDescUpdatedAt := documentFields[4].Descriptor() // document.DefaultUpdatedAt holds the default value on creation for the updated_at field. document.DefaultUpdatedAt = documentDescUpdatedAt.Default.(func() time.Time) documentblockFields := schema.DocumentBlock{}.Fields() _ = documentblockFields // documentblockDescCreatedAt is the schema descriptor for created_at field. documentblockDescCreatedAt := documentblockFields[4].Descriptor() // documentblock.DefaultCreatedAt holds the default value on creation for the created_at field. documentblock.DefaultCreatedAt = documentblockDescCreatedAt.Default.(func() time.Time) // documentblockDescUpdatedAt is the schema descriptor for updated_at field. documentblockDescUpdatedAt := documentblockFields[5].Descriptor() // documentblock.DefaultUpdatedAt holds the default value on creation for the updated_at field. documentblock.DefaultUpdatedAt = documentblockDescUpdatedAt.Default.(func() time.Time) libraryFields := schema.Library{}.Fields() _ = libraryFields // libraryDescCreatedAt is the schema descriptor for created_at field. libraryDescCreatedAt := libraryFields[2].Descriptor() // library.DefaultCreatedAt holds the default value on creation for the created_at field. library.DefaultCreatedAt = libraryDescCreatedAt.Default.(func() time.Time) // libraryDescUpdatedAt is the schema descriptor for updated_at field. libraryDescUpdatedAt := libraryFields[3].Descriptor() // library.DefaultUpdatedAt holds the default value on creation for the updated_at field. library.DefaultUpdatedAt = libraryDescUpdatedAt.Default.(func() time.Time) }