UNPKG

synt_backend

Version:

Synt light-weight node backend service

108 lines (105 loc) 3.14 kB
"use strict"; module.exports = { up: async (queryInterface) => { await queryInterface.bulkInsert("ReportTypes", [ { name: "Tuin", category: "maintenance", createdAt: new Date(), updatedAt: new Date(), }, { name: "Schade", category: "insurance", createdAt: new Date(), updatedAt: new Date(), }, ]); await queryInterface.bulkInsert("DocumentTypes", [ { name: "Basisakte", category: "startup", createdAt: new Date(), updatedAt: new Date(), }, { name: "Contract", category: "startup", createdAt: new Date(), updatedAt: new Date(), }, { name: "Leverancier", category: "supplier", createdAt: new Date(), updatedAt: new Date(), }, { name: "Afrekening", category: "accounting", createdAt: new Date(), updatedAt: new Date(), }, { name: "Aankoopfactuur", category: "accounting", createdAt: new Date(), updatedAt: new Date(), }, ]); await queryInterface.bulkInsert("FixedMeetingItems", [ { name: "Budget: bedrag", description: "Goedkeuren van het budget voor het boekjaar {{FinancialYear.year}}. Het voorstel bedraagt €{{FinancialYear.budget}}.", is_vote_required: 1, majority: 1, template: "budget_amount", createdAt: new Date(), updatedAt: new Date(), }, ]); await queryInterface.bulkInsert("FixedMeetingItems", [ { name: "Budget: frequentie", description: "Goedkeuren van het budget voor het boekjaar {{FinancialYear.year}}. Een opvraging vindt elke {{FinancialYear.months_per_invoice}} maanden plaats.", is_vote_required: 1, majority: 1, template: "budget_frequency", createdAt: new Date(), updatedAt: new Date(), }, ]); await queryInterface.bulkInsert("FixedMeetingItems", [ { name: "Waarborgfonds", description: "Goedkeuren van het waarborgfonds voor het boekjaar {{FinancialYear.year}}: €{{FinancialYear.guarantee_fund}}.", is_vote_required: 1, majority: 1, template: "guarantee_fund", createdAt: new Date(), updatedAt: new Date(), }, ]); await queryInterface.bulkInsert("FixedMeetingItems", [ { name: "Reservefonds", description: "Goedkeuren van het reservefonds voor het boekjaar {{FinancialYear.year}}: €{{FinancialYear.reserve_capital}}.", is_vote_required: 1, majority: 1, template: "reserve_capital", createdAt: new Date(), updatedAt: new Date(), }, ]); }, down: async (queryInterface) => { await queryInterface.bulkDelete("Incidents", null, {}); await queryInterface.bulkDelete("ReportTypes", null, {}); await queryInterface.bulkDelete("DocumentTypes", null, {}); await queryInterface.bulkDelete("FixedMeetingItems", null, {}); }, };