initial commit
This commit is contained in:
36
ent/socialmedia/socialmedia.go
Normal file
36
ent/socialmedia/socialmedia.go
Normal file
@ -0,0 +1,36 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package socialmedia
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the socialmedia type in the database.
|
||||
Label = "socialmedia"
|
||||
// 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"
|
||||
// FieldType holds the string denoting the type field in the database.
|
||||
FieldType = "type"
|
||||
// FieldIdentificator holds the string denoting the identificator field in the database.
|
||||
FieldIdentificator = "identificator"
|
||||
// Table holds the table name of the socialmedia in the database.
|
||||
Table = "socialmedia"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for socialmedia fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldServerid,
|
||||
FieldType,
|
||||
FieldIdentificator,
|
||||
}
|
||||
|
||||
// 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