34 lines
871 B
Go
34 lines
871 B
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package blacklist
|
|
|
|
const (
|
|
// Label holds the string label denoting the blacklist type in the database.
|
|
Label = "blacklist"
|
|
// FieldID holds the string denoting the id field in the database.
|
|
FieldID = "id"
|
|
// FieldServerid holds the string denoting the serverid field in the database.
|
|
FieldServerid = "serverid"
|
|
// FieldWord holds the string denoting the word field in the database.
|
|
FieldWord = "word"
|
|
// Table holds the table name of the blacklist in the database.
|
|
Table = "blacklists"
|
|
)
|
|
|
|
// Columns holds all SQL columns for blacklist fields.
|
|
var Columns = []string{
|
|
FieldID,
|
|
FieldServerid,
|
|
FieldWord,
|
|
}
|
|
|
|
// 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
|
|
}
|