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