u
This commit is contained in:
1 parent
ac0843c041
commit
a917be08d1
65 files changed
+8043
No files matched your search
@@ -0,0 +1,41 @@
|
||||
// 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",
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user