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