36 lines
987 B
Go
36 lines
987 B
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package migrate
|
|
|
|
import (
|
|
"entgo.io/ent/dialect/sql/schema"
|
|
"entgo.io/ent/schema/field"
|
|
)
|
|
|
|
var (
|
|
// AdminsColumns holds the columns for the "admins" table.
|
|
AdminsColumns = []*schema.Column{
|
|
{Name: "id", Type: field.TypeInt64, Increment: true},
|
|
{Name: "name", Type: field.TypeString, Default: ""},
|
|
{Name: "email", Type: field.TypeString, Default: ""},
|
|
{Name: "avatar", Type: field.TypeString, Default: ""},
|
|
{Name: "access", Type: field.TypeString, Default: ""},
|
|
{Name: "password", Type: field.TypeString, Default: ""},
|
|
{Name: "create_time", Type: field.TypeTime},
|
|
{Name: "update_time", Type: field.TypeTime},
|
|
}
|
|
// AdminsTable holds the schema information for the "admins" table.
|
|
AdminsTable = &schema.Table{
|
|
Name: "admins",
|
|
Columns: AdminsColumns,
|
|
PrimaryKey: []*schema.Column{AdminsColumns[0]},
|
|
}
|
|
// Tables holds all the tables in the schema.
|
|
Tables = []*schema.Table{
|
|
AdminsTable,
|
|
}
|
|
)
|
|
|
|
func init() {
|
|
}
|