Protected routes

This commit is contained in:
Nedim
2023-11-10 17:32:17 +01:00
parent 367b5d51f2
commit 99b9df5066
14 changed files with 172 additions and 100 deletions

View File

@@ -2,9 +2,10 @@ package models
type SessionToken struct {
BaseModel
UserID uint `json:"userId"`
Token string `json:"token"`
IsActive bool `json:"isActive"`
UserID uint `json:"userId"`
Token string `json:"token"`
IsActive bool `json:"isActive"`
CompanyID uint `json:"userId"`
}
func (SessionToken) Update() (bool, error) {