|
@@ -9,8 +9,8 @@ import (
|
|
)
|
|
)
|
|
|
|
|
|
var (
|
|
var (
|
|
- // AddWechatFriendLogsColumns holds the columns for the "add_wechat_friend_logs" table.
|
|
|
|
- AddWechatFriendLogsColumns = []*schema.Column{
|
|
|
|
|
|
+ // AddWechatFriendLogColumns holds the columns for the "add_wechat_friend_log" table.
|
|
|
|
+ AddWechatFriendLogColumns = []*schema.Column{
|
|
{Name: "id", Type: field.TypeInt64, Increment: true},
|
|
{Name: "id", Type: field.TypeInt64, Increment: true},
|
|
{Name: "owner_wx_id", Type: field.TypeString, Size: 64, Default: ""},
|
|
{Name: "owner_wx_id", Type: field.TypeString, Size: 64, Default: ""},
|
|
{Name: "owner_wx_type", Type: field.TypeInt, Default: 1},
|
|
{Name: "owner_wx_type", Type: field.TypeInt, Default: 1},
|
|
@@ -25,16 +25,16 @@ var (
|
|
{Name: "created_at", Type: field.TypeInt64},
|
|
{Name: "created_at", Type: field.TypeInt64},
|
|
{Name: "updated_at", Type: field.TypeInt64},
|
|
{Name: "updated_at", Type: field.TypeInt64},
|
|
}
|
|
}
|
|
- // AddWechatFriendLogsTable holds the schema information for the "add_wechat_friend_logs" table.
|
|
|
|
- AddWechatFriendLogsTable = &schema.Table{
|
|
|
|
- Name: "add_wechat_friend_logs",
|
|
|
|
- Columns: AddWechatFriendLogsColumns,
|
|
|
|
- PrimaryKey: []*schema.Column{AddWechatFriendLogsColumns[0]},
|
|
|
|
|
|
+ // AddWechatFriendLogTable holds the schema information for the "add_wechat_friend_log" table.
|
|
|
|
+ AddWechatFriendLogTable = &schema.Table{
|
|
|
|
+ Name: "add_wechat_friend_log",
|
|
|
|
+ Columns: AddWechatFriendLogColumns,
|
|
|
|
+ PrimaryKey: []*schema.Column{AddWechatFriendLogColumns[0]},
|
|
Indexes: []*schema.Index{
|
|
Indexes: []*schema.Index{
|
|
{
|
|
{
|
|
Name: "addwechatfriendlog_owner_wx_id_is_can_add",
|
|
Name: "addwechatfriendlog_owner_wx_id_is_can_add",
|
|
Unique: false,
|
|
Unique: false,
|
|
- Columns: []*schema.Column{AddWechatFriendLogsColumns[1], AddWechatFriendLogsColumns[7]},
|
|
|
|
|
|
+ Columns: []*schema.Column{AddWechatFriendLogColumns[1], AddWechatFriendLogColumns[7]},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|
|
}
|
|
@@ -1615,7 +1615,7 @@ var (
|
|
}
|
|
}
|
|
// Tables holds all the tables in the schema.
|
|
// Tables holds all the tables in the schema.
|
|
Tables = []*schema.Table{
|
|
Tables = []*schema.Table{
|
|
- AddWechatFriendLogsTable,
|
|
|
|
|
|
+ AddWechatFriendLogTable,
|
|
AgentTable,
|
|
AgentTable,
|
|
AgentBaseTable,
|
|
AgentBaseTable,
|
|
AliyunAvatarTable,
|
|
AliyunAvatarTable,
|
|
@@ -1667,6 +1667,9 @@ var (
|
|
)
|
|
)
|
|
|
|
|
|
func init() {
|
|
func init() {
|
|
|
|
+ AddWechatFriendLogTable.Annotation = &entsql.Annotation{
|
|
|
|
+ Table: "add_wechat_friend_log",
|
|
|
|
+ }
|
|
AgentTable.Annotation = &entsql.Annotation{
|
|
AgentTable.Annotation = &entsql.Annotation{
|
|
Table: "agent",
|
|
Table: "agent",
|
|
}
|
|
}
|