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

49 lines
1.5 KiB
Go

// Code generated by ent, DO NOT EDIT.
package supportresponse
const (
// Label holds the string label denoting the supportresponse type in the database.
Label = "support_response"
// 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"
// FieldWriter holds the string denoting the writer field in the database.
FieldWriter = "writer"
// FieldMessage holds the string denoting the message field in the database.
FieldMessage = "message"
// FieldType holds the string denoting the type field in the database.
FieldType = "type"
// FieldRtcchannel holds the string denoting the rtcchannel field in the database.
FieldRtcchannel = "rtcchannel"
// FieldIsread holds the string denoting the isread field in the database.
FieldIsread = "isread"
// FieldCreated holds the string denoting the created field in the database.
FieldCreated = "created"
// Table holds the table name of the supportresponse in the database.
Table = "support_responses"
)
// Columns holds all SQL columns for supportresponse fields.
var Columns = []string{
FieldID,
FieldRefid,
FieldWriter,
FieldMessage,
FieldType,
FieldRtcchannel,
FieldIsread,
FieldCreated,
}
// 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
}