package model import "time" type RepoStatus string type RepoType string const ( StatusNeedToDeploy RepoStatus = "need_to_deploy" StatusDeploying RepoStatus = "deploying" StatusDeployed RepoStatus = "deployed" StatusError RepoStatus = "err" StatusStopped RepoStatus = "stopped" StatusRestarting RepoStatus = "restarting" StatusDeleted RepoStatus = "deleted" ) const ( TypeNodeJS RepoType = "nodejs" TypePython RepoType = "python" ) type Repo struct { ID int64 `json:"id"` RepoURL string `json:"repo_url"` Status RepoStatus `json:"status"` UserID string `json:"user_id"` Type RepoType `json:"type"` ImageTag *string `json:"image_tag"` LastError *string `json:"last_error"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }