/
schema.go
40 lines (36 loc) · 1.17 KB
/
schema.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
39
40
// Code generated by ent, DO NOT EDIT.
package migrate
import (
"entgo.io/ent/dialect/sql/schema"
"entgo.io/ent/schema/field"
)
var (
// MetricsColumns holds the columns for the "metrics" table.
MetricsColumns = []*schema.Column{
{Name: "id", Type: field.TypeInt, Increment: true},
{Name: "namespace", Type: field.TypeString},
{Name: "workflow", Type: field.TypeString},
{Name: "revision", Type: field.TypeString},
{Name: "instance", Type: field.TypeString},
{Name: "state", Type: field.TypeString},
{Name: "timestamp", Type: field.TypeTime},
{Name: "workflow_ms", Type: field.TypeInt64},
{Name: "isolate_ms", Type: field.TypeInt64},
{Name: "error_code", Type: field.TypeString, Nullable: true},
{Name: "invoker", Type: field.TypeString},
{Name: "next", Type: field.TypeInt8},
{Name: "transition", Type: field.TypeString, Nullable: true},
}
// MetricsTable holds the schema information for the "metrics" table.
MetricsTable = &schema.Table{
Name: "metrics",
Columns: MetricsColumns,
PrimaryKey: []*schema.Column{MetricsColumns[0]},
}
// Tables holds all the tables in the schema.
Tables = []*schema.Table{
MetricsTable,
}
)
func init() {
}