feat: initial commit - kratos admin service
This commit is contained in:
Generated
+48
@@ -0,0 +1,48 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package ent
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"kra/internal/data/ent/admin"
|
||||
"kra/internal/data/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() {
|
||||
adminFields := schema.Admin{}.Fields()
|
||||
_ = adminFields
|
||||
// adminDescName is the schema descriptor for name field.
|
||||
adminDescName := adminFields[1].Descriptor()
|
||||
// admin.DefaultName holds the default value on creation for the name field.
|
||||
admin.DefaultName = adminDescName.Default.(string)
|
||||
// adminDescEmail is the schema descriptor for email field.
|
||||
adminDescEmail := adminFields[2].Descriptor()
|
||||
// admin.DefaultEmail holds the default value on creation for the email field.
|
||||
admin.DefaultEmail = adminDescEmail.Default.(string)
|
||||
// adminDescAvatar is the schema descriptor for avatar field.
|
||||
adminDescAvatar := adminFields[3].Descriptor()
|
||||
// admin.DefaultAvatar holds the default value on creation for the avatar field.
|
||||
admin.DefaultAvatar = adminDescAvatar.Default.(string)
|
||||
// adminDescAccess is the schema descriptor for access field.
|
||||
adminDescAccess := adminFields[4].Descriptor()
|
||||
// admin.DefaultAccess holds the default value on creation for the access field.
|
||||
admin.DefaultAccess = adminDescAccess.Default.(string)
|
||||
// adminDescPassword is the schema descriptor for password field.
|
||||
adminDescPassword := adminFields[5].Descriptor()
|
||||
// admin.DefaultPassword holds the default value on creation for the password field.
|
||||
admin.DefaultPassword = adminDescPassword.Default.(string)
|
||||
// adminDescCreateTime is the schema descriptor for create_time field.
|
||||
adminDescCreateTime := adminFields[6].Descriptor()
|
||||
// admin.DefaultCreateTime holds the default value on creation for the create_time field.
|
||||
admin.DefaultCreateTime = adminDescCreateTime.Default.(func() time.Time)
|
||||
// adminDescUpdateTime is the schema descriptor for update_time field.
|
||||
adminDescUpdateTime := adminFields[7].Descriptor()
|
||||
// admin.DefaultUpdateTime holds the default value on creation for the update_time field.
|
||||
admin.DefaultUpdateTime = adminDescUpdateTime.Default.(func() time.Time)
|
||||
// admin.UpdateDefaultUpdateTime holds the default value on update for the update_time field.
|
||||
admin.UpdateDefaultUpdateTime = adminDescUpdateTime.UpdateDefault.(func() time.Time)
|
||||
}
|
||||
Reference in New Issue
Block a user