Add first google auth
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
package ent
|
||||
|
||||
import (
|
||||
"ersteller-lib/starter/ent/googleauth"
|
||||
"ersteller-lib/starter/ent/schema"
|
||||
"ersteller-lib/starter/ent/user"
|
||||
"time"
|
||||
@@ -12,6 +13,21 @@ import (
|
||||
// (default values, validators, hooks and policies) and stitches it
|
||||
// to their package variables.
|
||||
func init() {
|
||||
googleauthMixin := schema.GoogleAuth{}.Mixin()
|
||||
googleauthMixinFields0 := googleauthMixin[0].Fields()
|
||||
_ = googleauthMixinFields0
|
||||
googleauthFields := schema.GoogleAuth{}.Fields()
|
||||
_ = googleauthFields
|
||||
// googleauthDescCreatedAt is the schema descriptor for created_at field.
|
||||
googleauthDescCreatedAt := googleauthMixinFields0[0].Descriptor()
|
||||
// googleauth.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||||
googleauth.DefaultCreatedAt = googleauthDescCreatedAt.Default.(func() time.Time)
|
||||
// googleauthDescUpdatedAt is the schema descriptor for updated_at field.
|
||||
googleauthDescUpdatedAt := googleauthMixinFields0[1].Descriptor()
|
||||
// googleauth.DefaultUpdatedAt holds the default value on creation for the updated_at field.
|
||||
googleauth.DefaultUpdatedAt = googleauthDescUpdatedAt.Default.(func() time.Time)
|
||||
// googleauth.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
|
||||
googleauth.UpdateDefaultUpdatedAt = googleauthDescUpdatedAt.UpdateDefault.(func() time.Time)
|
||||
userMixin := schema.User{}.Mixin()
|
||||
userMixinFields0 := userMixin[0].Fields()
|
||||
_ = userMixinFields0
|
||||
|
||||
Reference in New Issue
Block a user