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

This commit is contained in:
Julien Dessaux 2025-03-17 23:51:37 +01:00
parent ad9e8fbff9
commit 7a3bf725b0
Signed by: adyxax
GPG key ID: F92E51B86E07177E
6 changed files with 10 additions and 7 deletions

View file

@ -6,12 +6,13 @@ import (
"time"
"git.adyxax.org/adyxax/tfstated/pkg/helpers"
"go.n16f.net/uuid"
)
type AccountContextKey struct{}
type Account struct {
Id string
Id uuid.UUID
Username string
Salt []byte
PasswordHash []byte

View file

@ -2,13 +2,15 @@ package model
import (
"time"
"go.n16f.net/uuid"
)
type SessionContextKey struct{}
type Session struct {
Id string
AccountId string
AccountId uuid.UUID
Created time.Time
Updated time.Time
Data any

View file

@ -8,7 +8,7 @@ import (
)
type Version struct {
AccountId string
AccountId uuid.UUID
Created time.Time
Data json.RawMessage
Id uuid.UUID