-
Notifications
You must be signed in to change notification settings - Fork 42
/
services.go
38 lines (33 loc) · 985 Bytes
/
services.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Code generated by entc, DO NOT EDIT.
package services
const (
// Label holds the string label denoting the services type in the database.
Label = "services"
// FieldID holds the string denoting the id field in the database.
FieldID = "id"
// FieldName holds the string denoting the name field in the database.
FieldName = "name"
// FieldData holds the string denoting the data field in the database.
FieldData = "data"
// Table holds the table name of the services in the database.
Table = "services"
)
// Columns holds all SQL columns for services fields.
var Columns = []string{
FieldID,
FieldName,
FieldData,
}
// 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
}
var (
// NameValidator is a validator for the "name" field. It is called by the builders before save.
NameValidator func(string) error
)