create runs table

This commit is contained in:
Takeshi Kimata
2024-02-12 17:36:50 +09:00
parent 197a011c4c
commit b23922c8e5
7 changed files with 181 additions and 0 deletions

View File

@@ -44,6 +44,37 @@ module.exports = {
updatedAt: new Date(),
},
]);
// Add runs table records
await queryInterface.bulkInsert('runs', [
{
name: 'Run 1',
projectId: 1,
configurations: null,
description: null,
state: 1,
createdAt: new Date(),
updatedAt: new Date(),
},
{
name: 'Run 2',
projectId: 1,
configurations: null,
description: null,
state: 1,
createdAt: new Date(),
updatedAt: new Date(),
},
{
name: 'Run 3',
projectId: 1,
configurations: null,
description: null,
state: 1,
createdAt: new Date(),
updatedAt: new Date(),
},
]);
},
down: async (queryInterface, Sequelize) => {