diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-08-19 20:18:49 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-08-19 20:21:56 +0200 |
commit | 78bb3d999c5d1016dc83e97501fae208c7b83b0c (patch) | |
tree | 3075eb9a8582a39c59d9bf898852b4b078837e71 | |
parent | Supabase: Migrations: Fix schema of restored files table (diff) | |
download | fs-tracer-backend-78bb3d999c5d1016dc83e97501fae208c7b83b0c.tar.gz fs-tracer-backend-78bb3d999c5d1016dc83e97501fae208c7b83b0c.tar.bz2 fs-tracer-backend-78bb3d999c5d1016dc83e97501fae208c7b83b0c.zip |
Misc: Serialize file to json in lowercase
-rw-r--r-- | lib/model.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/model.go b/lib/model.go index c8538fa..bd45f87 100644 --- a/lib/model.go +++ b/lib/model.go @@ -3,9 +3,9 @@ package lib import "time" type File struct { - Id string `db:"id"` - User_id string `db:"user_id"` - Absolute_path string `db:"absolute_path"` - Contents string `db:"contents"` - Timestamp time.Time `db:"timestamp"` + Id string `db:"id" json:"id"` + User_id string `db:"user_id" json:"user_id"` + Absolute_path string `db:"absolute_path" json:"absolute_path"` + Contents string `db:"contents" json:"contents"` + Timestamp time.Time `db:"timestamp" json:"timestamp"` } |