From 5b36e5c42eea464c68dd99e95a424c92959a7b63 Mon Sep 17 00:00:00 2001 From: phoenix Date: Tue, 26 May 2026 22:08:05 -0400 Subject: [PATCH] Login History (#2) Reviewed-on: http://git.kundeng.us/phoenix/textsender-models/pulls/2 --- .gitea/workflows/tag_release.yaml | 2 +- tx0/user/login_history.go | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 tx0/user/login_history.go diff --git a/.gitea/workflows/tag_release.yaml b/.gitea/workflows/tag_release.yaml index 1bc9f18..3b0f140 100644 --- a/.gitea/workflows/tag_release.yaml +++ b/.gitea/workflows/tag_release.yaml @@ -25,7 +25,7 @@ jobs: run: | echo "Creating version" - VERSION="0.2.1" + VERSION="0.2.2" PROJECT_COMMIT_HASH=$(git rev-parse HEAD | cut -c 1-10) BRANCH_REF="${{ gitea.ref }}" BRANCH_NAME=$(echo "$BRANCH_REF" | cut -d '/' -f 3) diff --git a/tx0/user/login_history.go b/tx0/user/login_history.go new file mode 100644 index 0000000..7f39e33 --- /dev/null +++ b/tx0/user/login_history.go @@ -0,0 +1,18 @@ +package user + +import ( + "github.com/google/uuid" + "time" +) + +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"` +}