Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Golzar <57574919+aliglzr@users.noreply.github.com>2025-08-27 20:30:49 +0300
committerGitHub <noreply@github.com>2025-08-27 20:30:49 +0300
commit21983971971b14377b36c8db92c8603f723f955d (patch)
tree1bdc1838e95c52f6a87b96c1d0b0708dcde806f2 /database/model/model.go
parentd10c312e62e0abf6da64e21a55c51151e23d9929 (diff)
Created / Updated fields for clients (#3384)
* feat(backend): add created_at/updated_at to clients and maintain on create/update backfill existing clients and set updated_at on mutations * feat(frontend): carry created_at/updated_at in client models and round-trip via JSON * feat(frontend): display Created and Updated columns in client table with proper date formatting * i18n: add pages.inbounds.createdAt/updatedAt across all locales * Update inbound.go Remove duplicate code
Diffstat (limited to 'database/model/model.go')
-rw-r--r--database/model/model.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/database/model/model.go b/database/model/model.go
index 2e7095d3..86ab0487 100644
--- a/database/model/model.go
+++ b/database/model/model.go
@@ -104,4 +104,6 @@ type Client struct {
SubID string `json:"subId" form:"subId"`
Comment string `json:"comment" form:"comment"`
Reset int `json:"reset" form:"reset"`
+ CreatedAt int64 `json:"created_at,omitempty"`
+ UpdatedAt int64 `json:"updated_at,omitempty"`
}