summaryrefslogtreecommitdiff
path: root/pkg/model
diff options
context:
space:
mode:
authorJulien Dessaux2025-02-22 13:35:17 +0100
committerJulien Dessaux2025-02-22 13:35:17 +0100
commit6fd1663d8c27fbfd5adc93a3aa973f78a2eeb719 (patch)
treec2e5afc41acdf42cd4a43a324c80bd35ad714261 /pkg/model
parentchore(webui): refactored state creation page and route (diff)
downloadtfstated-6fd1663d8c27fbfd5adc93a3aa973f78a2eeb719.tar.gz
tfstated-6fd1663d8c27fbfd5adc93a3aa973f78a2eeb719.tar.bz2
tfstated-6fd1663d8c27fbfd5adc93a3aa973f78a2eeb719.zip
chore(tfstated): change database state id and version id formats to uuidv7HEADmain
Diffstat (limited to 'pkg/model')
-rw-r--r--pkg/model/state.go4
-rw-r--r--pkg/model/version.go6
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
}