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:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user