chore(tfstated): change database account id format to uuidv7

This commit is contained in:
Julien Dessaux 2025-01-31 20:53:29 +01:00
parent 98c7d6f578
commit ab548d249b
Signed by: adyxax
GPG key ID: F92E51B86E07177E
8 changed files with 27 additions and 20 deletions

View file

@ -11,7 +11,7 @@ import (
type AccountContextKey struct{}
type Account struct {
Id int
Id string
Username string
Salt []byte
PasswordHash []byte

View file

@ -8,7 +8,7 @@ type SessionContextKey struct{}
type Session struct {
Id string
AccountId int
AccountId string
Created time.Time
Updated time.Time
Data any

View file

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