1
0

feat(projects): add parent project, migrate namespaces

This commit is contained in:
kolaente
2022-12-28 12:03:26 +01:00
parent 47c2da7f18
commit 0795828a9f
2 changed files with 300 additions and 2 deletions

View File

@ -46,8 +46,9 @@ type Project struct {
// The hex color of this project
HexColor string `xorm:"varchar(6) null" json:"hex_color" valid:"runelength(0|6)" maxLength:"6"`
OwnerID int64 `xorm:"bigint INDEX not null" json:"-"`
NamespaceID int64 `xorm:"bigint INDEX not null" json:"namespace_id" param:"namespace"`
OwnerID int64 `xorm:"bigint INDEX not null" json:"-"`
NamespaceID int64 `xorm:"bigint INDEX not null" json:"namespace_id" param:"namespace"`
ParentProjectID int64 `xorm:"bigint INDEX null" json:"parent_project_id"`
// The user who created this project.
Owner *user.User `xorm:"-" json:"owner" valid:"-"`