org_match.go 1.69 KB
Newer Older
haoyanbin's avatar
1  
haoyanbin committed
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 39 40 41 42 43 44
package models

import (
   // "gorm.io/gorm"

	"go-admin/common/models"
    "time"
)

type OrgMatch struct {
    models.Model
    
    LeagueId string `json:"leagueId" gorm:"type:bigint(20);comment:LeagueId"` 
    DivisionId string `json:"divisionId" gorm:"type:bigint(20);comment:DivisionId"` 
    SeasonId string `json:"seasonId" gorm:"type:bigint(20);comment:SeasonId"` 
    ClubId string `json:"clubId" gorm:"type:bigint(20);comment:ClubId"` 
    TeamId string `json:"teamId" gorm:"type:bigint(20);comment:TeamId"` 
    Status string `json:"status" gorm:"type:tinyint(1);comment:比赛状态 1 未开始 2 比赛中 3 已结束"` 
    Rounds string `json:"rounds" gorm:"type:varchar(60);comment:轮次"` 
    Grouping string `json:"grouping" gorm:"type:varchar(60);comment:分组"` 
    MatchStartTime time.Time `json:"matchStartTime" gorm:"type:datetime;comment:比赛开始时间"` 
    MatchEndTime time.Time `json:"matchEndTime" gorm:"type:datetime;comment:比赛结束时间"` 
    TeamAId string `json:"teamAId" gorm:"type:bigint(20);comment:a队id"` 
    TeamBId string `json:"teamBId" gorm:"type:bigint(20);comment:b队id"` 
    TeamAScore string `json:"teamAScore" gorm:"type:bigint(20);comment:a队比分"` 
    TeamBScore string `json:"teamBScore" gorm:"type:bigint(20);comment:b队比分"` 
    TeamAIntegral string `json:"teamAIntegral" gorm:"type:bigint(20);comment:a队积分"` 
    TeamBIntegral string `json:"teamBIntegral" gorm:"type:bigint(20);comment:a队积分"` 
    models.ModelTime
    models.ControlBy
}

func (OrgMatch) TableName() string {
    return "org_match"
}

func (e *OrgMatch) Generate() models.ActiveRecord {
	o := *e
	return &o
}

func (e *OrgMatch) GetId() interface{} {
	return e.Id
}