feat: add API key expiry options (#7064)
* feat: add API key expiry options * review
This commit is contained in:
15
server/migrations/20240617030911-add-apikey-expiry.js
Normal file
15
server/migrations/20240617030911-add-apikey-expiry.js
Normal file
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
|
||||
/** @type {import('sequelize-cli').Migration} */
|
||||
module.exports = {
|
||||
async up(queryInterface, Sequelize) {
|
||||
await queryInterface.addColumn("apiKeys", "expiresAt", {
|
||||
type: Sequelize.DATE,
|
||||
allowNull: true,
|
||||
});
|
||||
},
|
||||
|
||||
async down(queryInterface, Sequelize) {
|
||||
await queryInterface.removeColumn("apiKeys", "expiresAt");
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user