diff options
Diffstat (limited to 'models/list.go')
-rw-r--r-- | models/list.go | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/models/list.go b/models/list.go new file mode 100644 index 0000000..1d67546 --- /dev/null +++ b/models/list.go | |||
@@ -0,0 +1,25 @@ | |||
1 | package models | ||
2 | |||
3 | import ( | ||
4 | "database/sql" | ||
5 | |||
6 | "fagott.pw/charakterin" | ||
7 | "github.com/lib/pq" | ||
8 | ) | ||
9 | |||
10 | // List ist eine Liste an DINGEN. | ||
11 | type List struct { | ||
12 | ID int | ||
13 | Name string | ||
14 | Description string | ||
15 | Owner *charakterin.User | ||
16 | ForkOf sql.NullInt64 | ||
17 | UpdatedAt pq.NullTime | ||
18 | Grils []*ListGril | ||
19 | } | ||
20 | |||
21 | // ListGril ist ein geranktes Gril | ||
22 | type ListGril struct { | ||
23 | Gril *Gril | ||
24 | Order int | ||
25 | } | ||