This repository was archived by the owner on May 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathdeploymentcount.go
More file actions
60 lines (54 loc) · 1.83 KB
/
deploymentcount.go
File metadata and controls
60 lines (54 loc) · 1.83 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// Code generated by entc, DO NOT EDIT.
package deploymentcount
import (
"time"
)
const (
// Label holds the string label denoting the deploymentcount type in the database.
Label = "deployment_count"
// FieldID holds the string denoting the id field in the database.
FieldID = "id"
// FieldNamespace holds the string denoting the namespace field in the database.
FieldNamespace = "namespace"
// FieldName holds the string denoting the name field in the database.
FieldName = "name"
// FieldEnv holds the string denoting the env field in the database.
FieldEnv = "env"
// FieldCount holds the string denoting the count field in the database.
FieldCount = "count"
// FieldCreatedAt holds the string denoting the created_at field in the database.
FieldCreatedAt = "created_at"
// FieldUpdatedAt holds the string denoting the updated_at field in the database.
FieldUpdatedAt = "updated_at"
// Table holds the table name of the deploymentcount in the database.
Table = "deployment_counts"
)
// Columns holds all SQL columns for deploymentcount fields.
var Columns = []string{
FieldID,
FieldNamespace,
FieldName,
FieldEnv,
FieldCount,
FieldCreatedAt,
FieldUpdatedAt,
}
// 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 (
// DefaultCount holds the default value on creation for the "count" field.
DefaultCount int
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
DefaultCreatedAt func() time.Time
// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
DefaultUpdatedAt func() time.Time
// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
UpdateDefaultUpdatedAt func() time.Time
)