2024-07-14 15:58:32 +00:00
|
|
|
// Code generated by ent, DO NOT EDIT.
|
|
|
|
|
|
|
|
package ent
|
|
|
|
|
|
|
|
import (
|
2024-07-14 17:22:40 +00:00
|
|
|
"time"
|
|
|
|
|
2024-07-14 15:58:32 +00:00
|
|
|
"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() {
|
|
|
|
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)
|
|
|
|
}
|