chore(tfstated): change database state id and version id formats to uuidv7

This commit is contained in:
Julien Dessaux 2025-02-22 13:35:17 +01:00
parent 169e2d0d9d
commit 6fd1663d8c
Signed by: adyxax
GPG key ID: F92E51B86E07177E
9 changed files with 73 additions and 57 deletions

View file

@ -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

View file

@ -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
}