about summary refs log tree commit diff
path: root/lib/model.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/model.go')
-rw-r--r--lib/model.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/model.go b/lib/model.go
new file mode 100644
index 0000000..be86378
--- /dev/null
+++ b/lib/model.go
@@ -0,0 +1,11 @@
+package lib
+
+import "time"
+
+type File struct {
+	Id            int       `db:"id"`
+	User_id       string    `db:"user_id"`
+	Absolute_path string    `db:"absolute_path"`
+	Contents      string    `db:"contents"`
+	Timestamp     time.Time `db:"timestamp"`
+}