1package models
2
3import (
4 "database/sql"
5 "time"
6)
7
8// Repo is a database model for a repository.
9type Repo struct {
10 ID int64 `db:"id"`
11 Name string `db:"name"`
12 ProjectName string `db:"project_name"`
13 Description string `db:"description"`
14 Private bool `db:"private"`
15 Mirror bool `db:"mirror"`
16 Hidden bool `db:"hidden"`
17 UserID sql.NullInt64 `db:"user_id"`
18 OrgID sql.NullInt64 `db:"org_id"`
19 CreatedAt time.Time `db:"created_at"`
20 UpdatedAt time.Time `db:"updated_at"`
21}