about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-07-20 13:29:26 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-07-20 13:29:26 +0200
commit51fa14eb787c1866271d61ac3302e0aac899724f (patch)
treeebe1a3e841289dd26c3f40c32ce3027618775058
parentMigrations: Use UUID as primary key for files table (diff)
downloadfs-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.go2
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"`