Files
csgowtfd/ent/messages/messages.go

57 lines
1.8 KiB
Go

// Code generated by ent, DO NOT EDIT.
package messages
const (
// Label holds the string label denoting the messages type in the database.
Label = "messages"
// FieldID holds the string denoting the id field in the database.
FieldID = "id"
// FieldMessage holds the string denoting the message field in the database.
FieldMessage = "message"
// FieldAllChat holds the string denoting the all_chat field in the database.
FieldAllChat = "all_chat"
// FieldTick holds the string denoting the tick field in the database.
FieldTick = "tick"
// EdgeMatchPlayer holds the string denoting the match_player edge name in mutations.
EdgeMatchPlayer = "match_player"
// Table holds the table name of the messages in the database.
Table = "messages"
// MatchPlayerTable is the table that holds the match_player relation/edge.
MatchPlayerTable = "messages"
// MatchPlayerInverseTable is the table name for the MatchPlayer entity.
// It exists in this package in order to avoid circular dependency with the "matchplayer" package.
MatchPlayerInverseTable = "match_players"
// MatchPlayerColumn is the table column denoting the match_player relation/edge.
MatchPlayerColumn = "match_player_messages"
)
// Columns holds all SQL columns for messages fields.
var Columns = []string{
FieldID,
FieldMessage,
FieldAllChat,
FieldTick,
}
// ForeignKeys holds the SQL foreign-keys that are owned by the "messages"
// table and are not defined as standalone fields in the schema.
var ForeignKeys = []string{
"match_player_messages",
}
// 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
}
}
for i := range ForeignKeys {
if column == ForeignKeys[i] {
return true
}
}
return false
}