summaryrefslogtreecommitdiff
path: root/models/db.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/db.go')
-rw-r--r--models/db.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/models/db.go b/models/db.go
new file mode 100644
index 0000000..24bef41
--- /dev/null
+++ b/models/db.go
@@ -0,0 +1,11 @@
+package models
+
+import "time"
+
+type Chat struct {
+ ID uint32 `db:"id" json:"id"`
+ Name string `db:"name" json:"name"`
+ Msgs string `db:"msgs" json:"msgs"` // []MessagesStory to string json
+ CreatedAt time.Time `db:"created_at" json:"created_at"`
+ UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
+}