This commit is contained in:
Nicholas W 2026-02-22 17:43:59 -07:00 committed by GitHub
commit e78e74769b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 166 additions and 15 deletions

View file

@ -18,6 +18,10 @@ class Session extends Model {
this.userId
/** @type {Date} */
this.expiresAt
/** @type {string} */
this.lastRefreshToken
/** @type {Date} */
this.lastRefreshTokenExpiresAt
// Expanded properties
@ -66,6 +70,14 @@ class Session extends Model {
expiresAt: {
type: DataTypes.DATE,
allowNull: false
},
lastRefreshToken: {
type: DataTypes.STRING,
allowNull: true
},
lastRefreshTokenExpiresAt: {
type: DataTypes.DATE,
allowNull: true
}
},
{