added chat messages
This commit is contained in:
53
ent/messages/messages.go
Normal file
53
ent/messages/messages.go
Normal file
@@ -0,0 +1,53 @@
|
||||
// Code generated by entc, 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"
|
||||
// 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,
|
||||
}
|
||||
|
||||
// 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
|
||||
}
|
Reference in New Issue
Block a user