repo.go 2.2 KB

1234567891011121314151617181920212223242526272829303132
  1. package datamodel
  2. import "time"
  3. type Repo struct {
  4. RepoId int64 `json:"repoId" xorm:"'repo_id' bigint pk comment('Repo ID') "`
  5. RepoTypeId int64 `json:"repoTypeId" xorm:"'repo_type_id' bigint pk comment('Repo Type ID') "`
  6. RepoCatId int64 `json:"repoCatId" xorm:"'repo_cat_id' bigint comment('Repo Cat ID') "`
  7. RepoTitle string `json:"repoTitle" xorm:"'repo_title' varchar(127) comment('Repo Title') "`
  8. RepoHost string `json:"repoHost" xorm:"'repo_host' varchar(127) comment('Repo Host') "`
  9. RepoPort int64 `json:"repoPort" xorm:"'repo_port' bigint comment('Repo Port') "`
  10. RepoAccount string `json:"repoAccount" xorm:"'repo_account' varchar(127) comment('Repo Account') "`
  11. RepoPassword string `json:"repoPassword" xorm:"'repo_password' varchar(127) comment('Repo Password') "`
  12. RepoAccessKey string `json:"repoAccessKey" xorm:"'repo_access_key' varchar(127) comment('Repo Access Key') "`
  13. RepoSecretKey string `json:"repoSecretKey" xorm:"'repo_secret_key' varchar(127) comment('Repo Secret Key') "`
  14. RepoTarget string `json:"repoTarget" xorm:"'repo_target' varchar(255) comment('Repo Target') "`
  15. RepoDesc string `json:"repoDesc" xorm:"'repo_desc' varchar(255) comment('Repo Desc') "`
  16. Status int64 `json:"status" xorm:"'status' bigint comment('Status') "`
  17. CreatedBy int64 `json:"createdBy" xorm:"'created_by' "`
  18. CreatedAt time.Time `json:"createdAt" xorm:"'created_at' "`
  19. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by' "`
  20. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at' "`
  21. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag' "`
  22. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by' "`
  23. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at' "`
  24. }
  25. func (t *Repo) TableName() string {
  26. return "repo"
  27. }