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

16 lines
342 B
Go
Raw Permalink Normal View History

2025-04-09 21:28:46 +00:00
package entity
2025-07-02 06:03:52 +00:00
import (
"github.com/google/uuid"
"time"
)
2025-04-09 21:28:46 +00:00
type CsrfTokenRecords struct {
2025-07-02 06:03:52 +00:00
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"`
2025-04-09 21:28:46 +00:00
CreatedAt time.Time
}