aboutsummaryrefslogtreecommitdiff
path: root/modules/grils
diff options
context:
space:
mode:
authorrtz12 <koenig@fagott.pw>2016-10-09 01:32:58 (UTC)
committerrtz12 <koenig@fagott.pw>2016-10-09 01:32:58 (UTC)
commitdb4bd8185f7283420b3f60fc561b1b8e4f97b3b9 (patch)
tree8d2668571d5391ae4f202e6b97d1de7d61f548ad /modules/grils
parent5997487fc5cc2126fb5afa12b75b67f3985e11d2 (diff)
Traits in die Datenbank importieren
Diffstat (limited to 'modules/grils')
-rw-r--r--modules/grils/gril.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/grils/gril.go b/modules/grils/gril.go
index f78d31f..edec05a 100644
--- a/modules/grils/gril.go
+++ b/modules/grils/gril.go
@@ -19,6 +19,12 @@ const (
19 DataSourceAnilist 19 DataSourceAnilist
20) 20)
21 21
22type Trait struct {
23 Name string
24 Value string
25 OfficialValue string
26}
27
22type Gril struct { 28type Gril struct {
23 ID int 29 ID int
24 KanjiName string 30 KanjiName string
@@ -27,6 +33,7 @@ type Gril struct {
27 Age sql.NullInt64 33 Age sql.NullInt64
28 Birthday pq.NullTime 34 Birthday pq.NullTime
29 Tags []string 35 Tags []string
36 Traits []Trait
30 ForeignIDs map[DataSource]int 37 ForeignIDs map[DataSource]int
31 UpdatedAt time.Time 38 UpdatedAt time.Time
32 Lists []int 39 Lists []int