mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
42 lines
1.3 KiB
Go
42 lines
1.3 KiB
Go
// Copyright 2019-present Facebook Inc. All rights reserved.
|
|
// This source code is licensed under the Apache 2.0 license found
|
|
// in the LICENSE file in the root directory of this source tree.
|
|
|
|
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package migrate
|
|
|
|
import (
|
|
"entgo.io/ent/dialect/sql/schema"
|
|
"entgo.io/ent/schema/field"
|
|
)
|
|
|
|
var (
|
|
// UsersColumns holds the columns for the "users" table.
|
|
UsersColumns = []*schema.Column{
|
|
{Name: "id", Type: field.TypeInt, Increment: true},
|
|
{Name: "t", Type: field.TypeJSON, Nullable: true},
|
|
{Name: "url", Type: field.TypeJSON, Nullable: true},
|
|
{Name: "urls", Type: field.TypeJSON, Nullable: true},
|
|
{Name: "raw", Type: field.TypeJSON, Nullable: true},
|
|
{Name: "dirs", Type: field.TypeJSON},
|
|
{Name: "ints", Type: field.TypeJSON, Nullable: true},
|
|
{Name: "floats", Type: field.TypeJSON, Nullable: true},
|
|
{Name: "strings", Type: field.TypeJSON, Nullable: true},
|
|
{Name: "addr", Type: field.TypeJSON, Nullable: true},
|
|
}
|
|
// UsersTable holds the schema information for the "users" table.
|
|
UsersTable = &schema.Table{
|
|
Name: "users",
|
|
Columns: UsersColumns,
|
|
PrimaryKey: []*schema.Column{UsersColumns[0]},
|
|
}
|
|
// Tables holds all the tables in the schema.
|
|
Tables = []*schema.Table{
|
|
UsersTable,
|
|
}
|
|
)
|
|
|
|
func init() {
|
|
}
|