// Code generated by entc, DO NOT EDIT. package user import ( "time" "entgo.io/ent" ) const ( // Label holds the string label denoting the user type in the database. Label = "user" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldPassword holds the string denoting the password field in the database. FieldPassword = "password" // FieldVerified holds the string denoting the verified field in the database. FieldVerified = "verified" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the user in the database. Table = "users" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "password_tokens" // OwnerInverseTable is the table name for the PasswordToken entity. // It exists in this package in order to avoid circular dependency with the "passwordtoken" package. OwnerInverseTable = "password_tokens" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "password_token_user" ) // Columns holds all SQL columns for user fields. var Columns = []string{ FieldID, FieldName, FieldEmail, FieldPassword, FieldVerified, FieldCreatedAt, } // 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 } // Note that the variables below are initialized by the runtime // package on the initialization of the application. Therefore, // it should be imported in the main as follows: // // import _ "github.com/mikestefanello/pagoda/ent/runtime" // var ( Hooks [1]ent.Hook // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error // PasswordValidator is a validator for the "password" field. It is called by the builders before save. PasswordValidator func(string) error // DefaultVerified holds the default value on creation for the "verified" field. DefaultVerified bool // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )