created: auth provider

This commit is contained in:
nquidox 2025-07-07 17:45:58 +03:00
parent f5162fcd66
commit 099a586484
6 changed files with 185 additions and 0 deletions

View file

@ -0,0 +1,16 @@
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"`
TokenUuid string `gorm:"column:token_uuid"`
Expires int64 `gorm:"column:expires"`
}