init push
This commit is contained in:
13
internal/domain/transient/queue_idempotency.go
Normal file
13
internal/domain/transient/queue_idempotency.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package transient
|
||||
|
||||
import "time"
|
||||
|
||||
type QueueIdempotencyRecord struct {
|
||||
IdempotencyKey string `gorm:"type:varchar(191);primaryKey;column:idempotency_key"`
|
||||
State string `gorm:"type:varchar(32);index;not null;column:state"`
|
||||
ExpiresAt time.Time `gorm:"index;not null;column:expires_at"`
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
func (QueueIdempotencyRecord) TableName() string { return "queue_idempotency_records" }
|
||||
13
internal/domain/transient/token_entry.go
Normal file
13
internal/domain/transient/token_entry.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package transient
|
||||
|
||||
import "time"
|
||||
|
||||
type TokenEntry struct {
|
||||
StoreKey string `gorm:"type:varchar(255);primaryKey;column:store_key"`
|
||||
Value []byte `gorm:"type:longblob;not null;column:value"`
|
||||
ExpiresAt *time.Time `gorm:"index;column:expires_at"`
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
func (TokenEntry) TableName() string { return "auth_runtime_tokens" }
|
||||
Reference in New Issue
Block a user