Update database schema and add signup_date, last_login, and role columns to user table

This commit is contained in:
Sean Morley
2024-04-18 01:15:52 +00:00
parent f0eb5441f0
commit 2249052ab7
10 changed files with 456 additions and 2 deletions

View File

@@ -20,6 +20,9 @@ export const lucia = new Lucia(adapter, {
first_name: attributes.first_name,
last_name: attributes.last_name,
icon: attributes.icon,
signup_date: attributes.signup_date,
last_login: attributes.last_login,
role: attributes.role,
};
},
});
@@ -38,4 +41,7 @@ export interface DatabaseUser {
last_name: string;
icon: string;
hashed_password: string;
signup_date: Date;
last_login: Date;
role: string;
}