org_season.go 981 Bytes
Newer Older
haoyanbin's avatar
1  
haoyanbin committed
1 2 3 4 5 6 7 8 9 10 11
package models

import (
   // "gorm.io/gorm"

	"go-admin/common/models"
)

type OrgSeason struct {
    models.Model
    
haoyanbin's avatar
1  
haoyanbin committed
12 13
    LeagueId string `json:"leagueId" gorm:"type:bigint(20);comment:org_league表id"` 
    DivisionId string `json:"divisionId" gorm:"type:bigint(20);comment:org_division表id"` 
haoyanbin's avatar
1  
haoyanbin committed
14 15 16 17
    SeasonName string `json:"seasonName" gorm:"type:varchar(255);comment:赛季名称"` 
    TotalRounds string `json:"totalRounds" gorm:"type:varchar(60);comment:总轮次"` 
    StartTime string `json:"startTime" gorm:"type:date;comment:赛季开始时间"` 
    EndTime string `json:"endTime" gorm:"type:date;comment:赛季结束时间"` 
haoyanbin's avatar
1  
haoyanbin committed
18
    Status string `json:"status" gorm:"type:tinyint(1);comment:赛季开启状态 1 是 0 否"` 
haoyanbin's avatar
1  
haoyanbin committed
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
    models.ModelTime
    models.ControlBy
}

func (OrgSeason) TableName() string {
    return "org_season"
}

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

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