qudoco-be/app/database/entity/csrf_token_records.entity.go

16 lines
342 B
Go
Raw Normal View History

2026-02-24 09:37:19 +00:00
package entity
import (
"github.com/google/uuid"
"time"
)
type CsrfTokenRecords struct {
ID uint `gorm:"primaryKey"`
Token string `gorm:"uniqueIndex;size:255"`
Value []byte `gorm:"value"`
ExpireAt time.Time `gorm:"index"`
ClientId *uuid.UUID `json:"client_id" gorm:"type:UUID"`
CreatedAt time.Time
}