From 51fa14eb787c1866271d61ac3302e0aac899724f Mon Sep 17 00:00:00 2001 From: Baitinq Date: Sat, 20 Jul 2024 13:29:26 +0200 Subject: Lib: File: Update file to use UUID as primary key --- lib/model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"` -- cgit 1.4.1