tsk-34: Update last login of user (#37)

Closes #34

Reviewed-on: phoenix/textsender-auth#37
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
phoenix
2025-12-31 23:13:02 +00:00
committed by phoenix
parent d34cad033d
commit de171b790d
10 changed files with 101 additions and 12 deletions
+4 -2
View File
@@ -8,12 +8,14 @@ CREATE TABLE users (
phone_number TEXT NOT NULL,
username TEXT NOT NULL,
password TEXT NOT NULL,
created timestamptz DEFAULT now()
created timestamptz DEFAULT now(),
last_login timestamptz NULL
);
CREATE TABLE service_users (
id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
username TEXT NOT NULL,
passphrase TEXT NOT NULL,
created timestamptz DEFAULT now()
created timestamptz DEFAULT now(),
last_login timestamptz NULL
);