init push

This commit is contained in:
2026-07-16 22:16:45 +07:00
commit 8b068bdb10
1021 changed files with 332816 additions and 0 deletions

View 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" }

View 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" }