chore(tfstated): change database state id and version id formats to uuidv7
This commit is contained in:
parent
169e2d0d9d
commit
6fd1663d8c
9 changed files with 73 additions and 57 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue