frankenapi/ent/servers/servers.go
2022-09-08 09:18:04 +02:00

40 lines
1.1 KiB
Go

// Code generated by ent, DO NOT EDIT.
package servers
const (
// Label holds the string label denoting the servers type in the database.
Label = "servers"
// FieldID holds the string denoting the id field in the database.
FieldID = "id"
// FieldUserid holds the string denoting the userid field in the database.
FieldUserid = "userid"
// FieldServerid holds the string denoting the serverid field in the database.
FieldServerid = "serverid"
// FieldIsOwner holds the string denoting the isowner field in the database.
FieldIsOwner = "is_owner"
// FieldPermission holds the string denoting the permission field in the database.
FieldPermission = "permission"
// Table holds the table name of the servers in the database.
Table = "servers"
)
// Columns holds all SQL columns for servers fields.
var Columns = []string{
FieldID,
FieldUserid,
FieldServerid,
FieldIsOwner,
FieldPermission,
}
// 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
}