feat: add new column 'identifier' to the Users table

Details:
- Added a new column named 'identifier' to the Users table.
websocket
gustavo-gsp 2024-05-07 15:55:54 -03:00
parent 7bc957df77
commit 914fde7803
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,14 @@
import { QueryInterface, DataTypes } from "sequelize";
module.exports = {
up: (queryInterface: QueryInterface) => {
return queryInterface.addColumn("Users", "identifier", {
type: DataTypes.STRING,
allowNull: true
});
},
down: (queryInterface: QueryInterface) => {
return queryInterface.removeColumn("Users", "identifier");
}
};

View File

@ -51,6 +51,9 @@ class User extends Model<User> {
@Column
transferToOtherQueues: boolean;
@Column
identifier: string;
@Default("admin")
@Column
profile: string;