Files
hop-gate/ent/migrate/schema.go

41 lines
1019 B
Go

// Code generated by ent, DO NOT EDIT.
package migrate
import (
"entgo.io/ent/dialect/sql/schema"
"entgo.io/ent/schema/field"
)
var (
// DomainsColumns holds the columns for the "domains" table.
DomainsColumns = []*schema.Column{
{Name: "id", Type: field.TypeUUID},
{Name: "domain", Type: field.TypeString, Unique: true},
{Name: "client_api_key", Type: field.TypeString, Size: 64},
{Name: "memo", Type: field.TypeString, Default: ""},
{Name: "created_at", Type: field.TypeTime},
{Name: "updated_at", Type: field.TypeTime},
}
// DomainsTable holds the schema information for the "domains" table.
DomainsTable = &schema.Table{
Name: "domains",
Columns: DomainsColumns,
PrimaryKey: []*schema.Column{DomainsColumns[0]},
Indexes: []*schema.Index{
{
Name: "domain_client_api_key",
Unique: true,
Columns: []*schema.Column{DomainsColumns[2]},
},
},
}
// Tables holds all the tables in the schema.
Tables = []*schema.Table{
DomainsTable,
}
)
func init() {
}