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 authored and phoenix committed 2025-12-31 23:13:02 +00:00
1 parent d34cad033d
commit de171b790d
10 files changed
+101 -12

No files matched your search

+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
);