// Code generated by ent, DO NOT EDIT. package ent import ( "time" "kanhole/pkg/db/ent/frpcclient" "kanhole/pkg/db/ent/proxy" "kanhole/pkg/db/ent/schema" "kanhole/pkg/db/ent/user" ) // 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() { frpcclientFields := schema.FrpcClient{}.Fields() _ = frpcclientFields // frpcclientDescKey is the schema descriptor for key field. frpcclientDescKey := frpcclientFields[1].Descriptor() // frpcclient.DefaultKey holds the default value on creation for the key field. frpcclient.DefaultKey = frpcclientDescKey.Default.(string) // frpcclientDescAddr is the schema descriptor for addr field. frpcclientDescAddr := frpcclientFields[2].Descriptor() // frpcclient.DefaultAddr holds the default value on creation for the addr field. frpcclient.DefaultAddr = frpcclientDescAddr.Default.(string) // frpcclientDescPort is the schema descriptor for port field. frpcclientDescPort := frpcclientFields[3].Descriptor() // frpcclient.DefaultPort holds the default value on creation for the port field. frpcclient.DefaultPort = frpcclientDescPort.Default.(int) // frpcclientDescStatus is the schema descriptor for status field. frpcclientDescStatus := frpcclientFields[4].Descriptor() // frpcclient.DefaultStatus holds the default value on creation for the status field. frpcclient.DefaultStatus = frpcclientDescStatus.Default.(string) // frpcclientDescMetadata is the schema descriptor for metadata field. frpcclientDescMetadata := frpcclientFields[5].Descriptor() // frpcclient.DefaultMetadata holds the default value on creation for the metadata field. frpcclient.DefaultMetadata = frpcclientDescMetadata.Default.(string) // frpcclientDescCreatedAt is the schema descriptor for created_at field. frpcclientDescCreatedAt := frpcclientFields[6].Descriptor() // frpcclient.DefaultCreatedAt holds the default value on creation for the created_at field. frpcclient.DefaultCreatedAt = frpcclientDescCreatedAt.Default.(func() time.Time) // frpcclientDescUpdatedAt is the schema descriptor for updated_at field. frpcclientDescUpdatedAt := frpcclientFields[7].Descriptor() // frpcclient.DefaultUpdatedAt holds the default value on creation for the updated_at field. frpcclient.DefaultUpdatedAt = frpcclientDescUpdatedAt.Default.(func() time.Time) // frpcclient.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. frpcclient.UpdateDefaultUpdatedAt = frpcclientDescUpdatedAt.UpdateDefault.(func() time.Time) // frpcclientDescLastSeen is the schema descriptor for last_seen field. frpcclientDescLastSeen := frpcclientFields[8].Descriptor() // frpcclient.DefaultLastSeen holds the default value on creation for the last_seen field. frpcclient.DefaultLastSeen = frpcclientDescLastSeen.Default.(func() time.Time) proxyFields := schema.Proxy{}.Fields() _ = proxyFields // proxyDescProxyType is the schema descriptor for proxy_type field. proxyDescProxyType := proxyFields[1].Descriptor() // proxy.DefaultProxyType holds the default value on creation for the proxy_type field. proxy.DefaultProxyType = proxyDescProxyType.Default.(string) // proxyDescLocalIP is the schema descriptor for local_ip field. proxyDescLocalIP := proxyFields[2].Descriptor() // proxy.DefaultLocalIP holds the default value on creation for the local_ip field. proxy.DefaultLocalIP = proxyDescLocalIP.Default.(string) // proxyDescRemotePort is the schema descriptor for remote_port field. proxyDescRemotePort := proxyFields[4].Descriptor() // proxy.DefaultRemotePort holds the default value on creation for the remote_port field. proxy.DefaultRemotePort = proxyDescRemotePort.Default.(int) // proxyDescStatus is the schema descriptor for status field. proxyDescStatus := proxyFields[5].Descriptor() // proxy.DefaultStatus holds the default value on creation for the status field. proxy.DefaultStatus = proxyDescStatus.Default.(string) // proxyDescCustomDomains is the schema descriptor for custom_domains field. proxyDescCustomDomains := proxyFields[6].Descriptor() // proxy.DefaultCustomDomains holds the default value on creation for the custom_domains field. proxy.DefaultCustomDomains = proxyDescCustomDomains.Default.(string) // proxyDescMetadata is the schema descriptor for metadata field. proxyDescMetadata := proxyFields[7].Descriptor() // proxy.DefaultMetadata holds the default value on creation for the metadata field. proxy.DefaultMetadata = proxyDescMetadata.Default.(string) // proxyDescClientID is the schema descriptor for client_id field. proxyDescClientID := proxyFields[8].Descriptor() // proxy.DefaultClientID holds the default value on creation for the client_id field. proxy.DefaultClientID = proxyDescClientID.Default.(int) // proxyDescCreatedAt is the schema descriptor for created_at field. proxyDescCreatedAt := proxyFields[9].Descriptor() // proxy.DefaultCreatedAt holds the default value on creation for the created_at field. proxy.DefaultCreatedAt = proxyDescCreatedAt.Default.(func() time.Time) // proxyDescUpdatedAt is the schema descriptor for updated_at field. proxyDescUpdatedAt := proxyFields[10].Descriptor() // proxy.DefaultUpdatedAt holds the default value on creation for the updated_at field. proxy.DefaultUpdatedAt = proxyDescUpdatedAt.Default.(func() time.Time) // proxy.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. proxy.UpdateDefaultUpdatedAt = proxyDescUpdatedAt.UpdateDefault.(func() time.Time) userFields := schema.User{}.Fields() _ = userFields // userDescName is the schema descriptor for name field. userDescName := userFields[2].Descriptor() // user.DefaultName holds the default value on creation for the name field. user.DefaultName = userDescName.Default.(string) // userDescRole is the schema descriptor for role field. userDescRole := userFields[3].Descriptor() // user.DefaultRole holds the default value on creation for the role field. user.DefaultRole = userDescRole.Default.(string) // userDescCreatedAt is the schema descriptor for created_at field. userDescCreatedAt := userFields[4].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 := userFields[5].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) }