added display name to users

This commit is contained in:
zipben 2025-06-04 16:04:28 +00:00
parent cbb8950b46
commit c0294f4c39
16 changed files with 112 additions and 14 deletions

View file

@ -87,6 +87,8 @@ class User extends Model {
/** @type {string} */
this.username
/** @type {string} */
this.displayName
/** @type {string} */
this.email
/** @type {string} */
this.pash
@ -425,6 +427,7 @@ class User extends Model {
primaryKey: true
},
username: DataTypes.STRING,
displayName: DataTypes.STRING,
email: DataTypes.STRING,
pash: DataTypes.STRING,
type: DataTypes.STRING,
@ -518,6 +521,7 @@ class User extends Model {
const json = {
id: this.id,
username: this.username,
displayName: this.displayName,
email: this.email,
type: this.type,
token: this.type === 'root' && hideRootToken ? '' : this.token,