This repository has been archived on 2022-08-17. You can view files and clone it, but cannot push or open issues or pull requests.
dex/storage/ent/db/oauth2client/oauth2client.go
m.nabokikh 24fa4def5b chore: update ent
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2021-04-30 17:48:16 +04:00

57 lines
1.9 KiB
Go

// Code generated by entc, DO NOT EDIT.
package oauth2client
const (
// Label holds the string label denoting the oauth2client type in the database.
Label = "oauth2client"
// FieldID holds the string denoting the id field in the database.
FieldID = "id"
// FieldSecret holds the string denoting the secret field in the database.
FieldSecret = "secret"
// FieldRedirectUris holds the string denoting the redirect_uris field in the database.
FieldRedirectUris = "redirect_uris"
// FieldTrustedPeers holds the string denoting the trusted_peers field in the database.
FieldTrustedPeers = "trusted_peers"
// FieldPublic holds the string denoting the public field in the database.
FieldPublic = "public"
// FieldName holds the string denoting the name field in the database.
FieldName = "name"
// FieldLogoURL holds the string denoting the logo_url field in the database.
FieldLogoURL = "logo_url"
// Table holds the table name of the oauth2client in the database.
Table = "oauth2clients"
)
// Columns holds all SQL columns for oauth2client fields.
var Columns = []string{
FieldID,
FieldSecret,
FieldRedirectUris,
FieldTrustedPeers,
FieldPublic,
FieldName,
FieldLogoURL,
}
// ValidColumn reports if the column name is valid (part of the table columns).
func ValidColumn(column string) bool {
for i := range Columns {
if column == Columns[i] {
return true
}
}
return false
}
var (
// SecretValidator is a validator for the "secret" field. It is called by the builders before save.
SecretValidator func(string) error
// NameValidator is a validator for the "name" field. It is called by the builders before save.
NameValidator func(string) error
// LogoURLValidator is a validator for the "logo_url" field. It is called by the builders before save.
LogoURLValidator func(string) error
// IDValidator is a validator for the "id" field. It is called by the builders before save.
IDValidator func(string) error
)