From fc63adf55849f748a37cef4c425a19a1c0f0e76e Mon Sep 17 00:00:00 2001 From: hanemile Date: Sun, 19 Jul 2020 01:56:09 +0200 Subject: initial commit --- src/structs/talk.go | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/structs/talk.go (limited to 'src/structs/talk.go') diff --git a/src/structs/talk.go b/src/structs/talk.go new file mode 100644 index 0000000..ec502c6 --- /dev/null +++ b/src/structs/talk.go @@ -0,0 +1,26 @@ +package structs + +import ( + "time" + + "github.com/google/uuid" +) + +// Talk defines a talk +type Talk struct { + // Meta + UUID uuid.UUID `pg:"type:uuid"` + ID int `pg:",pk"` + + // Actual Talk information + Title string + Description string + Slides string + Nickname string + + Date time.Time // the actual date entered + FormattedDate string // the date formatted in a way that can be displayed nicely + + // Organization + Upcoming bool `pg:",use_zero"` +} -- cgit 1.4.1