-
Notifications
You must be signed in to change notification settings - Fork 1
/
runtime.go
56 lines (53 loc) · 3.44 KB
/
runtime.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Code generated by ent, DO NOT EDIT.
package ent
import (
"github.com/lalifeier/vvgo-mall/app/account/service/internal/data/ent/accountuser"
"github.com/lalifeier/vvgo-mall/app/account/service/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() {
accountuserFields := schema.AccountUser{}.Fields()
_ = accountuserFields
// accountuserDescUsername is the schema descriptor for username field.
accountuserDescUsername := accountuserFields[1].Descriptor()
// accountuser.DefaultUsername holds the default value on creation for the username field.
accountuser.DefaultUsername = accountuserDescUsername.Default.(string)
// accountuserDescPhone is the schema descriptor for phone field.
accountuserDescPhone := accountuserFields[2].Descriptor()
// accountuser.DefaultPhone holds the default value on creation for the phone field.
accountuser.DefaultPhone = accountuserDescPhone.Default.(string)
// accountuserDescEmail is the schema descriptor for email field.
accountuserDescEmail := accountuserFields[3].Descriptor()
// accountuser.DefaultEmail holds the default value on creation for the email field.
accountuser.DefaultEmail = accountuserDescEmail.Default.(string)
// accountuserDescPassword is the schema descriptor for password field.
accountuserDescPassword := accountuserFields[4].Descriptor()
// accountuser.DefaultPassword holds the default value on creation for the password field.
accountuser.DefaultPassword = accountuserDescPassword.Default.(string)
// accountuserDescCreateAt is the schema descriptor for create_at field.
accountuserDescCreateAt := accountuserFields[5].Descriptor()
// accountuser.DefaultCreateAt holds the default value on creation for the create_at field.
accountuser.DefaultCreateAt = accountuserDescCreateAt.Default.(int64)
// accountuserDescCreateIPAt is the schema descriptor for create_ip_at field.
accountuserDescCreateIPAt := accountuserFields[6].Descriptor()
// accountuser.DefaultCreateIPAt holds the default value on creation for the create_ip_at field.
accountuser.DefaultCreateIPAt = accountuserDescCreateIPAt.Default.(string)
// accountuserDescLastLoginAt is the schema descriptor for last_login_at field.
accountuserDescLastLoginAt := accountuserFields[7].Descriptor()
// accountuser.DefaultLastLoginAt holds the default value on creation for the last_login_at field.
accountuser.DefaultLastLoginAt = accountuserDescLastLoginAt.Default.(int64)
// accountuserDescLastLoginIPAt is the schema descriptor for last_login_ip_at field.
accountuserDescLastLoginIPAt := accountuserFields[8].Descriptor()
// accountuser.DefaultLastLoginIPAt holds the default value on creation for the last_login_ip_at field.
accountuser.DefaultLastLoginIPAt = accountuserDescLastLoginIPAt.Default.(string)
// accountuserDescLoginTimes is the schema descriptor for login_times field.
accountuserDescLoginTimes := accountuserFields[9].Descriptor()
// accountuser.DefaultLoginTimes holds the default value on creation for the login_times field.
accountuser.DefaultLoginTimes = accountuserDescLoginTimes.Default.(int64)
// accountuserDescStatus is the schema descriptor for status field.
accountuserDescStatus := accountuserFields[10].Descriptor()
// accountuser.DefaultStatus holds the default value on creation for the status field.
accountuser.DefaultStatus = accountuserDescStatus.Default.(int8)
}