Skip to content

Commit

Permalink
Configuração da exibição dos horários dos setores
Browse files Browse the repository at this point in the history
  • Loading branch information
rtenorioh committed Oct 24, 2022
1 parent 6e68ec8 commit 5bc69b6
Show file tree
Hide file tree
Showing 10 changed files with 451 additions and 383 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { QueryInterface, DataTypes } from "sequelize";

module.exports = {
up: (queryInterface: QueryInterface) => {
return queryInterface.addColumn("Whatsapps", "isDisplay", {
type: DataTypes.BOOLEAN,
allowNull: false,
defaultValue: false
});
},

down: (queryInterface: QueryInterface) => {
return queryInterface.removeColumn("Whatsapps", "isDisplay");
}
};
5 changes: 5 additions & 0 deletions backend/src/models/Whatsapp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ class Whatsapp extends Model<Whatsapp> {
@Column
isDefault: boolean;

@Default(false)
@AllowNull
@Column
isDisplay: boolean;

@CreatedAt
createdAt: Date;

Expand Down
Loading

0 comments on commit 5bc69b6

Please sign in to comment.