diff options
Diffstat (limited to '')
-rw-r--r-- | pkg/model/state.go | 4 | ||||
-rw-r--r-- | pkg/model/version.go | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/pkg/model/state.go b/pkg/model/state.go index 8e1c277..12f9e83 100644 --- a/pkg/model/state.go +++ b/pkg/model/state.go @@ -2,11 +2,13 @@ package model import ( "time" + + "go.n16f.net/uuid" ) type State struct { Created time.Time - Id int + Id uuid.UUID Lock *string Path string Updated time.Time diff --git a/pkg/model/version.go b/pkg/model/version.go index f07db45..1d15bd1 100644 --- a/pkg/model/version.go +++ b/pkg/model/version.go @@ -3,13 +3,15 @@ package model import ( "encoding/json" "time" + + "go.n16f.net/uuid" ) type Version struct { AccountId string Created time.Time Data json.RawMessage - Id int + Id uuid.UUID Lock *string - StateId int + StateId uuid.UUID } |