diff options
author | jan <jan@ruken.pw> | 2015-12-27 13:03:49 (UTC) |
---|---|---|
committer | jan <jan@ruken.pw> | 2015-12-27 13:03:49 (UTC) |
commit | 8e5c7e54f952e5c34ab64c512ccdbc27af9447c9 (patch) | |
tree | 14d546d8d6d252f85536a7055210c263e397b3a0 /modules/grils/gril.go | |
parent | 6fabf512767b458a44b4b2547a7b07e9db71c00a (diff) |
tatsächliche daten aus der datenbank werden nun für grils verwendet. ein hoch auf unsern busfahrer, busfahrer, busfahrer.
Diffstat (limited to 'modules/grils/gril.go')
-rw-r--r-- | modules/grils/gril.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/grils/gril.go b/modules/grils/gril.go index 645a97a..9fd3be5 100644 --- a/modules/grils/gril.go +++ b/modules/grils/gril.go | |||
@@ -1,6 +1,8 @@ | |||
1 | package grils | 1 | package grils |
2 | 2 | ||
3 | import ( | 3 | import ( |
4 | "database/sql" | ||
5 | "github.com/lib/pq" | ||
4 | "time" | 6 | "time" |
5 | ) | 7 | ) |
6 | 8 | ||
@@ -16,8 +18,9 @@ type Gril struct { | |||
16 | KanjiName string | 18 | KanjiName string |
17 | RomajiName string | 19 | RomajiName string |
18 | OtherNames []string | 20 | OtherNames []string |
19 | Age int | 21 | Age sql.NullInt64 |
20 | Birthday time.Time | 22 | Birthday pq.NullTime |
21 | Tags []string | 23 | Tags []string |
22 | ForeignIDs map[DataSource]int | 24 | ForeignIDs map[DataSource]int |
25 | UpdatedAt time.Time | ||
23 | } | 26 | } |