19cc7a778c
- Deleted old gRPC service definitions in `game_grpc.pb.go` and `public.go`. - Added new API server implementations for objectstory, player, and shop services. - Introduced configuration files for new APIs in `etc/*.yaml`. - Created main entry points for each service in `objectstory.go`, `player.go`, and `shop.go`. - Removed unused user update handler and user API files. - Added utility functions for context management and HTTP header parsing. - Introduced PostgreSQL backup configuration in `backup/postgreSql.yaml`.
36 lines
989 B
Go
36 lines
989 B
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package migrate
|
|
|
|
import (
|
|
"entgo.io/ent/dialect/sql/schema"
|
|
"entgo.io/ent/schema/field"
|
|
)
|
|
|
|
var (
|
|
// GamesColumns holds the columns for the "games" table.
|
|
GamesColumns = []*schema.Column{
|
|
{Name: "id", Type: field.TypeInt64, Increment: true},
|
|
{Name: "name", Type: field.TypeString, Unique: true, Size: 100},
|
|
{Name: "icon", Type: field.TypeString},
|
|
{Name: "category", Type: field.TypeString, Size: 50},
|
|
{Name: "sort_order", Type: field.TypeInt, Default: 0},
|
|
{Name: "is_active", Type: field.TypeBool, Nullable: true, Default: true},
|
|
{Name: "created_at", Type: field.TypeTime},
|
|
{Name: "updated_at", Type: field.TypeTime},
|
|
}
|
|
// GamesTable holds the schema information for the "games" table.
|
|
GamesTable = &schema.Table{
|
|
Name: "games",
|
|
Columns: GamesColumns,
|
|
PrimaryKey: []*schema.Column{GamesColumns[0]},
|
|
}
|
|
// Tables holds all the tables in the schema.
|
|
Tables = []*schema.Table{
|
|
GamesTable,
|
|
}
|
|
)
|
|
|
|
func init() {
|
|
}
|