Merge branch 'master' of github.com:AdrianoRobson/projeto-hit

feat-scaling-ticket-remote-creation
adriano 2024-05-10 04:47:07 -03:00
commit f06539ae6f
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 @Column
transferToOtherQueues: boolean; transferToOtherQueues: boolean;
@Column
identifier: string;
@Default("admin") @Default("admin")
@Column @Column
profile: string; profile: string;