pcmt/ent/hibp/hibp.go

88 lines
3.2 KiB
Go
Raw Normal View History

2023-04-21 13:57:32 +02:00
// Code generated by ent, DO NOT EDIT.
package hibp
const (
// Label holds the string label denoting the hibp type in the database.
Label = "hibp"
// 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"
// FieldDomain holds the string denoting the domain field in the database.
FieldDomain = "domain"
// FieldBreachDate holds the string denoting the breach_date field in the database.
FieldBreachDate = "breach_date"
// FieldAddedDate holds the string denoting the added_date field in the database.
FieldAddedDate = "added_date"
// FieldModifiedDate holds the string denoting the modified_date field in the database.
FieldModifiedDate = "modified_date"
// FieldPwnCount holds the string denoting the pwn_count field in the database.
FieldPwnCount = "pwn_count"
// FieldDescription holds the string denoting the description field in the database.
FieldDescription = "description"
// FieldDataclasses holds the string denoting the dataclasses field in the database.
FieldDataclasses = "dataclasses"
// FieldIsVerified holds the string denoting the is_verified field in the database.
FieldIsVerified = "is_verified"
// FieldIsFabricated holds the string denoting the is_fabricated field in the database.
FieldIsFabricated = "is_fabricated"
// FieldIsSensitive holds the string denoting the is_sensitive field in the database.
FieldIsSensitive = "is_sensitive"
// FieldIsRetired holds the string denoting the is_retired field in the database.
FieldIsRetired = "is_retired"
// FieldIsSpamList holds the string denoting the is_spamlist field in the database.
FieldIsSpamList = "is_spam_list"
// FieldIsMalware holds the string denoting the is_malware field in the database.
FieldIsMalware = "is_malware"
// FieldLogo holds the string denoting the logo field in the database.
FieldLogo = "logo"
// Table holds the table name of the hibp in the database.
Table = "hib_ps"
)
// Columns holds all SQL columns for hibp fields.
var Columns = []string{
FieldID,
FieldName,
FieldDomain,
FieldBreachDate,
FieldAddedDate,
FieldModifiedDate,
FieldPwnCount,
FieldDescription,
FieldDataclasses,
FieldIsVerified,
FieldIsFabricated,
FieldIsSensitive,
FieldIsRetired,
FieldIsSpamList,
FieldIsMalware,
FieldLogo,
}
// 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 (
// DefaultIsVerified holds the default value on creation for the "is_verified" field.
DefaultIsVerified bool
// DefaultIsFabricated holds the default value on creation for the "is_fabricated" field.
DefaultIsFabricated bool
// DefaultIsSensitive holds the default value on creation for the "is_sensitive" field.
DefaultIsSensitive bool
// DefaultIsRetired holds the default value on creation for the "is_retired" field.
DefaultIsRetired bool
// DefaultIsSpamList holds the default value on creation for the "is_spamList" field.
DefaultIsSpamList bool
// DefaultIsMalware holds the default value on creation for the "is_malware" field.
DefaultIsMalware bool
)