Files
workspace/code/base-project/base-go-v3/ent/migrate/schema.go
T
2025-11-23 22:43:57 +08:00

42 lines
1.2 KiB
Go

// Code generated by ent, DO NOT EDIT.
package migrate
import (
"entgo.io/ent/dialect/entsql"
"entgo.io/ent/dialect/sql/schema"
"entgo.io/ent/schema/field"
)
var (
// UserInfoColumns holds the columns for the "user_info" table.
UserInfoColumns = []*schema.Column{
{Name: "id", Type: field.TypeInt64, Increment: true},
{Name: "seq_no", Type: field.TypeInt64, Default: 0},
{Name: "email", Type: field.TypeString, Unique: true, Size: 255},
{Name: "username", Type: field.TypeString, Size: 50},
{Name: "password", Type: field.TypeString, Size: 255},
{Name: "gender", Type: field.TypeInt64, Default: 0},
{Name: "account", Type: field.TypeString, Unique: true, Size: 255},
{Name: "create_time", Type: field.TypeTime},
{Name: "update_time", Type: field.TypeTime},
{Name: "last_login_time", Type: field.TypeTime, Nullable: true},
}
// UserInfoTable holds the schema information for the "user_info" table.
UserInfoTable = &schema.Table{
Name: "user_info",
Columns: UserInfoColumns,
PrimaryKey: []*schema.Column{UserInfoColumns[0]},
}
// Tables holds all the tables in the schema.
Tables = []*schema.Table{
UserInfoTable,
}
)
func init() {
UserInfoTable.Annotation = &entsql.Annotation{
Table: "user_info",
}
}