created: auth provider
This commit is contained in:
parent
f5162fcd66
commit
099a586484
6 changed files with 185 additions and 0 deletions
16
internal/provider/auth/model.go
Normal file
16
internal/provider/auth/model.go
Normal 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"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue