/
schema.go
37 lines (33 loc) · 1.08 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
// Code generated by entc, DO NOT EDIT.
package migrate
import (
"github.com/facebookincubator/ent/dialect/sql/schema"
"github.com/facebookincubator/ent/schema/field"
)
var (
// RobotstxtsColumns holds the columns for the "robotstxts" table.
RobotstxtsColumns = []*schema.Column{
{Name: "id", Type: field.TypeInt, Increment: true},
{Name: "created_at", Type: field.TypeTime},
{Name: "updated_at", Type: field.TypeTime},
{Name: "host", Type: field.TypeString, Unique: true},
{Name: "scheme", Type: field.TypeString},
{Name: "response_url", Type: field.TypeString},
{Name: "body", Type: field.TypeBytes},
{Name: "statuscode", Type: field.TypeInt32},
{Name: "response_time", Type: field.TypeInt64},
}
// RobotstxtsTable holds the schema information for the "robotstxts" table.
RobotstxtsTable = &schema.Table{
Name: "robotstxts",
Columns: RobotstxtsColumns,
PrimaryKey: []*schema.Column{RobotstxtsColumns[0]},
ForeignKeys: []*schema.ForeignKey{},
}
// Tables holds all the tables in the schema.
Tables = []*schema.Table{
RobotstxtsTable,
}
)
func init() {
}