From eacf59812843eb17ffaf120f5dbb372edd210d60 Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 25 May 2026 22:57:42 -0400 Subject: [PATCH 1/3] 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"` +} -- 2.47.3 From 21e91ebc7f5855b7fb85466e0b189d5be29dfff1 Mon Sep 17 00:00:00 2001 From: phoenix Date: Tue, 26 May 2026 22:04:34 -0400 Subject: [PATCH 2/3] go fmt --- tx0/user/login_history.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tx0/user/login_history.go b/tx0/user/login_history.go index 65b9f8a..7f39e33 100644 --- a/tx0/user/login_history.go +++ b/tx0/user/login_history.go @@ -1,18 +1,18 @@ package user import ( - "time" "github.com/google/uuid" + "time" ) type UserLoginHistory struct { - Id uuid.UUID `json:"id"` + Id uuid.UUID `json:"id"` LoginTime time.Time `json:"login_time"` - UserId uuid.UUID `json:"user_id"` + UserId uuid.UUID `json:"user_id"` } type ServiceUserLoginHistory struct { - Id uuid.UUID `json:"id"` - LoginTime time.Time `json:"login_time"` + Id uuid.UUID `json:"id"` + LoginTime time.Time `json:"login_time"` ServiceUserId uuid.UUID `json:"service_user_id"` } -- 2.47.3 From e832ff11a8b78d2e8e161bf72c20169d38987775 Mon Sep 17 00:00:00 2001 From: phoenix Date: Tue, 26 May 2026 22:06:59 -0400 Subject: [PATCH 3/3] bump: textsender-models --- .gitea/workflows/tag_release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3