repo.go

 1package types
 2
 3import "time"
 4
 5// Repo is a repository database model.
 6type Repo struct {
 7	ID          int
 8	Name        string
 9	ProjectName string
10	Description string
11	Private     bool
12	CreatedAt   *time.Time
13	UpdatedAt   *time.Time
14}
15
16// String returns the name of the repository.
17func (r *Repo) String() string {
18	return r.Name
19}