Fix missing db-tags for model structs
This commit is contained in:
parent
0c7c07adb4
commit
a87fecf1d3
@ -6,9 +6,9 @@ import (
|
|||||||
|
|
||||||
type Contrib struct {
|
type Contrib struct {
|
||||||
Week int `json:"week"`
|
Week int `json:"week"`
|
||||||
OrgID int `json:"org_id"`
|
OrgID int `json:"org_id" db:"org_id"`
|
||||||
RepoID int `json:"repo_id"`
|
RepoID int `json:"repo_id" db:"repo_id"`
|
||||||
UserID int `json:"user_id"`
|
UserID int `json:"user_id" db:"user_id"`
|
||||||
Commits int `json:"commits"`
|
Commits int `json:"commits"`
|
||||||
Additions int `json:"additions"`
|
Additions int `json:"additions"`
|
||||||
Deletions int `json:"deletions"`
|
Deletions int `json:"deletions"`
|
||||||
|
@ -6,12 +6,12 @@ import (
|
|||||||
|
|
||||||
type Repo struct {
|
type Repo struct {
|
||||||
ID int `json:"id"`
|
ID int `json:"id"`
|
||||||
OrgID int `json:"org_id"`
|
OrgID int `json:"org_id" db:"org_id"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
IsPrivate bool `json:"is_private"`
|
IsPrivate bool `json:"is_private" db:"is_private"`
|
||||||
IsFork bool `json:"is_fork"`
|
IsFork bool `json:"is_fork" db:"is_fork"`
|
||||||
UpdatedAt time.Time `json:"updated_at"`
|
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *Repo) Save() {
|
func (r *Repo) Save() {
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
|
|
||||||
type Team struct {
|
type Team struct {
|
||||||
ID int `json:"id"`
|
ID int `json:"id"`
|
||||||
OrgID int `json:"org_id"`
|
OrgID int `json:"org_id" db:"org_id"`
|
||||||
Slug string `json:"slug"`
|
Slug string `json:"slug"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Permission string `json:"permission"`
|
Permission string `json:"permission"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user