chore(tfstated): change database account id format to uuidv7
This commit is contained in:
parent
ad9e8fbff9
commit
7a3bf725b0
6 changed files with 10 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
)
|
||||
|
||||
type Version struct {
|
||||
AccountId string
|
||||
AccountId uuid.UUID
|
||||
Created time.Time
|
||||
Data json.RawMessage
|
||||
Id uuid.UUID
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue