mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-27 20:25:41 +00:00
* feat: add sqlite database for storing sessions * refactor: use db instance instead of service in auth service * fix: coderabbit suggestions
13 lines
405 B
Go
13 lines
405 B
Go
package model
|
|
|
|
type Session struct {
|
|
UUID string `gorm:"column:uuid;primaryKey"`
|
|
Username string `gorm:"column:username"`
|
|
Email string `gorm:"column:email"`
|
|
Name string `gorm:"column:name"`
|
|
Provider string `gorm:"column:provider"`
|
|
TOTPPending bool `gorm:"column:totp_pending"`
|
|
OAuthGroups string `gorm:"column:oauth_groups"`
|
|
Expiry int64 `gorm:"column:expiry"`
|
|
}
|