You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
379 lines
22 KiB
Go
379 lines
22 KiB
Go
1 year ago
|
// Code generated by ent, DO NOT EDIT.
|
||
|
|
||
|
package runtime
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
|
||
|
"git.noahlan.cn/n-admin/n-admin-server/rpc/core/ent/department"
|
||
|
"git.noahlan.cn/n-admin/n-admin-server/rpc/core/ent/dictionary"
|
||
|
"git.noahlan.cn/n-admin/n-admin-server/rpc/core/ent/dictionarydetail"
|
||
|
"git.noahlan.cn/n-admin/n-admin-server/rpc/core/ent/district"
|
||
|
"git.noahlan.cn/n-admin/n-admin-server/rpc/core/ent/loginrecord"
|
||
|
"git.noahlan.cn/n-admin/n-admin-server/rpc/core/ent/oauthprovider"
|
||
|
"git.noahlan.cn/n-admin/n-admin-server/rpc/core/ent/role"
|
||
|
"git.noahlan.cn/n-admin/n-admin-server/rpc/core/ent/schema"
|
||
|
"git.noahlan.cn/n-admin/n-admin-server/rpc/core/ent/token"
|
||
|
"git.noahlan.cn/n-admin/n-admin-server/rpc/core/ent/user"
|
||
|
"git.noahlan.cn/n-admin/n-admin-server/rpc/core/ent/usermeta"
|
||
|
"git.noahlan.cn/n-admin/n-admin-server/rpc/core/ent/usersocial"
|
||
|
)
|
||
|
|
||
|
// 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() {
|
||
|
departmentMixin := schema.Department{}.Mixin()
|
||
|
departmentMixinHooks3 := departmentMixin[3].Hooks()
|
||
|
department.Hooks[0] = departmentMixinHooks3[0]
|
||
|
departmentMixinFields0 := departmentMixin[0].Fields()
|
||
|
_ = departmentMixinFields0
|
||
|
departmentMixinFields1 := departmentMixin[1].Fields()
|
||
|
_ = departmentMixinFields1
|
||
|
departmentMixinFields2 := departmentMixin[2].Fields()
|
||
|
_ = departmentMixinFields2
|
||
|
departmentMixinFields3 := departmentMixin[3].Fields()
|
||
|
_ = departmentMixinFields3
|
||
|
departmentFields := schema.Department{}.Fields()
|
||
|
_ = departmentFields
|
||
|
// departmentDescCreatedAt is the schema descriptor for created_at field.
|
||
|
departmentDescCreatedAt := departmentMixinFields1[0].Descriptor()
|
||
|
// department.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||
|
department.DefaultCreatedAt = departmentDescCreatedAt.Default.(func() time.Time)
|
||
|
// departmentDescUpdatedAt is the schema descriptor for updated_at field.
|
||
|
departmentDescUpdatedAt := departmentMixinFields1[1].Descriptor()
|
||
|
// department.DefaultUpdatedAt holds the default value on creation for the updated_at field.
|
||
|
department.DefaultUpdatedAt = departmentDescUpdatedAt.Default.(func() time.Time)
|
||
|
// department.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
|
||
|
department.UpdateDefaultUpdatedAt = departmentDescUpdatedAt.UpdateDefault.(func() time.Time)
|
||
|
// departmentDescVersion is the schema descriptor for version field.
|
||
|
departmentDescVersion := departmentMixinFields3[0].Descriptor()
|
||
|
// department.DefaultVersion holds the default value on creation for the version field.
|
||
|
department.DefaultVersion = departmentDescVersion.Default.(int64)
|
||
|
// departmentDescID is the schema descriptor for id field.
|
||
|
departmentDescID := departmentMixinFields0[0].Descriptor()
|
||
|
// department.DefaultID holds the default value on creation for the id field.
|
||
|
department.DefaultID = departmentDescID.Default.(func() int64)
|
||
|
dictionaryMixin := schema.Dictionary{}.Mixin()
|
||
|
dictionaryMixinHooks3 := dictionaryMixin[3].Hooks()
|
||
|
dictionary.Hooks[0] = dictionaryMixinHooks3[0]
|
||
|
dictionaryMixinFields0 := dictionaryMixin[0].Fields()
|
||
|
_ = dictionaryMixinFields0
|
||
|
dictionaryMixinFields1 := dictionaryMixin[1].Fields()
|
||
|
_ = dictionaryMixinFields1
|
||
|
dictionaryMixinFields2 := dictionaryMixin[2].Fields()
|
||
|
_ = dictionaryMixinFields2
|
||
|
dictionaryMixinFields3 := dictionaryMixin[3].Fields()
|
||
|
_ = dictionaryMixinFields3
|
||
|
dictionaryFields := schema.Dictionary{}.Fields()
|
||
|
_ = dictionaryFields
|
||
|
// dictionaryDescCreatedAt is the schema descriptor for created_at field.
|
||
|
dictionaryDescCreatedAt := dictionaryMixinFields1[0].Descriptor()
|
||
|
// dictionary.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||
|
dictionary.DefaultCreatedAt = dictionaryDescCreatedAt.Default.(func() time.Time)
|
||
|
// dictionaryDescUpdatedAt is the schema descriptor for updated_at field.
|
||
|
dictionaryDescUpdatedAt := dictionaryMixinFields1[1].Descriptor()
|
||
|
// dictionary.DefaultUpdatedAt holds the default value on creation for the updated_at field.
|
||
|
dictionary.DefaultUpdatedAt = dictionaryDescUpdatedAt.Default.(func() time.Time)
|
||
|
// dictionary.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
|
||
|
dictionary.UpdateDefaultUpdatedAt = dictionaryDescUpdatedAt.UpdateDefault.(func() time.Time)
|
||
|
// dictionaryDescVersion is the schema descriptor for version field.
|
||
|
dictionaryDescVersion := dictionaryMixinFields3[0].Descriptor()
|
||
|
// dictionary.DefaultVersion holds the default value on creation for the version field.
|
||
|
dictionary.DefaultVersion = dictionaryDescVersion.Default.(int64)
|
||
|
// dictionaryDescID is the schema descriptor for id field.
|
||
|
dictionaryDescID := dictionaryMixinFields0[0].Descriptor()
|
||
|
// dictionary.DefaultID holds the default value on creation for the id field.
|
||
|
dictionary.DefaultID = dictionaryDescID.Default.(func() int64)
|
||
|
dictionarydetailMixin := schema.DictionaryDetail{}.Mixin()
|
||
|
dictionarydetailMixinHooks3 := dictionarydetailMixin[3].Hooks()
|
||
|
dictionarydetail.Hooks[0] = dictionarydetailMixinHooks3[0]
|
||
|
dictionarydetailMixinFields0 := dictionarydetailMixin[0].Fields()
|
||
|
_ = dictionarydetailMixinFields0
|
||
|
dictionarydetailMixinFields1 := dictionarydetailMixin[1].Fields()
|
||
|
_ = dictionarydetailMixinFields1
|
||
|
dictionarydetailMixinFields2 := dictionarydetailMixin[2].Fields()
|
||
|
_ = dictionarydetailMixinFields2
|
||
|
dictionarydetailMixinFields3 := dictionarydetailMixin[3].Fields()
|
||
|
_ = dictionarydetailMixinFields3
|
||
|
dictionarydetailFields := schema.DictionaryDetail{}.Fields()
|
||
|
_ = dictionarydetailFields
|
||
|
// dictionarydetailDescSort is the schema descriptor for sort field.
|
||
|
dictionarydetailDescSort := dictionarydetailMixinFields2[0].Descriptor()
|
||
|
// dictionarydetail.DefaultSort holds the default value on creation for the sort field.
|
||
|
dictionarydetail.DefaultSort = dictionarydetailDescSort.Default.(uint32)
|
||
|
// dictionarydetailDescVersion is the schema descriptor for version field.
|
||
|
dictionarydetailDescVersion := dictionarydetailMixinFields3[0].Descriptor()
|
||
|
// dictionarydetail.DefaultVersion holds the default value on creation for the version field.
|
||
|
dictionarydetail.DefaultVersion = dictionarydetailDescVersion.Default.(int64)
|
||
|
// dictionarydetailDescID is the schema descriptor for id field.
|
||
|
dictionarydetailDescID := dictionarydetailMixinFields0[0].Descriptor()
|
||
|
// dictionarydetail.DefaultID holds the default value on creation for the id field.
|
||
|
dictionarydetail.DefaultID = dictionarydetailDescID.Default.(func() int64)
|
||
|
districtMixin := schema.District{}.Mixin()
|
||
|
districtMixinFields0 := districtMixin[0].Fields()
|
||
|
_ = districtMixinFields0
|
||
|
districtFields := schema.District{}.Fields()
|
||
|
_ = districtFields
|
||
|
// districtDescCreatedAt is the schema descriptor for created_at field.
|
||
|
districtDescCreatedAt := districtMixinFields0[0].Descriptor()
|
||
|
// district.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||
|
district.DefaultCreatedAt = districtDescCreatedAt.Default.(func() time.Time)
|
||
|
// districtDescUpdatedAt is the schema descriptor for updated_at field.
|
||
|
districtDescUpdatedAt := districtMixinFields0[1].Descriptor()
|
||
|
// district.DefaultUpdatedAt holds the default value on creation for the updated_at field.
|
||
|
district.DefaultUpdatedAt = districtDescUpdatedAt.Default.(func() time.Time)
|
||
|
// district.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
|
||
|
district.UpdateDefaultUpdatedAt = districtDescUpdatedAt.UpdateDefault.(func() time.Time)
|
||
|
// districtDescProvince is the schema descriptor for province field.
|
||
|
districtDescProvince := districtFields[4].Descriptor()
|
||
|
// district.DefaultProvince holds the default value on creation for the province field.
|
||
|
district.DefaultProvince = districtDescProvince.Default.(string)
|
||
|
// districtDescLevel is the schema descriptor for level field.
|
||
|
districtDescLevel := districtFields[8].Descriptor()
|
||
|
// district.DefaultLevel holds the default value on creation for the level field.
|
||
|
district.DefaultLevel = districtDescLevel.Default.(uint32)
|
||
|
// districtDescLatitude is the schema descriptor for latitude field.
|
||
|
districtDescLatitude := districtFields[9].Descriptor()
|
||
|
// district.DefaultLatitude holds the default value on creation for the latitude field.
|
||
|
district.DefaultLatitude = districtDescLatitude.Default.(float64)
|
||
|
// districtDescLongitude is the schema descriptor for longitude field.
|
||
|
districtDescLongitude := districtFields[10].Descriptor()
|
||
|
// district.DefaultLongitude holds the default value on creation for the longitude field.
|
||
|
district.DefaultLongitude = districtDescLongitude.Default.(float64)
|
||
|
loginrecordMixin := schema.LoginRecord{}.Mixin()
|
||
|
loginrecordMixinHooks2 := loginrecordMixin[2].Hooks()
|
||
|
loginrecord.Hooks[0] = loginrecordMixinHooks2[0]
|
||
|
loginrecordMixinFields0 := loginrecordMixin[0].Fields()
|
||
|
_ = loginrecordMixinFields0
|
||
|
loginrecordMixinFields1 := loginrecordMixin[1].Fields()
|
||
|
_ = loginrecordMixinFields1
|
||
|
loginrecordMixinFields2 := loginrecordMixin[2].Fields()
|
||
|
_ = loginrecordMixinFields2
|
||
|
loginrecordFields := schema.LoginRecord{}.Fields()
|
||
|
_ = loginrecordFields
|
||
|
// loginrecordDescCreatedAt is the schema descriptor for created_at field.
|
||
|
loginrecordDescCreatedAt := loginrecordMixinFields1[0].Descriptor()
|
||
|
// loginrecord.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||
|
loginrecord.DefaultCreatedAt = loginrecordDescCreatedAt.Default.(func() time.Time)
|
||
|
// loginrecordDescUpdatedAt is the schema descriptor for updated_at field.
|
||
|
loginrecordDescUpdatedAt := loginrecordMixinFields1[1].Descriptor()
|
||
|
// loginrecord.DefaultUpdatedAt holds the default value on creation for the updated_at field.
|
||
|
loginrecord.DefaultUpdatedAt = loginrecordDescUpdatedAt.Default.(func() time.Time)
|
||
|
// loginrecord.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
|
||
|
loginrecord.UpdateDefaultUpdatedAt = loginrecordDescUpdatedAt.UpdateDefault.(func() time.Time)
|
||
|
// loginrecordDescVersion is the schema descriptor for version field.
|
||
|
loginrecordDescVersion := loginrecordMixinFields2[0].Descriptor()
|
||
|
// loginrecord.DefaultVersion holds the default value on creation for the version field.
|
||
|
loginrecord.DefaultVersion = loginrecordDescVersion.Default.(int64)
|
||
|
// loginrecordDescLoginCount is the schema descriptor for login_count field.
|
||
|
loginrecordDescLoginCount := loginrecordFields[5].Descriptor()
|
||
|
// loginrecord.DefaultLoginCount holds the default value on creation for the login_count field.
|
||
|
loginrecord.DefaultLoginCount = loginrecordDescLoginCount.Default.(uint64)
|
||
|
// loginrecordDescID is the schema descriptor for id field.
|
||
|
loginrecordDescID := loginrecordMixinFields0[0].Descriptor()
|
||
|
// loginrecord.DefaultID holds the default value on creation for the id field.
|
||
|
loginrecord.DefaultID = loginrecordDescID.Default.(func() int64)
|
||
|
oauthproviderMixin := schema.OauthProvider{}.Mixin()
|
||
|
oauthproviderMixinFields0 := oauthproviderMixin[0].Fields()
|
||
|
_ = oauthproviderMixinFields0
|
||
|
oauthproviderMixinFields1 := oauthproviderMixin[1].Fields()
|
||
|
_ = oauthproviderMixinFields1
|
||
|
oauthproviderFields := schema.OauthProvider{}.Fields()
|
||
|
_ = oauthproviderFields
|
||
|
// oauthproviderDescCreatedAt is the schema descriptor for created_at field.
|
||
|
oauthproviderDescCreatedAt := oauthproviderMixinFields1[0].Descriptor()
|
||
|
// oauthprovider.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||
|
oauthprovider.DefaultCreatedAt = oauthproviderDescCreatedAt.Default.(func() time.Time)
|
||
|
// oauthproviderDescUpdatedAt is the schema descriptor for updated_at field.
|
||
|
oauthproviderDescUpdatedAt := oauthproviderMixinFields1[1].Descriptor()
|
||
|
// oauthprovider.DefaultUpdatedAt holds the default value on creation for the updated_at field.
|
||
|
oauthprovider.DefaultUpdatedAt = oauthproviderDescUpdatedAt.Default.(func() time.Time)
|
||
|
// oauthprovider.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
|
||
|
oauthprovider.UpdateDefaultUpdatedAt = oauthproviderDescUpdatedAt.UpdateDefault.(func() time.Time)
|
||
|
// oauthproviderDescRedirectURL is the schema descriptor for redirect_url field.
|
||
|
oauthproviderDescRedirectURL := oauthproviderFields[3].Descriptor()
|
||
|
// oauthprovider.DefaultRedirectURL holds the default value on creation for the redirect_url field.
|
||
|
oauthprovider.DefaultRedirectURL = oauthproviderDescRedirectURL.Default.(string)
|
||
|
// oauthproviderDescScopes is the schema descriptor for scopes field.
|
||
|
oauthproviderDescScopes := oauthproviderFields[4].Descriptor()
|
||
|
// oauthprovider.DefaultScopes holds the default value on creation for the scopes field.
|
||
|
oauthprovider.DefaultScopes = oauthproviderDescScopes.Default.(string)
|
||
|
// oauthproviderDescAuthURL is the schema descriptor for auth_url field.
|
||
|
oauthproviderDescAuthURL := oauthproviderFields[5].Descriptor()
|
||
|
// oauthprovider.DefaultAuthURL holds the default value on creation for the auth_url field.
|
||
|
oauthprovider.DefaultAuthURL = oauthproviderDescAuthURL.Default.(string)
|
||
|
// oauthproviderDescTokenURL is the schema descriptor for token_url field.
|
||
|
oauthproviderDescTokenURL := oauthproviderFields[6].Descriptor()
|
||
|
// oauthprovider.DefaultTokenURL holds the default value on creation for the token_url field.
|
||
|
oauthprovider.DefaultTokenURL = oauthproviderDescTokenURL.Default.(string)
|
||
|
// oauthproviderDescInfoURL is the schema descriptor for info_url field.
|
||
|
oauthproviderDescInfoURL := oauthproviderFields[7].Descriptor()
|
||
|
// oauthprovider.DefaultInfoURL holds the default value on creation for the info_url field.
|
||
|
oauthprovider.DefaultInfoURL = oauthproviderDescInfoURL.Default.(string)
|
||
|
// oauthproviderDescDescription is the schema descriptor for description field.
|
||
|
oauthproviderDescDescription := oauthproviderFields[8].Descriptor()
|
||
|
// oauthprovider.DefaultDescription holds the default value on creation for the description field.
|
||
|
oauthprovider.DefaultDescription = oauthproviderDescDescription.Default.(string)
|
||
|
// oauthproviderDescSystem is the schema descriptor for system field.
|
||
|
oauthproviderDescSystem := oauthproviderFields[9].Descriptor()
|
||
|
// oauthprovider.DefaultSystem holds the default value on creation for the system field.
|
||
|
oauthprovider.DefaultSystem = oauthproviderDescSystem.Default.(bool)
|
||
|
// oauthproviderDescInit is the schema descriptor for init field.
|
||
|
oauthproviderDescInit := oauthproviderFields[10].Descriptor()
|
||
|
// oauthprovider.DefaultInit holds the default value on creation for the init field.
|
||
|
oauthprovider.DefaultInit = oauthproviderDescInit.Default.(bool)
|
||
|
// oauthproviderDescID is the schema descriptor for id field.
|
||
|
oauthproviderDescID := oauthproviderMixinFields0[0].Descriptor()
|
||
|
// oauthprovider.DefaultID holds the default value on creation for the id field.
|
||
|
oauthprovider.DefaultID = oauthproviderDescID.Default.(func() int64)
|
||
|
roleMixin := schema.Role{}.Mixin()
|
||
|
roleMixinHooks2 := roleMixin[2].Hooks()
|
||
|
role.Hooks[0] = roleMixinHooks2[0]
|
||
|
roleMixinFields0 := roleMixin[0].Fields()
|
||
|
_ = roleMixinFields0
|
||
|
roleMixinFields1 := roleMixin[1].Fields()
|
||
|
_ = roleMixinFields1
|
||
|
roleMixinFields2 := roleMixin[2].Fields()
|
||
|
_ = roleMixinFields2
|
||
|
roleMixinFields3 := roleMixin[3].Fields()
|
||
|
_ = roleMixinFields3
|
||
|
roleFields := schema.Role{}.Fields()
|
||
|
_ = roleFields
|
||
|
// roleDescCreatedAt is the schema descriptor for created_at field.
|
||
|
roleDescCreatedAt := roleMixinFields1[0].Descriptor()
|
||
|
// role.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||
|
role.DefaultCreatedAt = roleDescCreatedAt.Default.(func() time.Time)
|
||
|
// roleDescUpdatedAt is the schema descriptor for updated_at field.
|
||
|
roleDescUpdatedAt := roleMixinFields1[1].Descriptor()
|
||
|
// role.DefaultUpdatedAt holds the default value on creation for the updated_at field.
|
||
|
role.DefaultUpdatedAt = roleDescUpdatedAt.Default.(func() time.Time)
|
||
|
// role.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
|
||
|
role.UpdateDefaultUpdatedAt = roleDescUpdatedAt.UpdateDefault.(func() time.Time)
|
||
|
// roleDescVersion is the schema descriptor for version field.
|
||
|
roleDescVersion := roleMixinFields2[0].Descriptor()
|
||
|
// role.DefaultVersion holds the default value on creation for the version field.
|
||
|
role.DefaultVersion = roleDescVersion.Default.(int64)
|
||
|
// roleDescID is the schema descriptor for id field.
|
||
|
roleDescID := roleMixinFields0[0].Descriptor()
|
||
|
// role.DefaultID holds the default value on creation for the id field.
|
||
|
role.DefaultID = roleDescID.Default.(func() int64)
|
||
|
tokenMixin := schema.Token{}.Mixin()
|
||
|
tokenMixinHooks3 := tokenMixin[3].Hooks()
|
||
|
token.Hooks[0] = tokenMixinHooks3[0]
|
||
|
tokenMixinFields0 := tokenMixin[0].Fields()
|
||
|
_ = tokenMixinFields0
|
||
|
tokenMixinFields1 := tokenMixin[1].Fields()
|
||
|
_ = tokenMixinFields1
|
||
|
tokenMixinFields2 := tokenMixin[2].Fields()
|
||
|
_ = tokenMixinFields2
|
||
|
tokenMixinFields3 := tokenMixin[3].Fields()
|
||
|
_ = tokenMixinFields3
|
||
|
tokenFields := schema.Token{}.Fields()
|
||
|
_ = tokenFields
|
||
|
// tokenDescCreatedAt is the schema descriptor for created_at field.
|
||
|
tokenDescCreatedAt := tokenMixinFields1[0].Descriptor()
|
||
|
// token.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||
|
token.DefaultCreatedAt = tokenDescCreatedAt.Default.(func() time.Time)
|
||
|
// tokenDescUpdatedAt is the schema descriptor for updated_at field.
|
||
|
tokenDescUpdatedAt := tokenMixinFields1[1].Descriptor()
|
||
|
// token.DefaultUpdatedAt holds the default value on creation for the updated_at field.
|
||
|
token.DefaultUpdatedAt = tokenDescUpdatedAt.Default.(func() time.Time)
|
||
|
// token.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
|
||
|
token.UpdateDefaultUpdatedAt = tokenDescUpdatedAt.UpdateDefault.(func() time.Time)
|
||
|
// tokenDescVersion is the schema descriptor for version field.
|
||
|
tokenDescVersion := tokenMixinFields3[0].Descriptor()
|
||
|
// token.DefaultVersion holds the default value on creation for the version field.
|
||
|
token.DefaultVersion = tokenDescVersion.Default.(int64)
|
||
|
// tokenDescID is the schema descriptor for id field.
|
||
|
tokenDescID := tokenMixinFields0[0].Descriptor()
|
||
|
// token.DefaultID holds the default value on creation for the id field.
|
||
|
token.DefaultID = tokenDescID.Default.(func() int64)
|
||
|
userMixin := schema.User{}.Mixin()
|
||
|
userMixinHooks3 := userMixin[3].Hooks()
|
||
|
user.Hooks[0] = userMixinHooks3[0]
|
||
|
userMixinFields0 := userMixin[0].Fields()
|
||
|
_ = userMixinFields0
|
||
|
userMixinFields1 := userMixin[1].Fields()
|
||
|
_ = userMixinFields1
|
||
|
userMixinFields2 := userMixin[2].Fields()
|
||
|
_ = userMixinFields2
|
||
|
userMixinFields3 := userMixin[3].Fields()
|
||
|
_ = userMixinFields3
|
||
|
userFields := schema.User{}.Fields()
|
||
|
_ = userFields
|
||
|
// userDescCreatedAt is the schema descriptor for created_at field.
|
||
|
userDescCreatedAt := userMixinFields2[0].Descriptor()
|
||
|
// user.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||
|
user.DefaultCreatedAt = userDescCreatedAt.Default.(func() time.Time)
|
||
|
// userDescUpdatedAt is the schema descriptor for updated_at field.
|
||
|
userDescUpdatedAt := userMixinFields2[1].Descriptor()
|
||
|
// user.DefaultUpdatedAt holds the default value on creation for the updated_at field.
|
||
|
user.DefaultUpdatedAt = userDescUpdatedAt.Default.(func() time.Time)
|
||
|
// user.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
|
||
|
user.UpdateDefaultUpdatedAt = userDescUpdatedAt.UpdateDefault.(func() time.Time)
|
||
|
// userDescVersion is the schema descriptor for version field.
|
||
|
userDescVersion := userMixinFields3[0].Descriptor()
|
||
|
// user.DefaultVersion holds the default value on creation for the version field.
|
||
|
user.DefaultVersion = userDescVersion.Default.(int64)
|
||
|
// userDescID is the schema descriptor for id field.
|
||
|
userDescID := userMixinFields0[0].Descriptor()
|
||
|
// user.DefaultID holds the default value on creation for the id field.
|
||
|
user.DefaultID = userDescID.Default.(func() int64)
|
||
|
usermetaMixin := schema.UserMeta{}.Mixin()
|
||
|
usermetaMixinHooks2 := usermetaMixin[2].Hooks()
|
||
|
usermeta.Hooks[0] = usermetaMixinHooks2[0]
|
||
|
usermetaMixinFields0 := usermetaMixin[0].Fields()
|
||
|
_ = usermetaMixinFields0
|
||
|
usermetaMixinFields1 := usermetaMixin[1].Fields()
|
||
|
_ = usermetaMixinFields1
|
||
|
usermetaMixinFields2 := usermetaMixin[2].Fields()
|
||
|
_ = usermetaMixinFields2
|
||
|
usermetaFields := schema.UserMeta{}.Fields()
|
||
|
_ = usermetaFields
|
||
|
// usermetaDescCreatedAt is the schema descriptor for created_at field.
|
||
|
usermetaDescCreatedAt := usermetaMixinFields1[0].Descriptor()
|
||
|
// usermeta.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||
|
usermeta.DefaultCreatedAt = usermetaDescCreatedAt.Default.(func() time.Time)
|
||
|
// usermetaDescUpdatedAt is the schema descriptor for updated_at field.
|
||
|
usermetaDescUpdatedAt := usermetaMixinFields1[1].Descriptor()
|
||
|
// usermeta.DefaultUpdatedAt holds the default value on creation for the updated_at field.
|
||
|
usermeta.DefaultUpdatedAt = usermetaDescUpdatedAt.Default.(func() time.Time)
|
||
|
// usermeta.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
|
||
|
usermeta.UpdateDefaultUpdatedAt = usermetaDescUpdatedAt.UpdateDefault.(func() time.Time)
|
||
|
// usermetaDescVersion is the schema descriptor for version field.
|
||
|
usermetaDescVersion := usermetaMixinFields2[0].Descriptor()
|
||
|
// usermeta.DefaultVersion holds the default value on creation for the version field.
|
||
|
usermeta.DefaultVersion = usermetaDescVersion.Default.(int64)
|
||
|
// usermetaDescID is the schema descriptor for id field.
|
||
|
usermetaDescID := usermetaMixinFields0[0].Descriptor()
|
||
|
// usermeta.DefaultID holds the default value on creation for the id field.
|
||
|
usermeta.DefaultID = usermetaDescID.Default.(func() int64)
|
||
|
usersocialMixin := schema.UserSocial{}.Mixin()
|
||
|
usersocialMixinFields0 := usersocialMixin[0].Fields()
|
||
|
_ = usersocialMixinFields0
|
||
|
usersocialMixinFields1 := usersocialMixin[1].Fields()
|
||
|
_ = usersocialMixinFields1
|
||
|
usersocialFields := schema.UserSocial{}.Fields()
|
||
|
_ = usersocialFields
|
||
|
// usersocialDescCreatedAt is the schema descriptor for created_at field.
|
||
|
usersocialDescCreatedAt := usersocialMixinFields1[0].Descriptor()
|
||
|
// usersocial.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||
|
usersocial.DefaultCreatedAt = usersocialDescCreatedAt.Default.(func() time.Time)
|
||
|
// usersocialDescUpdatedAt is the schema descriptor for updated_at field.
|
||
|
usersocialDescUpdatedAt := usersocialMixinFields1[1].Descriptor()
|
||
|
// usersocial.DefaultUpdatedAt holds the default value on creation for the updated_at field.
|
||
|
usersocial.DefaultUpdatedAt = usersocialDescUpdatedAt.Default.(func() time.Time)
|
||
|
// usersocial.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
|
||
|
usersocial.UpdateDefaultUpdatedAt = usersocialDescUpdatedAt.UpdateDefault.(func() time.Time)
|
||
|
// usersocialDescID is the schema descriptor for id field.
|
||
|
usersocialDescID := usersocialMixinFields0[0].Descriptor()
|
||
|
// usersocial.DefaultID holds the default value on creation for the id field.
|
||
|
usersocial.DefaultID = usersocialDescID.Default.(func() int64)
|
||
|
}
|
||
|
|
||
|
const (
|
||
|
Version = "v0.12.3" // Version of ent codegen.
|
||
|
Sum = "h1:N5lO2EOrHpCH5HYfiMOCHYbo+oh5M8GjT0/cx5x6xkk=" // Sum of ent codegen.
|
||
|
)
|