diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-07-20 13:29:26 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-07-20 13:29:26 +0200 |
commit | 51fa14eb787c1866271d61ac3302e0aac899724f (patch) | |
tree | ebe1a3e841289dd26c3f40c32ce3027618775058 | |
parent | Migrations: Use UUID as primary key for files table (diff) | |
download | fs-tracer-backend-51fa14eb787c1866271d61ac3302e0aac899724f.tar.gz fs-tracer-backend-51fa14eb787c1866271d61ac3302e0aac899724f.tar.bz2 fs-tracer-backend-51fa14eb787c1866271d61ac3302e0aac899724f.zip |
Lib: File: Update file to use UUID as primary key
-rw-r--r-- | lib/model.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/model.go b/lib/model.go index be86378..c8538fa 100644 --- a/lib/model.go +++ b/lib/model.go @@ -3,7 +3,7 @@ package lib import "time" type File struct { - Id int `db:"id"` + Id string `db:"id"` User_id string `db:"user_id"` Absolute_path string `db:"absolute_path"` Contents string `db:"contents"` |