mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 00:46:30 +00:00
Add indices to repo table (#4087)
This commit is contained in:
parent
34f4f81eab
commit
21f6039bc9
1 changed files with 2 additions and 2 deletions
|
@ -23,11 +23,11 @@ import (
|
|||
// Repo represents a repository.
|
||||
type Repo struct {
|
||||
ID int64 `json:"id,omitempty" xorm:"pk autoincr 'id'"`
|
||||
UserID int64 `json:"-" xorm:"user_id"`
|
||||
UserID int64 `json:"-" xorm:"INDEX 'user_id'"`
|
||||
ForgeID int64 `json:"forge_id,omitempty" xorm:"forge_id"`
|
||||
// ForgeRemoteID is the unique identifier for the repository on the forge.
|
||||
ForgeRemoteID ForgeRemoteID `json:"forge_remote_id" xorm:"forge_remote_id"`
|
||||
OrgID int64 `json:"org_id" xorm:"org_id"`
|
||||
OrgID int64 `json:"org_id" xorm:"INDEX 'org_id'"`
|
||||
Owner string `json:"owner" xorm:"UNIQUE(name) 'owner'"`
|
||||
Name string `json:"name" xorm:"UNIQUE(name) 'name'"`
|
||||
FullName string `json:"full_name" xorm:"UNIQUE 'full_name'"`
|
||||
|
|
Loading…
Reference in a new issue