diff options
author | Julien Dessaux | 2025-02-22 13:35:17 +0100 |
---|---|---|
committer | Julien Dessaux | 2025-02-22 13:35:17 +0100 |
commit | 6fd1663d8c27fbfd5adc93a3aa973f78a2eeb719 (patch) | |
tree | c2e5afc41acdf42cd4a43a324c80bd35ad714261 /pkg/model | |
parent | chore(webui): refactored state creation page and route (diff) | |
download | tfstated-6fd1663d8c27fbfd5adc93a3aa973f78a2eeb719.tar.gz tfstated-6fd1663d8c27fbfd5adc93a3aa973f78a2eeb719.tar.bz2 tfstated-6fd1663d8c27fbfd5adc93a3aa973f78a2eeb719.zip |
Diffstat (limited to 'pkg/model')
-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 } |