Skip to content

Commit

Permalink
Task struct fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
maksymstoliarov committed Jul 17, 2024
1 parent 66162e5 commit 06cca1f
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions internal/models/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,24 @@ import (
)

type Task struct {
ID int
Desc string
TS *TimeStamp
Tags []string
Priority int
ID int
Desc string
Priority int
Tags []string // tags, tags: string tag1,tag2,tag3
Comments []string // comment1,comment2,comment3
StartAt *time.Time // timestamp datetime
EndAt *time.Time
CreatedAt *time.Time
UpdatedAt *time.Time
}

//tasks
//tags
// tag1

//task_tags
//tag_id, taks_id

type TimeStamp struct {
Start *time.Time
End *time.Time
Expand Down

0 comments on commit 06cca1f

Please sign in to comment.