46 lines
1.3 KiB
Go
46 lines
1.3 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package support
|
|
|
|
const (
|
|
// Label holds the string label denoting the support type in the database.
|
|
Label = "support"
|
|
// FieldID holds the string denoting the id field in the database.
|
|
FieldID = "id"
|
|
// FieldRefid holds the string denoting the refid field in the database.
|
|
FieldRefid = "refid"
|
|
// FieldServerid holds the string denoting the serverid field in the database.
|
|
FieldServerid = "serverid"
|
|
// FieldCreator holds the string denoting the creator field in the database.
|
|
FieldCreator = "creator"
|
|
// FieldStatus holds the string denoting the status field in the database.
|
|
FieldStatus = "status"
|
|
// FieldTitle holds the string denoting the title field in the database.
|
|
FieldTitle = "title"
|
|
// FieldDescription holds the string denoting the description field in the database.
|
|
FieldDescription = "description"
|
|
// Table holds the table name of the support in the database.
|
|
Table = "supports"
|
|
)
|
|
|
|
// Columns holds all SQL columns for support fields.
|
|
var Columns = []string{
|
|
FieldID,
|
|
FieldRefid,
|
|
FieldServerid,
|
|
FieldCreator,
|
|
FieldStatus,
|
|
FieldTitle,
|
|
FieldDescription,
|
|
}
|
|
|
|
// 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
|
|
}
|