Add avatar field to user schema for OIDC avatars.

This commit is contained in:
Kailash Nadh 2024-07-09 00:41:28 +05:30
parent f13e9ff962
commit 9162e6f772

View file

@ -323,6 +323,7 @@ CREATE TABLE users (
password TEXT NULL, password TEXT NULL,
email TEXT NOT NULL UNIQUE, email TEXT NOT NULL UNIQUE,
name TEXT NOT NULL, name TEXT NOT NULL,
avatar TEXT NULL,
type user_type NOT NULL DEFAULT 'user', type user_type NOT NULL DEFAULT 'user',
role_id INTEGER NOT NULL REFERENCES user_roles(id) ON DELETE RESTRICT, role_id INTEGER NOT NULL REFERENCES user_roles(id) ON DELETE RESTRICT,
status user_status NOT NULL DEFAULT 'disabled', status user_status NOT NULL DEFAULT 'disabled',