api/internal/provider/auth/model.go
2025-09-09 00:00:11 +03:00

17 lines
497 B
Go

package auth
import (
"database/sql"
"time"
)
type RefreshToken struct {
Id uint `gorm:"primary_key"`
CreatedAt time.Time `gorm:"column:created_at"`
UpdatedAt sql.NullTime `gorm:"column:updated_at"`
DeletedAt sql.NullTime `gorm:"column:deleted_at"`
UserUuid string `gorm:"column:user_uuid"`
RefreshUuid string `gorm:"column:refresh_uuid"`
SessionUuid string `gorm:"column:session_uuid"`
Expires time.Time `gorm:"column:expires"`
}