From eacf59812843eb17ffaf120f5dbb372edd210d60 Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 25 May 2026 22:57:42 -0400 Subject: [PATCH] Added structs for login histories --- tx0/user/login_history.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tx0/user/login_history.go diff --git a/tx0/user/login_history.go b/tx0/user/login_history.go new file mode 100644 index 0000000..65b9f8a --- /dev/null +++ b/tx0/user/login_history.go @@ -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"` +}