chore(tfstated): change database account id format to uuidv7
This commit is contained in:
parent
98c7d6f578
commit
ab548d249b
8 changed files with 27 additions and 20 deletions
|
@ -11,7 +11,7 @@ import (
|
|||
type AccountContextKey struct{}
|
||||
|
||||
type Account struct {
|
||||
Id int
|
||||
Id string
|
||||
Username string
|
||||
Salt []byte
|
||||
PasswordHash []byte
|
||||
|
|
|
@ -8,7 +8,7 @@ type SessionContextKey struct{}
|
|||
|
||||
type Session struct {
|
||||
Id string
|
||||
AccountId int
|
||||
AccountId string
|
||||
Created time.Time
|
||||
Updated time.Time
|
||||
Data any
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
package model
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Version struct {
|
||||
AccountId int
|
||||
AccountId string
|
||||
Created time.Time
|
||||
Data []byte
|
||||
Data json.RawMessage
|
||||
Id int
|
||||
Lock *string
|
||||
StateId int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue