team.go 364 B

123456789101112131415161718
  1. package model
  2. import "go-common/library/time"
  3. //Team team.
  4. type Team struct {
  5. ID int64 `json:"id" gorm:"primary_key"`
  6. Name string `json:"name"`
  7. Env string `json:"env"`
  8. Zone string `json:"zone"`
  9. Ctime time.Time `json:"ctime"`
  10. Mtime time.Time `json:"mtime"`
  11. }
  12. // TableName team.
  13. func (Team) TableName() string {
  14. return "project_team"
  15. }