init the project
This commit is contained in:
18
rest/session_model.go
Normal file
18
rest/session_model.go
Normal file
@ -0,0 +1,18 @@
|
||||
package rest
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Session struct {
|
||||
Base
|
||||
Authentication string `json:"authentication"`
|
||||
UserUuid string `json:"userUuid"`
|
||||
Ip string `json:"ip"`
|
||||
ExpireTime time.Time `json:"expireTime"`
|
||||
}
|
||||
|
||||
// set User's table name to be `profiles`
|
||||
func (Session) TableName() string {
|
||||
return TABLE_PREFIX + "session"
|
||||
}
|
Reference in New Issue
Block a user