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