Initial commit

This commit is contained in:
2025-10-13 00:23:31 -03:00
commit 42921527f8
725 changed files with 91395 additions and 0 deletions
@@ -0,0 +1,23 @@
import { QueryInterface } from "sequelize";
module.exports = {
up: (queryInterface: QueryInterface) => {
return Promise.all([
queryInterface.addConstraint("Queues", ["color", "companyId"], {
name: "Queues_color_key",
type: 'unique'
}),
queryInterface.addConstraint("Queues", ["name", "companyId"], {
name: "Queues_name_key",
type: 'unique'
}),
]);
},
down: (queryInterface: QueryInterface) => {
return Promise.all([
queryInterface.removeConstraint("Queues", "Queues_color_key"),
queryInterface.removeConstraint("Queues", "Queues_name_key"),
]);
}
};