Added structs for login histories
This commit is contained in:
@@ -0,0 +1,18 @@
|
|||||||
|
package user
|
||||||
|
|
||||||
|
import (
|
||||||
|
"time"
|
||||||
|
"github.com/google/uuid"
|
||||||
|
)
|
||||||
|
|
||||||
|
type UserLoginHistory struct {
|
||||||
|
Id uuid.UUID `json:"id"`
|
||||||
|
LoginTime time.Time `json:"login_time"`
|
||||||
|
UserId uuid.UUID `json:"user_id"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type ServiceUserLoginHistory struct {
|
||||||
|
Id uuid.UUID `json:"id"`
|
||||||
|
LoginTime time.Time `json:"login_time"`
|
||||||
|
ServiceUserId uuid.UUID `json:"service_user_id"`
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user