|
|
@ -162,6 +162,7 @@ type projectDBO struct { |
|
|
|
StatusTag *string `json:"statusTag" db:"status_tag"` |
|
|
|
Favorite bool `json:"favorite" db:"favorite"` |
|
|
|
Tags pq.StringArray `json:"tags" db:"tags"` |
|
|
|
TaskSortFields pq.StringArray `json:"taskSortFields" db:"task_sort_fields"` |
|
|
|
} |
|
|
|
|
|
|
|
func toProjectDBO(project models.Project) *projectDBO { |
|
|
@ -180,6 +181,7 @@ func toProjectDBO(project models.Project) *projectDBO { |
|
|
|
StatusTag: project.StatusTag, |
|
|
|
Favorite: project.Favorite, |
|
|
|
Tags: project.Tags, |
|
|
|
TaskSortFields: project.TaskSortFields, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -199,5 +201,6 @@ func (d *projectDBO) ToProject() *models.Project { |
|
|
|
StatusTag: d.StatusTag, |
|
|
|
Favorite: d.Favorite, |
|
|
|
Tags: d.Tags, |
|
|
|
TaskSortFields: d.TaskSortFields, |
|
|
|
} |
|
|
|
} |