initial commit
This commit is contained in:
42
ent/punishments/punishments.go
Normal file
42
ent/punishments/punishments.go
Normal file
@ -0,0 +1,42 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package punishments
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the punishments type in the database.
|
||||
Label = "punishments"
|
||||
// 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"
|
||||
// FieldWarnamount holds the string denoting the warnamount field in the database.
|
||||
FieldWarnamount = "warnamount"
|
||||
// FieldActiontype holds the string denoting the actiontype field in the database.
|
||||
FieldActiontype = "actiontype"
|
||||
// FieldDuration holds the string denoting the duration field in the database.
|
||||
FieldDuration = "duration"
|
||||
// FieldReason holds the string denoting the reason field in the database.
|
||||
FieldReason = "reason"
|
||||
// Table holds the table name of the punishments in the database.
|
||||
Table = "punishments"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for punishments fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldServerid,
|
||||
FieldWarnamount,
|
||||
FieldActiontype,
|
||||
FieldDuration,
|
||||
FieldReason,
|
||||
}
|
||||
|
||||
// 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
|
||||
}
|
Reference in New Issue
Block a user