mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-10-31 06:05:43 +00:00 
			
		
		
		
	 03d06cb0a7
			
		
	
	03d06cb0a7
	
	
	
		
			
			* 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"`
 | |
| }
 |