-
Notifications
You must be signed in to change notification settings - Fork 1
/
schema.go
38 lines (34 loc) · 1.19 KB
/
schema.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Code generated by entc, DO NOT EDIT.
package migrate
import (
"entgo.io/ent/dialect/entsql"
"entgo.io/ent/dialect/sql/schema"
"entgo.io/ent/schema/field"
)
var (
// SysUserColumns holds the columns for the "sys_user" table.
SysUserColumns = []*schema.Column{
{Name: "id", Type: field.TypeInt, Increment: true},
{Name: "created_at", Type: field.TypeTime, SchemaType: map[string]string{"mysql": "DATETIME"}},
{Name: "created_by", Type: field.TypeInt64, Default: 0, SchemaType: map[string]string{"mysql": "int(11)unsigned"}},
{Name: "updated_at", Type: field.TypeTime, SchemaType: map[string]string{"mysql": "DATETIME"}},
{Name: "updated_by", Type: field.TypeInt64, Default: 0, SchemaType: map[string]string{"mysql": "int(11)unsigned"}},
}
// SysUserTable holds the schema information for the "sys_user" table.
SysUserTable = &schema.Table{
Name: "sys_user",
Columns: SysUserColumns,
PrimaryKey: []*schema.Column{SysUserColumns[0]},
}
// Tables holds all the tables in the schema.
Tables = []*schema.Table{
SysUserTable,
}
)
func init() {
SysUserTable.Annotation = &entsql.Annotation{
Table: "sys_user",
Charset: "utf8mb4",
Collation: "utf8mb4_unicode_ci",
}
}