feat: 添加搜索收藏微服务
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package migrate
|
||||
|
||||
import (
|
||||
"entgo.io/ent/dialect/sql/schema"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
var (
|
||||
// FavoritesColumns holds the columns for the "favorites" table.
|
||||
FavoritesColumns = []*schema.Column{
|
||||
{Name: "id", Type: field.TypeInt64, Increment: true},
|
||||
{Name: "user_id", Type: field.TypeInt64},
|
||||
{Name: "target_type", Type: field.TypeString, Size: 20},
|
||||
{Name: "target_id", Type: field.TypeInt64},
|
||||
{Name: "created_at", Type: field.TypeTime},
|
||||
}
|
||||
// FavoritesTable holds the schema information for the "favorites" table.
|
||||
FavoritesTable = &schema.Table{
|
||||
Name: "favorites",
|
||||
Columns: FavoritesColumns,
|
||||
PrimaryKey: []*schema.Column{FavoritesColumns[0]},
|
||||
Indexes: []*schema.Index{
|
||||
{
|
||||
Name: "favorites_user_id_target_type_target_id",
|
||||
Unique: true,
|
||||
Columns: []*schema.Column{FavoritesColumns[1], FavoritesColumns[2], FavoritesColumns[3]},
|
||||
},
|
||||
{
|
||||
Name: "favorites_user_id_created_at",
|
||||
Unique: false,
|
||||
Columns: []*schema.Column{FavoritesColumns[1], FavoritesColumns[4]},
|
||||
},
|
||||
{
|
||||
Name: "favorites_target_type_target_id",
|
||||
Unique: false,
|
||||
Columns: []*schema.Column{FavoritesColumns[2], FavoritesColumns[3]},
|
||||
},
|
||||
{
|
||||
Name: "favorites_user_id_target_type_created_at",
|
||||
Unique: false,
|
||||
Columns: []*schema.Column{FavoritesColumns[1], FavoritesColumns[2], FavoritesColumns[4]},
|
||||
},
|
||||
},
|
||||
}
|
||||
// Tables holds all the tables in the schema.
|
||||
Tables = []*schema.Table{
|
||||
FavoritesTable,
|
||||
}
|
||||
)
|
||||
|
||||
func init() {
|
||||
}
|
||||
Reference in New Issue
Block a user