feat: add new column 'identifier' to the Users table
Details: - Added a new column named 'identifier' to the Users table.websocket
parent
7bc957df77
commit
914fde7803
|
@ -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");
|
||||
}
|
||||
};
|
|
@ -51,6 +51,9 @@ class User extends Model<User> {
|
|||
@Column
|
||||
transferToOtherQueues: boolean;
|
||||
|
||||
@Column
|
||||
identifier: string;
|
||||
|
||||
@Default("admin")
|
||||
@Column
|
||||
profile: string;
|
||||
|
|
Loading…
Reference in New Issue