repo.go 2.0 KB

123456789101112131415161718192021222324252627282930
  1. package datamodels
  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. RepoTitle string `json:"repoTitle" xorm:"'repo_title' varchar(127) comment('Repo Title') "`
  7. RepoHost string `json:"repoHost" xorm:"'repo_host' varchar(127) comment('Repo Host') "`
  8. RepoPort int64 `json:"repoPort" xorm:"'repo_port' bigint comment('Repo Port') "`
  9. RepoAccount string `json:"repoAccount" xorm:"'repo_account' varchar(127) comment('Repo Account') "`
  10. RepoPassword string `json:"repoPassword" xorm:"'repo_password' varchar(127) comment('Repo Password') "`
  11. RepoAccessKey string `json:"repoAccessKey" xorm:"'repo_access_key' varchar(127) comment('Repo Access Key') "`
  12. RepoSecretKey string `json:"repoSecretKey" xorm:"'repo_secret_key' varchar(127) comment('Repo Secret Key') "`
  13. RepoDesc string `json:"repoDesc" xorm:"'repo_desc' varchar(255) comment('Repo Desc') "`
  14. Status int64 `json:"status" xorm:"'status' bigint comment('Status') "`
  15. CreatedBy int64 `json:"createdBy" xorm:"'created_by' "`
  16. CreatedAt time.Time `json:"createdAt" xorm:"'created_at' "`
  17. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by' "`
  18. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at' "`
  19. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag' "`
  20. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by' "`
  21. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at' "`
  22. }
  23. func (t *Repo) TableName() string {
  24. return "repo"
  25. }