mirror of
https://github.com/outline/outline.git
synced 2026-06-27 02:04:23 +03:00
7f5bf6c6b3
* feat: Add user flags concept, for tracking bits on a user * feat: Example flag usage for user invite resend abuse
15 lines
313 B
JavaScript
15 lines
313 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
up: async (queryInterface, Sequelize) => {
|
|
return queryInterface.addColumn("users", "flags", {
|
|
type: Sequelize.JSONB,
|
|
allowNull: true,
|
|
});
|
|
},
|
|
|
|
down: async (queryInterface, Sequelize) => {
|
|
return queryInterface.removeColumn("users", "flags");
|
|
}
|
|
};
|