Files
fm_be/internal/domain/transient/queue_idempotency.go
2026-07-16 22:16:45 +07:00

14 lines
449 B
Go

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