From 033a8e1749daca0d8ec04b72e0d71fb1091211dc Mon Sep 17 00:00:00 2001 From: wsczx Date: Wed, 20 Aug 2025 13:50:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=87=8D=E7=BD=AE=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E7=BC=BA=E5=A4=B1=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/dbdata/tables.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server/dbdata/tables.go b/server/dbdata/tables.go index 608c452..9bacacd 100644 --- a/server/dbdata/tables.go +++ b/server/dbdata/tables.go @@ -120,7 +120,8 @@ type StatsMem struct { } type PasswordReset struct { - Token string `json:"token" xorm:"varchar(60) not null unique"` - UserId int `json:"id" xorm:"not null"` - ExpiresAt int `json:"expires_at" xorm:"not null"` + Token string `json:"token" xorm:"varchar(60) not null unique"` + UserId int `json:"id" xorm:"not null"` + ExpiresAt int `json:"expires_at" xorm:"not null"` + LastRequestTime int `json:"last_request_time" xorm:"int default 0"` }