/
board.go
30 lines (27 loc) · 1.21 KB
/
board.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package domain
import "time"
// Board - Boardエンティティ
type Board struct {
ID string `firestore:"id"`
Name string `firestore:"name"`
IsClosed bool `firestore:"is_closed"`
ThumbnailURL string `firestore:"thumbnail_url"`
BackgroundColor string `firestore:"background_color"`
Labels []string `firestore:"labels"`
GroupID string `firestore:"group_id"`
ListIDs []string `firestore:"board_list_ids"`
Lists map[string]*BoardList `firestore:"-"`
CreatedAt time.Time `firestore:"created_at"`
UpdatedAt time.Time `firestore:"updated_at"`
}
// BoardList - BoardListエンティティ
type BoardList struct {
ID string `firestore:"id"`
Name string `firestore:"name"`
Color string `firestore:"color"`
BoardID string `firestore:"board_id"`
TaskIDs []string `firestore:"task_ids"`
Tasks map[string]*Task `firestore:"-"`
CreatedAt time.Time `firestore:"created_at"`
UpdatedAt time.Time `firestore:"updated_at"`
}